1
0

Makefile 1.7 KB

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