Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= ctorrent
  7. PKG_VERSION:= 1.3.4-dnh2
  8. PKG_RELEASE:= 2
  9. PKG_MD5SUM:= 6635e2d0d0ee21faeb85d95cd93c137b
  10. PKG_DESCR:= console-based BitTorrent client
  11. PKG_SECTION:= net
  12. PKG_URL:= http://www.rahul.net/dholmes/ctorrent
  13. PKG_SITES:= http://www.rahul.net/dholmes/ctorrent/
  14. WRKDIST= ${WRKDIR}/${PKG_NAME}-dnh2
  15. ifeq ($(ADK_COMPILE_CTORRENT_WITH_UCLIBCXX),y)
  16. PKG_DEPENDS:= uclibc++
  17. else
  18. PKG_DEPENDS:= libstdcxx
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,CTORRENT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. ifeq ($(ADK_COMPILE_CTORRENT_WITH_UCLIBCXX),y)
  23. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++
  24. TLDFLAGS+= -lgcc_s -luClibc++ -lc -lm -nodefaultlibs
  25. endif
  26. CONFIGURE_STYLE= gnu
  27. BUILD_STYLE= auto
  28. INSTALL_STYLE= auto
  29. post-install:
  30. ${INSTALL_DIR} ${IDIR_CTORRENT}
  31. ${CP} ${WRKINST}/* ${IDIR_CTORRENT}/
  32. include ${TOPDIR}/mk/pkg-bottom.mk