1
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= libpcap
  5. PKG_VERSION:= 1.6.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 116cbb3ac9e96d5dd7b39638a2f894a67fa3dcf06d794e6dae2b9a942ad13476
  8. PKG_DESCR:= low-level packet capture library
  9. PKG_SECTION:= libs/net
  10. PKG_BUILDDEP:= m4-host flex-host bison-host libnl
  11. PKG_URL:= http://www.tcpdump.org/
  12. PKG_SITES:= http://www.tcpdump.org/release/
  13. PKG_OPTS:= dev
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_FLAVOURS_LIBPCAP:= WITH_IPV6
  16. PKGFD_WITH_IPV6:= enable IPv6 support
  17. include $(ADK_TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CONFIGURE_ENV+= ac_cv_linux_vers=26
  20. CONFIGURE_ARGS+= --disable-yydebug \
  21. --with-build-cc=$(CC_FOR_BUILD) \
  22. --disable-dbus \
  23. --without-libnl \
  24. --with-pcap=linux
  25. TARGET_CFLAGS+= ${TARGET_CPPFLAGS}
  26. INSTALL_TARGET= install install-shared
  27. MAKE_FLAGS+= STAGING_TARGET_DIR=$(STAGING_TARGET_DIR)
  28. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  29. ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
  30. CONFIGURE_ARGS+= --enable-ipv6
  31. else
  32. CONFIGURE_ARGS+= --disable-ipv6
  33. endif
  34. #XAKE_FLAGS+= M4=m4
  35. libpcap-install:
  36. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib
  38. include ${ADK_TOPDIR}/mk/pkg-bottom.mk