2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.tcpdump.org
/release
/
17 PKG_MD5SUM
:=5208f24d0328ee7c20b52c43eaa9aa0e
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/libpcap
24 TITLE
:=Low-level packet capture library
25 URL
:=http
://www.tcpdump.org
/
28 define Package
/libpcap
/description
29 This package contains a system-independent library for user-level network
38 --with-build-cc
="$(HOSTCC)" \
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 CCOPT
="$(TARGET_CFLAGS) -I$(BUILD_DIR)/linux/include" \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 define Build
/InstallDev
49 mkdir
-p
$(1)/usr
/include
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/pcap
{,-bpf
,-namedb
}.h \
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcap.
{a
,so
*} \
57 define Package
/libpcap
/install
58 $(INSTALL_DIR
) $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpcap.so.
* $(1)/usr
/lib
/
62 $(eval
$(call BuildPackage
,libpcap
))