482381a13edb7e1c4a6f9c2bd5846d46cf8c37ae
[openwrt.git] / package / bitlbee / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=bitlbee
6 PKG_VERSION:=1.0.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=a4d7daa9b64898dd41a3a6d104692d9a
9
10 PKG_SOURCE_URL:=http://get.bitlbee.org/src \
11 http://get.bitlbee.be/src \
12 http://get.us.bitlbee.org/src \
13 http://ftp.snt.utwente.nl/pub/software/bitlbee/src
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,BITLBEE,bitlbee,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
29 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
30 STAGING_DIR="$(STAGING_DIR)" \
31 STRIP="$(STRIP)" \
32 ./configure \
33 --prefix=/usr/ \
34 --bindir=/usr/sbin/ \
35 --etcdir=/etc/bitlbee/ \
36 --datadir=/usr/share/bitlbee/ \
37 --config=/var/lib/bitlbee/ \
38 --arch=OpenWrt \
39 --cpu="$(ARCH)" \
40 --debug=0 \
41 --strip=1 \
42 --sizeopt=1 \
43 --ipv6=1 \
44 --ssl=openssl \
45 --glib1=1 \
46 --glib1prefix="$(STAGING_DIR)/usr" \
47 );
48 touch $@
49
50 $(PKG_BUILD_DIR)/.built:
51 $(MAKE) -C $(PKG_BUILD_DIR)
52 touch $@
53
54 $(IPKG_BITLBEE):
55 $(MAKE) -C $(PKG_BUILD_DIR) \
56 DESTDIR="$(IDIR_BITLBEE)" install-etc install-bin
57 $(MAKE) -C $(PKG_BUILD_DIR)/doc/user-guide \
58 DESTDIR="$(IDIR_BITLBEE)" install
59 install -d -m0755 $(IDIR_BITLBEE)/etc/init.d
60 install -m0755 ./files/S55bitlbee $(IDIR_BITLBEE)/etc/init.d/S55bitlbee
61 $(IPKG_BUILD) $(IDIR_BITLBEE) $(PACKAGE_DIR)
62 touch $@
63
64 mostlyclean:
65 $(MAKE) -C $(PKG_BUILD_DIR) clean
66 rm -f $(PKG_BUILD_DIR)/.built
67
This page took 0.042023 seconds and 3 git commands to generate.