source: freewrt/package/bitlbee/Makefile@ 835bc14

freewrt_1_0 freewrt_2_0
Last change on this file since 835bc14 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

  • Property mode set to 100644
File size: 1.6 KB
Line 
1# $Id: Makefile 3622 2006-04-12 00:34:26Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=bitlbee
6PKG_VERSION:=1.0.1
7PKG_RELEASE:=1
8PKG_MD5SUM:=a4d7daa9b64898dd41a3a6d104692d9a
9
10PKG_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
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
16
17include $(TOPDIR)/package/rules.mk
18
19$(eval $(call PKG_template,BITLBEE,bitlbee,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21$(WRKBUILD)/.configured:
22 (cd $(WRKBUILD); \
23 $(TARGET_CONFIGURE_OPTS) \
24 CFLAGS="$(TARGET_CFLAGS)" \
25 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
26 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
27 STAGING_DIR="$(STAGING_DIR)" \
28 STRIP="$(STRIP)" \
29 ./configure \
30 --prefix=/usr/ \
31 --bindir=/usr/sbin/ \
32 --etcdir=/etc/bitlbee/ \
33 --datadir=/usr/share/bitlbee/ \
34 --config=/var/lib/bitlbee/ \
35 --arch=FreeWRT \
36 --cpu="$(ARCH)" \
37 --debug=0 \
38 --strip=1 \
39 --sizeopt=1 \
40 --ipv6=1 \
41 --ssl=openssl \
42 --glib1=1 \
43 --glib1prefix="$(STAGING_DIR)/usr" \
44 );
45 @echo 'CFLAGS+="-I$(STAGING_DIR)/usr/include/iconv"' >> \
46 $(WRKBUILD)/Makefile.settings
47 @echo 'LFLAGS+="-L$(STAGING_DIR)/usr/lib/iconv"' >> \
48 $(WRKBUILD)/Makefile.settings
49 touch $@
50
51$(WRKBUILD)/.built:
52 $(MAKE) -C $(WRKBUILD)
53 touch $@
54
55$(IPKG_BITLBEE):
56 $(MAKE) -C $(WRKBUILD) \
57 DESTDIR="$(IDIR_BITLBEE)" install-etc install-bin
58 $(MAKE) -C $(WRKBUILD)/doc/user-guide \
59 DESTDIR="$(IDIR_BITLBEE)" install
60 install -d -m0755 $(IDIR_BITLBEE)/etc/init.d
61 install -m0755 ./files/S55bitlbee $(IDIR_BITLBEE)/etc/init.d/S55bitlbee
62 $(RSTRIP) $(IDIR_BITLBEE)
63 $(IPKG_BUILD) $(IDIR_BITLBEE) $(PACKAGE_DIR)
64 touch $@
Note: See TracBrowser for help on using the repository browser.