3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=a4d7daa9b64898dd41a3a6d104692d9a
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
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,BITLBEE
,bitlbee
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
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)" \
35 --etcdir
=/etc
/bitlbee
/ \
36 --datadir=/usr
/share
/bitlbee
/ \
37 --config
=/var
/lib
/bitlbee
/ \
46 --glib1prefix
="$(STAGING_DIR)/usr" \
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
54 $(PKG_BUILD_DIR
)/.built
:
55 $(MAKE
) -C
$(PKG_BUILD_DIR
)
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
)