source: freewrt/package/bitlbee/Makefile@ 9036ea5

freewrt_1_0 freewrt_2_0
Last change on this file since 9036ea5 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.8 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= bitlbee
10PKG_VERSION:= 1.0.1
11PKG_RELEASE:= 1
12PKG_MD5SUM:= a4d7daa9b64898dd41a3a6d104692d9a
13
14PKG_SOURCE_URL:= http://get.bitlbee.org/src \
15 http://get.bitlbee.be/src \
16 http://get.us.bitlbee.org/src \
17 http://ftp.snt.utwente.nl/pub/software/bitlbee/src
18PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
19
20include $(TOPDIR)/mk/package.mk
21
22$(eval $(call PKG_template,BITLBEE,bitlbee,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(WRKBUILD)/.configured:
25 (cd $(WRKBUILD); \
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=FreeWRT \
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 $(WRKBUILD)/Makefile.settings
50 @echo 'LFLAGS+="-L$(STAGING_DIR)/usr/lib/iconv"' >> \
51 $(WRKBUILD)/Makefile.settings
52 touch $@
53
54$(WRKBUILD)/.built:
55 $(MAKE) -C $(WRKBUILD)
56 touch $@
57
58$(IPKG_BITLBEE):
59 $(MAKE) -C $(WRKBUILD) \
60 DESTDIR="$(IDIR_BITLBEE)" install-etc install-bin
61 $(MAKE) -C $(WRKBUILD)/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 $@
Note: See TracBrowser for help on using the repository browser.