1
0

Makefile 1.6 KB

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