source: freewrt/package/rarpd/Makefile@ c04ece1

freewrt_1_0 freewrt_2_0
Last change on this file since c04ece1 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: 2.1 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=rarpd
6PKG_VERSION:=1.1
7PKG_RELEASE:=1
8PKG_MD5SUM:=04e2ca849e758d0b88c8281775ec3b58
9
10PKG_SOURCE_URL:=ftp://ftp.dementia.org/pub/net-tools
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14# Hack Alert!
15# The configure script for rarpd, when used with the --with-libnet option
16# doesn't correctly detect and set -DNEW_LIBNET_INTERFACE.
17EXTRA_CFLAGS = -DNEW_LIBNET_INTERFACE
18
19include $(TOPDIR)/package/rules.mk
20
21$(eval $(call PKG_template,RARPD,rarpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23$(WRKBUILD)/.configured:
24 (cd $(WRKBUILD); \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-I$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 --enable-largefile \
48 --disable-nls \
49 --with-libnet="$(STAGING_DIR)/usr" \
50 --with-pcap="$(STAGING_DIR)/usr" \
51 );
52 touch $@
53
54$(WRKBUILD)/.built:
55 rm -rf $(WRKINST)
56 mkdir -p $(WRKINST)
57 $(MAKE) -C $(WRKBUILD) \
58 $(TARGET_CONFIGURE_OPTS) \
59 DESTDIR="$(WRKINST)" \
60 all install
61 touch $@
62
63$(IPKG_RARPD):
64 install -d -m0755 $(IDIR_RARPD)/usr/sbin
65 $(CP) $(WRKINST)/usr/sbin/rarpd $(IDIR_RARPD)/usr/sbin/
66 install -d -m0755 $(IDIR_RARPD)/etc/default
67 install -m644 ./files/rarpd.default $(IDIR_RARPD)/etc/default/rarpd
68 install -d -m0755 $(IDIR_RARPD)/etc/init.d
69 install -m755 ./files/rarpd.init $(IDIR_RARPD)/etc/init.d/rarpd
70 ln -sf rarpd $(IDIR_RARPD)/etc/init.d/S50rarpd
71 $(RSTRIP) $(IDIR_RARPD)
72 $(IPKG_BUILD) $(IDIR_RARPD) $(PACKAGE_DIR)
73
74mostlyclean:
75 -$(MAKE) -C $(WRKBUILD) clean
76 rm -f $(WRKBUILD)/.built
Note: See TracBrowser for help on using the repository browser.