1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
PKG_NAME:= cbtt
PKG_VERSION:= 20060211
PKG_RELEASE:= 1
PKG_BUILDDEP+= mysql zlib
ifeq (${ADK_COMPILE_CBTT_WITH_UCLIBCXX},y)
PKG_BUILDDEP+= uclibc++
endif
PKG_MD5SUM:= 19abea2817c49ccc9438e9671c402984
PKG_DESCR:= Bittorrent tracker
PKG_SECTION:= net
PKG_DEPENDS:= zlib
PKG_URL:= http://bnbtusermods.sourceforge.net
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=bnbtusermods/}
PKG_DESCR_1:= Bittorrent tracker with mysql support
PKG_DEPENDS_1:= ${PKG_DEPENDS} libmysqlclient
DISTFILES:= ${PKG_NAME}80-${PKG_VERSION}-src.tar.gz
WRKDIST= ${WRKDIR}/${PKG_NAME}80-${PKG_VERSION}-src
include ${TOPDIR}/mk/package.mk
ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
PKG_DEPENDS+= uclibc++
PKG_DEPENDS_1+= uclibc++
else
PKG_DEPENDS+= libstdcxx
PKG_DEPENDS_1+= libstdcxx
endif
$(eval $(call PKG_template,CBTT,cbtt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION}))
BUILD_STYLE= auto
TLDFLAGS+= -shared -L. -L${STAGING_DIR}/usr/lib/mysql \
-lmysqlclient -lz -lpthread -lm -lgcc
ifeq ($(ADK_TARGET_LIB_UCLIBCXX),y)
TLDFLAGS+= -nodefaultlibs -lz -lpthread \
-luClibc++ -lc -lm -lgcc
TCFLAGS+= -fno-builtin -nostdinc++
endif
TCFLAGS+= -fPIC
do-install:
${INSTALL_DIR} ${IDIR_CBTT}/usr/bin
${INSTALL_BIN} ${WRKBUILD}/bnbt ${IDIR_CBTT}/usr/bin/
${INSTALL_DIR} ${IDIR_CBTT_MYSQL}/usr/bin
${INSTALL_BIN} ${WRKBUILD}/bnbtmysql ${IDIR_CBTT_MYSQL}/usr/bin/
include ${TOPDIR}/mk/pkg-bottom.mk
|