Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= cbtt
  5. PKG_VERSION:= 20060211
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 19abea2817c49ccc9438e9671c402984
  8. PKG_DESCR:= Bittorrent tracker
  9. PKG_SECTION:= net
  10. PKG_DEPENDS:= zlib
  11. PKG_BUILDDEP+= zlib
  12. ifeq (${ADK_COMPILE_CBTT_WITH_UCLIBCXX},y)
  13. PKG_BUILDDEP+= uclibc++
  14. endif
  15. PKG_URL:= http://bnbtusermods.sourceforge.net
  16. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=bnbtusermods/}
  17. PKG_HOST_DEPENDS:= !cygwin
  18. DISTFILES:= ${PKG_NAME}80-${PKG_VERSION}-src.tar.gz
  19. WRKDIST= ${WRKDIR}/${PKG_NAME}80-${PKG_VERSION}-src
  20. include ${TOPDIR}/mk/package.mk
  21. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  22. PKG_DEPENDS+= uclibc++
  23. PKG_DEPENDS_1+= uclibc++
  24. else
  25. PKG_DEPENDS+= libstdcxx
  26. PKG_DEPENDS_1+= libstdcxx
  27. endif
  28. $(eval $(call PKG_template,CBTT,cbtt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  29. CONFIG_STYLE:= manual
  30. INSTALL_STYLE:= manual
  31. TLDFLAGS+= -shared -L. -lz -lpthread -lm -lgcc
  32. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  33. TLDFLAGS+= -nodefaultlibs -lz -lpthread \
  34. -luClibc++ -lc -lm -lgcc
  35. TCFLAGS+= -fno-builtin -nostdinc++
  36. endif
  37. TCFLAGS+= -fPIC
  38. do-install:
  39. ${INSTALL_DIR} ${IDIR_CBTT}/usr/bin
  40. ${INSTALL_BIN} ${WRKBUILD}/bnbt ${IDIR_CBTT}/usr/bin/
  41. include ${TOPDIR}/mk/pkg-bottom.mk