source: freewrt/package/iptables-snmp/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.6 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=iptables-snmp
6PKG_VERSION:=0.1
7PKG_RELEASE:=1
8PKG_MD5SUM:=8370d2f0c899461a053da491400119d1
9
10PKG_SOURCE_URL:=http://www.nobiscuit.com/iptables-snmp
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,IPTABLES_SNMP,iptables-snmp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured: $(WRKBUILD)/.prepared
19 (cd $(WRKBUILD); rm -f config.{cache,status}; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS) " \
22 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
23 ./configure \
24 --target=$(GNU_TARGET_NAME) \
25 --host=$(GNU_TARGET_NAME) \
26 --build=$(GNU_HOST_NAME) \
27 --program-prefix="" \
28 --program-suffix="" \
29 --prefix=/usr \
30 --exec-prefix=/usr \
31 --bindir=/usr/bin \
32 --datadir=/usr/share \
33 --includedir=/usr/include \
34 --infodir=/usr/share/info \
35 --libdir=/usr/lib \
36 --libexecdir=/usr/lib \
37 --localstatedir=/var \
38 --mandir=/usr/share/man \
39 --sbindir=/usr/sbin \
40 --sysconfdir=/etc \
41 --enable-largefile \
42 --disable-nls \
43 );
44 touch $@
45
46$(WRKBUILD)/.built:
47 rm -rf $(WRKINST)
48 mkdir -p $(WRKINST)
49 $(MAKE) -C $(WRKBUILD) \
50 INSTALL_PREFIX="$(WRKINST)" \
51 all install
52 touch $@
53
54$(IPKG_IPTABLES_SNMP):
55 install -d -m0755 $(IDIR_IPTABLES_SNMP)/usr/lib
56 $(CP) $(WRKINST)/usr/lib/iptables-snmp.so $(IDIR_IPTABLES_SNMP)/usr/lib
57 $(RSTRIP) $(IDIR_IPTABLES_SNMP)
58 $(IPKG_BUILD) $(IDIR_IPTABLES_SNMP) $(PACKAGE_DIR)
59
60mostlyclean:
61 -$(MAKE) -C $(WRKBUILD) clean
62 rm $(WRKBUILD)/.built
Note: See TracBrowser for help on using the repository browser.