Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= atftp
  5. PKG_VERSION:= 0.7
  6. PKG_RELEASE:= 2
  7. PKG_BUILDDEP+= readline ncurses
  8. PKG_MD5SUM:= 3b27365772d918050b2251d98a9c7c82
  9. PKG_DESCR:= TFTP client
  10. PKG_SECTION:= net
  11. PKG_DEPENDS:= libreadline libncurses
  12. PKG_URL:= http://freshmeat.net/projects/atftp
  13. PKG_SITES:= ftp://ftp.mamalinux.com/pub/atftp/
  14. PKG_DESCR_1:= TFTP server
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,ATFTP,atftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,ATFTPD,atftpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_1},${PKG_SECTION}))
  18. MAKE_FLAGS+= CFLAGS="${TCFLAGS} -Wall -D_REENTRANT -fno-inline"
  19. CONFIGURE_STYLE= gnu
  20. BUILD_STYLE= auto
  21. INSTALL_STYLE= auto
  22. post-install:
  23. # atftp client
  24. $(INSTALL_DIR) $(IDIR_ATFTP)/usr/bin
  25. $(INSTALL_BIN) $(WRKBUILD)/atftp $(IDIR_ATFTP)/usr/bin
  26. # atftp server
  27. $(INSTALL_DIR) $(IDIR_ATFTPD)/usr/sbin
  28. $(INSTALL_BIN) $(WRKBUILD)/atftpd $(IDIR_ATFTPD)/usr/sbin
  29. include ${TOPDIR}/mk/pkg-bottom.mk