1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${TOPDIR}/rules.mk
9 PKG_MD5SUM
:= 19abea2817c49ccc9438e9671c402984
10 PKG_DESCR
:= Bittorrent tracker
14 ifeq (${ADK_COMPILE_CBTT_WITH_UCLIBCXX},y
)
15 PKG_BUILDDEP
+= uclibc
++
17 PKG_URL
:= http
://bnbtusermods.sourceforge.net
18 PKG_SITES
:= ${MASTER_SITE_SOURCEFORGE
:=bnbtusermods
/}
20 PKG_HOST_DEPENDS
:= !cygwin
22 DISTFILES
:= ${PKG_NAME}80-${PKG_VERSION}-src.
tar.gz
23 WRKDIST
= ${WRKDIR}/${PKG_NAME}80-${PKG_VERSION}-src
25 include ${TOPDIR}/mk
/package.mk
27 ifeq ($(ADK_TARGET_LIB_UCLIBCXX
),y
)
28 PKG_DEPENDS
+= uclibc
++
29 PKG_DEPENDS_1
+= uclibc
++
31 PKG_DEPENDS
+= libstdcxx
32 PKG_DEPENDS_1
+= libstdcxx
35 $(eval
$(call PKG_template
,CBTT
,cbtt
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
38 INSTALL_STYLE
:= manual
40 TLDFLAGS
+= -shared
-L.
-lz
-lpthread
-lm
-lgcc
41 ifeq ($(ADK_TARGET_LIB_UCLIBCXX
),y
)
42 TLDFLAGS
+= -nodefaultlibs
-lz
-lpthread \
43 -luClibc
++ -lc
-lm
-lgcc
44 TCFLAGS
+= -fno-builtin
-nostdinc
++
49 ${INSTALL_DIR} ${IDIR_CBTT}/usr
/bin
50 ${INSTALL_BIN} ${WRKBUILD}/bnbt
${IDIR_CBTT}/usr
/bin
/
52 include ${TOPDIR}/mk
/pkg-bottom.mk