Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= atftp
  5. PKG_VERSION:= 0.7.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= ae4c6f09cadb8d2150c3ce32d88f19036a54e8211f22d723e97864bb5e18f92d
  8. PKG_DESCR:= tftp client
  9. PKG_SECTION:= net/misc
  10. PKG_DEPENDS:= libreadline libncurses
  11. PKG_BUILDDEP:= readline ncurses
  12. PKG_URL:= http://sourceforge.net/projects/atftp/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=atftp/}
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_LIBC_DEPENDS:= uclibc glibc
  16. PKG_SUBPKGS:= ATFTP ATFTPD
  17. PKGSD_ATFTPD:= tftp server
  18. PKGSS_ATFTPD:= libreadline libncurses
  19. include $(ADK_TOPDIR)/mk/package.mk
  20. $(eval $(call PKG_template,ATFTP,atftp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. $(eval $(call PKG_template,ATFTPD,atftpd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ATFTPD},${PKG_SECTION}))
  22. CONFIGURE_ARGS+= --disable-libpcre
  23. MAKE_FLAGS+= CFLAGS="${TARGET_CFLAGS} -Wall -D_REENTRANT -fno-inline"
  24. atftp-install:
  25. $(INSTALL_DIR) $(IDIR_ATFTP)/usr/bin
  26. $(INSTALL_BIN) $(WRKBUILD)/atftp $(IDIR_ATFTP)/usr/bin
  27. atftpd-install:
  28. $(INSTALL_DIR) $(IDIR_ATFTPD)/usr/sbin
  29. $(INSTALL_BIN) $(WRKBUILD)/atftpd $(IDIR_ATFTPD)/usr/sbin
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk