source: freewrt/package/rarpd/Makefile@ 18c227bd

freewrt_2_0
Last change on this file since 18c227bd was 094cb32, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

fix build

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1002 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 2.0 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= rarpd
10PKG_VERSION:= 1.1
11PKG_RELEASE:= 2
12PKG_MD5SUM:= 04e2ca849e758d0b88c8281775ec3b58
13PKG_INIT:= 60
14
15PKG_SOURCE_URL:= ftp://ftp.dementia.org/pub/net-tools
16PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
17
18# Hack Alert!
19# The configure script for rarpd, when used with the --with-libnet option
20# doesn't correctly detect and set -DNEW_LIBNET_INTERFACE.
21EXTRA_CFLAGS = -DNEW_LIBNET_INTERFACE
22
23include $(TOPDIR)/mk/package.mk
24
25$(eval $(call PKG_template,RARPD,rarpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
26
27$(WRKBUILD)/.configured:
28 (cd $(WRKBUILD); \
29 $(TARGET_CONFIGURE_OPTS) \
30 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
31 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
32 LDFLAGS="-I$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/lib" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 --disable-nls \
52 --with-libnet="$(STAGING_DIR)/usr" \
53 --with-pcap="$(STAGING_DIR)/usr" \
54 );
55 touch $@
56
57$(WRKBUILD)/.built:
58 rm -rf $(WRKINST)
59 mkdir -p $(WRKINST)
60 $(MAKE) -C $(WRKBUILD) \
61 $(TARGET_CONFIGURE_OPTS) \
62 DESTDIR="$(WRKINST)" \
63 all install
64 touch $@
65
66$(IPKG_RARPD):
67 install -d -m0755 $(IDIR_RARPD)/usr/sbin
68 $(CP) $(WRKINST)/usr/sbin/rarpd $(IDIR_RARPD)/usr/sbin/
69 install -d -m0755 $(IDIR_RARPD)/etc/init.d
70 install -m755 ./files/rarpd.init $(IDIR_RARPD)/etc/init.d/S$(PKG_INIT)rarpd
71 $(RSTRIP) $(IDIR_RARPD)
72 $(IPKG_BUILD) $(IDIR_RARPD) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.