fix stupid error from me
[openwrt.git] / package / tcpdump / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=tcpdump
6 PKG_VERSION:=3.8.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=30645001f4b97019677cad88d3811904
9
10 PKG_SOURCE_URL:=http://www.tcpdump.org/release/ \
11 http://ftp.gwdg.de/pub/misc/tcpdump/ \
12 http://www.at.tcpdump.org/ \
13 http://www.br.tcpdump.org/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,TCPDUMP,tcpdump,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
26 BUILD_CC=$(TARGET_CC) HOSTCC=$(HOSTCC) \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
31 ac_cv_linux_vers=2 \
32 td_cv_buggygetaddrinfo="no" \
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 $(DISABLE_LARGEFILE) \
53 --enable-shared \
54 --disable-static \
55 --enable-ipv6 \
56 --without-crypto \
57 );
58 touch $@
59
60 $(PKG_BUILD_DIR)/.built:
61 rm -rf $(PKG_INSTALL_DIR)
62 mkdir -p $(PKG_INSTALL_DIR)
63 $(MAKE) -C $(PKG_BUILD_DIR) \
64 CCOPT="$(TARGET_CFLAGS)" INCLS="-I. -I$(STAGING_DIR)/usr/include" \
65 DESTDIR="$(PKG_INSTALL_DIR)" \
66 all install
67 touch $@
68
69 $(IPKG_TCPDUMP):
70 install -m0755 -d $(IDIR_TCPDUMP)/usr/sbin
71 install -m0755 $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(IDIR_TCPDUMP)/usr/sbin/
72 $(RSTRIP) $(IDIR_TCPDUMP)
73 $(IPKG_BUILD) $(IDIR_TCPDUMP) $(PACKAGE_DIR)
This page took 0.048757 seconds and 5 git commands to generate.