revert config default change for ieee80211-dscape, do real depends instead
[openwrt.git] / openwrt / package / arpd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=arpd
6 PKG_VERSION:=0.2
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=e2911fa9de1b92ef50deda1489ae944d
9
10 PKG_SOURCE_URL:=http://niels.xtdnet.nl/honeyd
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,ARPD,arpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR); rm -rf config.cache; \
21 $(TARGET_CONFIGURE_OPTS) \
22 CFLAGS="$(TARGET_CFLAGS)" \
23 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
24 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
25 ./configure \
26 --target=$(GNU_TARGET_NAME) \
27 --host=$(GNU_TARGET_NAME) \
28 --build=$(GNU_HOST_NAME) \
29 --program-prefix="" \
30 --program-suffix="" \
31 --prefix=/usr \
32 --exec-prefix=/usr \
33 --bindir=/usr/bin \
34 --datadir=/usr/share \
35 --includedir=/usr/include \
36 --infodir=/usr/share/info \
37 --libdir=/usr/lib \
38 --libexecdir=/usr/lib \
39 --localstatedir=/var \
40 --mandir=/usr/share/man \
41 --sbindir=/usr/sbin \
42 --sysconfdir=/etc \
43 $(DISABLE_NLS) \
44 $(DISABLE_LARGEFILE) \
45 --enable-shared \
46 --disable-static \
47 --with-libdnet=$(STAGING_DIR)/usr \
48 --with-libevent=$(STAGING_DIR)/usr \
49 --with-libpcap=$(STAGING_DIR)/usr \
50 );
51 touch $@
52
53 $(PKG_BUILD_DIR)/.built:
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 CCOPT="$(TARGET_CFLAGS)" \
56 INCLS="-I. -I$(STAGING_DIR)/usr/include" \
57 LIBS="-L$(STAGING_DIR)/usr/lib -lpcap -ldnet -levent"
58 touch $@
59
60 $(IPKG_ARPD):
61 mkdir -p $(IDIR_ARPD)/usr/sbin
62 cp $(PKG_BUILD_DIR)/arpd $(IDIR_ARPD)/usr/sbin/
63 $(STRIP) $(IDIR_ARPD)/usr/sbin/*
64 $(IPKG_BUILD) $(IDIR_ARPD) $(PACKAGE_DIR)
This page took 0.044085 seconds and 5 git commands to generate.