add fragmentation and rts settings thanks rene closes #1725
[openwrt.git] / package / libpcap / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libpcap
12 PKG_VERSION:=0.9.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.tcpdump.org/release/
17 PKG_MD5SUM:=79025766e8027df154cb1f32de8a7974
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libpcap
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=Low-level packet capture library
25 DESCRIPTION:=\
26 This package contains a system-independent library for user-level \\\
27 network packet capture.
28 URL:=http://www.tcpdump.org/
29 endef
30
31 CONFIGURE_ARGS += \
32 --enable-shared \
33 --enable-static \
34 --disable-yydebug \
35 --enable-ipv6 \
36 --with-build-cc="$(HOSTCC)" \
37 --with-pcap=linux
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 CCOPT="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 all install
44 endef
45
46 define Build/InstallDev
47 mkdir -p $(STAGING_DIR)/usr/include
48 $(CP) $(PKG_INSTALL_DIR)/usr/include/pcap{,-bpf,-namedb}.h \
49 $(STAGING_DIR)/usr/include/
50 mkdir -p $(STAGING_DIR)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} \
52 $(STAGING_DIR)/usr/lib/
53 endef
54
55 define Build/UninstallDev
56 rm -rf $(STAGING_DIR)/usr/include/pcap{,-bpf,-namedb}.h \
57 $(STAGING_DIR)/usr/lib/libpcap.{a,so*}
58 endef
59
60 define Package/libpcap/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so.* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,libpcap))
This page took 0.055985 seconds and 5 git commands to generate.