baremetal fix
[openadk.git] / package / libpcap / Makefile
blob6cac920eee3a38cb83acc4e76140ce2693b90578
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= libpcap
7 PKG_VERSION:= 1.9.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= 635237637c5b619bcceba91900666b64d56ecb7be63f298f601ec786ce087094
10 PKG_DESCR:= low-level packet capture library
11 PKG_SECTION:= libs/net
12 PKG_URL:= http://www.tcpdump.org/
13 PKG_SITES:= http://www.tcpdump.org/release/
14 PKG_OPTS:= dev
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_FLAVOURS_LIBPCAP:= WITH_IPV6
19 PKGFD_WITH_IPV6:= enable IPv6 support
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
25 CONFIGURE_ARGS+= --disable-yydebug \
26 --disable-dbus \
27 --without-libnl \
28 --with-pcap=linux
29 INSTALL_TARGET= install install-shared
31 ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
32 CONFIGURE_ARGS+= --enable-ipv6
33 else
34 CONFIGURE_ARGS+= --disable-ipv6
35 endif
37 libpcap-install:
38 ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib
39 ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib
41 include ${ADK_TOPDIR}/mk/pkg-bottom.mk