summaryrefslogtreecommitdiff
path: root/openwrt/package/cbtt/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-15 08:18:34 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-03-15 08:18:34 +0000
commit1a9d437efa83c27fa237d05bf3847c61a8bfd5e9 (patch)
tree6ca07102df9d65be4aefe1123cca6fcb1aadf698 /openwrt/package/cbtt/Makefile
parent9fd67b2db578d4850502861c3f966d4314b6d63f (diff)
add package from Duncan, thx. changed the patches and some minor stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3373 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/cbtt/Makefile')
-rw-r--r--openwrt/package/cbtt/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/openwrt/package/cbtt/Makefile b/openwrt/package/cbtt/Makefile
new file mode 100644
index 0000000000..ebe1243dac
--- /dev/null
+++ b/openwrt/package/cbtt/Makefile
@@ -0,0 +1,47 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=cbtt
+PKG_VERSION:=20060211
+PKG_RELEASE:=1
+PKG_MD5SUM:=19abea2817c49ccc9438e9671c402984
+
+PKG_SOURCE_URL:=@SF/bnbtusermods
+PKG_SOURCE:=$(PKG_NAME)80-$(PKG_VERSION)-src.tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)80-$(PKG_VERSION)-src
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,CBTT,cbtt,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+$(eval $(call PKG_template,CBTT_MYSQL,cbtt-mysql,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ LFLAGS="-L$(STAGING_DIR)/usr/lib -L $(STAGING_DIR)/usr/lib/mysql -L. -lz -lmysqlclient" \
+ CFLAGS="-I$(STAGING_DIR)/usr/include"
+ mkdir -p $(PKG_INSTALL_DIR)/usr/bin
+ $(CP) $(PKG_BUILD_DIR)/bnbt $(PKG_INSTALL_DIR)/usr/bin/
+ $(CP) $(PKG_BUILD_DIR)/bnbtmysql $(PKG_INSTALL_DIR)/usr/bin/
+ touch $@
+
+$(IPKG_CBTT):
+ install -d -m0755 $(IDIR_CBTT)/usr/bin
+ install -m0755 $(PKG_INSTALL_DIR)/usr/bin/bnbt $(IDIR_CBTT)/usr/bin/
+ $(RSTRIP) $(IDIR_CBTT)
+ $(IPKG_BUILD) $(IDIR_CBTT) $(PACKAGE_DIR)
+
+$(IPKG_CBTT_MYSQL):
+ install -d -m0755 $(IDIR_CBTT_MYSQL)/usr/bin
+ install -m0755 $(PKG_INSTALL_DIR)/usr/bin/bnbtmysql $(IDIR_CBTT_MYSQL)/usr/bin/
+ $(RSTRIP) $(IDIR_CBTT_MYSQL)
+ $(IPKG_BUILD) $(IDIR_CBTT_MYSQL) $(PACKAGE_DIR)