add openssl dependency
[openwrt.git] / package / cbtt / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=cbtt
6 PKG_VERSION:=20060211
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=19abea2817c49ccc9438e9671c402984
9
10 PKG_SOURCE_URL:=@SF/bnbtusermods
11 PKG_SOURCE:=$(PKG_NAME)80-$(PKG_VERSION)-src.tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)80-$(PKG_VERSION)-src
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
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)))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
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/
35 touch $@
36
37 $(IPKG_CBTT):
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)
42
43 $(IPKG_CBTT_MYSQL):
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)
This page took 0.041141 seconds and 5 git commands to generate.