add gnupg from Michael Cohen, thx
[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 @echo 'CFLAGS+="-I$(STAGING_DIR)/usr/include/iconv"' >> \
49 $(PKG_BUILD_DIR)/Makefile.settings
50 @echo 'LFLAGS+="-L$(STAGING_DIR)/usr/lib/iconv"' >> \
51 $(PKG_BUILD_DIR)/Makefile.settings
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built:
55 $(MAKE) -C $(PKG_BUILD_DIR)
56 touch $@
57
58 $(IPKG_BITLBEE):
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(IDIR_BITLBEE)" install-etc install-bin
61 $(MAKE) -C $(PKG_BUILD_DIR)/doc/user-guide \
62 DESTDIR="$(IDIR_BITLBEE)" install
63 install -d -m0755 $(IDIR_BITLBEE)/etc/init.d
64 install -m0755 ./files/S55bitlbee $(IDIR_BITLBEE)/etc/init.d/S55bitlbee
65 $(RSTRIP) $(IDIR_BITLBEE)
66 $(IPKG_BUILD) $(IDIR_BITLBEE) $(PACKAGE_DIR)
67 touch $@
This page took 0.044757 seconds and 5 git commands to generate.