source: freewrt/package/dhcp-forwarder/Makefile@ 8e47882

freewrt_1_0 freewrt_2_0
Last change on this file since 8e47882 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.8 KB
Line 
1# $Id: Makefile 3213 2006-02-10 18:59:05Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=dhcp-forwarder
6PKG_VERSION:=0.7
7PKG_RELEASE:=4
8PKG_MD5SUM:=e7f876e615ebc3f96418f6477b4451e2
9
10PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,DHCP_FORWARDER,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
20 $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 ac_cv_func_malloc_0_nonnull="yes" \
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 --disable-dietlibc \
31 --exec-prefix=/usr \
32 --bindir=/usr/bin \
33 --datadir=/usr/share \
34 --includedir=/usr/include \
35 --infodir=/usr/share/info \
36 --libdir=/usr/lib \
37 --libexecdir=/usr/lib \
38 --localstatedir=/var \
39 --mandir=/usr/share/man \
40 --sbindir=/usr/sbin \
41 --sysconfdir=/etc \
42 --enable-largefile \
43 --disable-nls \
44 )
45 touch $@
46
47$(WRKBUILD)/.built:
48 rm -rf $(WRKINST)
49 mkdir -p $(WRKINST)
50 $(MAKE) -C $(WRKBUILD) \
51 cfg_filename="/etc/dhcp-fwd.conf" \
52 DESTDIR="$(WRKINST)" \
53 all install
54 touch $@
55
56$(IPKG_DHCP_FORWARDER):
57 install -m0755 -d $(IDIR_DHCP_FORWARDER)/etc
58 install -m0644 $(WRKBUILD)/contrib/dhcp-fwd.conf $(IDIR_DHCP_FORWARDER)/etc/
59 install -m0755 -d $(IDIR_DHCP_FORWARDER)/etc/init.d
60 install -m0755 ./files/dhcp-fwd.init $(IDIR_DHCP_FORWARDER)/etc/init.d/dhcp-fwd
61 install -m0755 -d $(IDIR_DHCP_FORWARDER)/usr/bin
62 $(CP) $(WRKINST)/usr/sbin/dhcp-fwd $(IDIR_DHCP_FORWARDER)/usr/bin/
63 $(RSTRIP) $(IDIR_DHCP_FORWARDER)
64 $(IPKG_BUILD) $(IDIR_DHCP_FORWARDER) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.