Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= ctorrent
  5. PKG_VERSION:= dnh3.3.2
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= openssl
  8. ifeq (${ADK_COMPILE_CTORRENT_WITH_UCLIBCXX},y)
  9. PKG_BUILDDEP+= uclibc++
  10. endif
  11. PKG_MD5SUM:= 59b23dd05ff70791cd6449effa7fc3b6
  12. PKG_DESCR:= console-based BitTorrent client
  13. PKG_SECTION:= net
  14. PKG_URL:= http://www.rahul.net/dholmes/ctorrent
  15. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=dtorrent/}
  16. ifeq ($(ADK_COMPILE_CTORRENT_WITH_UCLIBCXX),y)
  17. PKG_DEPENDS:= uclibc++
  18. else
  19. PKG_DEPENDS:= libstdcxx
  20. endif
  21. include ${TOPDIR}/mk/package.mk
  22. $(eval $(call PKG_template,CTORRENT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  23. ifeq ($(ADK_COMPILE_CTORRENT_WITH_UCLIBCXX),y)
  24. TCXXFLAGS+= -fno-threadsafe-statics -fno-builtin -fno-rtti -nostdinc++
  25. TLDFLAGS+= -lgcc_s -luClibc++ -lc -lm -nodefaultlibs
  26. endif
  27. CONFIGURE_STYLE:= gnu
  28. BUILD_STYLE:= auto
  29. INSTALL_STYLE:= auto
  30. post-install:
  31. ${INSTALL_DIR} ${IDIR_CTORRENT}/usr/bin
  32. ${CP} ${WRKINST}/usr/bin/ctorrent ${IDIR_CTORRENT}/usr/bin
  33. include ${TOPDIR}/mk/pkg-bottom.mk