3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=19abea2817c49ccc9438e9671c402984
10 PKG_SOURCE_URL
:=@SF
/bnbtusermods
11 PKG_SOURCE
:=$(PKG_NAME
)80-$(PKG_VERSION
)-src.
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)80-$(PKG_VERSION
)-src
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,CBTT
,cbtt
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
20 $(eval
$(call PKG_template
,CBTT_MYSQL
,cbtt-mysql
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
:
26 rm -rf
$(PKG_INSTALL_DIR
)
27 mkdir
-p
$(PKG_INSTALL_DIR
)
28 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
29 $(TARGET_CONFIGURE_OPTS
) \
30 LFLAGS
="-L$(STAGING_DIR)/usr/lib -L $(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient" \
31 CFLAGS
="-I$(STAGING_DIR)/usr/include"
32 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/bin
33 $(CP
) $(PKG_BUILD_DIR
)/bnbt
$(PKG_INSTALL_DIR
)/usr
/bin
/
34 $(CP
) $(PKG_BUILD_DIR
)/bnbtmysql
$(PKG_INSTALL_DIR
)/usr
/bin
/
38 install -d
-m0755
$(IDIR_CBTT
)/usr
/bin
39 install -m0755
$(PKG_INSTALL_DIR
)/usr
/bin
/bnbt
$(IDIR_CBTT
)/usr
/bin
/
40 $(RSTRIP
) $(IDIR_CBTT
)
41 $(IPKG_BUILD
) $(IDIR_CBTT
) $(PACKAGE_DIR
)
44 install -d
-m0755
$(IDIR_CBTT_MYSQL
)/usr
/bin
45 install -m0755
$(PKG_INSTALL_DIR
)/usr
/bin
/bnbtmysql
$(IDIR_CBTT_MYSQL
)/usr
/bin
/
46 $(RSTRIP
) $(IDIR_CBTT_MYSQL
)
47 $(IPKG_BUILD
) $(IDIR_CBTT_MYSQL
) $(PACKAGE_DIR
)