Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 $(TOPDIR)/rules.mk
  4. PKG_NAME:= libpcap
  5. PKG_VERSION:= 1.5.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 33ba2f10f3a402cb5d34f5e2a904794a
  8. PKG_DESCR:= a low-level packet capture library
  9. PKG_SECTION:= libs
  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. PKG_FLAVOURS_LIBPCAP:= WITH_IPV6
  15. PKGFD_WITH_IPV6:= enable IPv6 support
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. CONFIGURE_ENV+= ac_cv_linux_vers=26
  19. CONFIGURE_ARGS+= --disable-yydebug \
  20. --with-build-cc=$(CC_FOR_BUILD) \
  21. --disable-dbus \
  22. --without-libnl \
  23. --with-pcap=linux
  24. TARGET_CFLAGS+= ${TARGET_CPPFLAGS}
  25. INSTALL_TARGET= install install-shared
  26. MAKE_FLAGS+= STAGING_TARGET_DIR=$(STAGING_TARGET_DIR)
  27. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  28. ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
  29. CONFIGURE_ARGS+= --enable-ipv6
  30. else
  31. CONFIGURE_ARGS+= --disable-ipv6
  32. endif
  33. #XAKE_FLAGS+= M4=m4
  34. libpcap-install:
  35. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib
  37. include ${TOPDIR}/mk/pkg-bottom.mk