source: freewrt/package/irssi/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 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.5 KB
Line 
1# $Id: Makefile 3390 2006-03-17 11:08:33Z olli $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=irssi
6PKG_VERSION:=0.8.10
7PKG_RELEASE:=1
8
9PKG_SOURCE_URL:=http://irssi.org/files/
10PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)a.tar.bz2
11PKG_MD5SUM:=38e616bccb6a34ff6d91690317c2fa19
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,IRSSI,irssi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 (cd $(WRKBUILD); rm -rf config.cache; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
22 ac_cv_c_bigendian=no \
23 ac_cv_sizeof_off_t=8 \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --prefix=/usr \
29 --exec-prefix=/usr \
30 --bindir=/usr/bin \
31 --sbindir=/usr/sbin \
32 --libexecdir=/usr/lib \
33 --sysconfdir=/etc \
34 --datadir=/usr/share \
35 --localstatedir=/var \
36 --mandir=/usr/man \
37 --infodir=/usr/info \
38 --program-prefix="" \
39 --with-perl=no \
40 --with-glib1 \
41 --with-gnu-ld \
42 --with-textui \
43 --without-terminfo \
44 --without-bot \
45 --without-file-offset-size \
46 --without-ssl \
47 --disable-nls \
48 --disable-ssl \
49 --disable-ipv6 \
50 --disable-proxy \
51 --with-glib-prefix=$(STAGING_DIR)/usr \
52 );
53 touch $@
54
55$(WRKBUILD)/.built:
56 $(MAKE) -C $(WRKBUILD) \
57 CC=$(TARGET_CC)
58 touch $@
59
60$(IPKG_IRSSI):
61 mkdir -p $(IDIR_IRSSI)/usr/bin
62 $(CP) $(WRKBUILD)/src/fe-text/$(PKG_NAME) $(IDIR_IRSSI)/usr/bin/
63 $(STRIP) $(IDIR_IRSSI)/usr/bin/*
64 $(IPKG_BUILD) $(IDIR_IRSSI) $(PACKAGE_DIR)
65
66mostlyclean:
67 $(MAKE) -C $(WRKBUILD) clean
68 rm -f $(WRKBUILD)/.built
Note: See TracBrowser for help on using the repository browser.