Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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+= mysql 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. PKG_DESCR_1:= Bittorrent tracker with mysql support
  19. PKG_DEPENDS_1:= ${PKG_DEPENDS} libmysqlclient
  20. DISTFILES:= ${PKG_NAME}80-${PKG_VERSION}-src.tar.gz
  21. WRKDIST= ${WRKDIR}/${PKG_NAME}80-${PKG_VERSION}-src
  22. include ${TOPDIR}/mk/package.mk
  23. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  24. PKG_DEPENDS+= uclibc++
  25. PKG_DEPENDS_1+= uclibc++
  26. else
  27. PKG_DEPENDS+= libstdcxx
  28. PKG_DEPENDS_1+= libstdcxx
  29. endif
  30. $(eval $(call PKG_template,CBTT,cbtt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  31. $(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION}))
  32. BUILD_STYLE= auto
  33. TLDFLAGS+= -shared -L. -L${STAGING_DIR}/usr/lib/mysql \
  34. -lmysqlclient -lz -lpthread -lm -lgcc
  35. ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
  36. TLDFLAGS+= -nodefaultlibs -lz -lpthread \
  37. -luClibc++ -lc -lm -lgcc
  38. TCFLAGS+= -fno-builtin -nostdinc++
  39. endif
  40. TCFLAGS+= -fPIC
  41. do-install:
  42. ${INSTALL_DIR} ${IDIR_CBTT}/usr/bin
  43. ${INSTALL_BIN} ${WRKBUILD}/bnbt ${IDIR_CBTT}/usr/bin/
  44. ${INSTALL_DIR} ${IDIR_CBTT_MYSQL}/usr/bin
  45. ${INSTALL_BIN} ${WRKBUILD}/bnbtmysql ${IDIR_CBTT_MYSQL}/usr/bin/
  46. include ${TOPDIR}/mk/pkg-bottom.mk