Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.1.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 1bca27d206970badae248cfa471bbb47
  8. PKG_DESCR:= a low-level packet capture library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.tcpdump.org/
  11. PKG_SITES:= http://www.tcpdump.org/release/
  12. PKG_FLAVOURS:= WITH_IPV6
  13. PKGFD_WITH_IPV6:= enable IPv6 support
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,LIBPCAP,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIGURE_ENV+= ac_cv_linux_vers=26
  17. CONFIGURE_ARGS+= --disable-yydebug \
  18. --with-build-cc=$(HOSTCC) \
  19. --with-pcap=linux
  20. TCFLAGS+= ${TCPPFLAGS}
  21. INSTALL_TARGET= install install-shared
  22. MAKE_FLAGS+= STAGING_TARGET_DIR=$(STAGING_TARGET_DIR)
  23. ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
  24. CONFIGURE_ARGS+= --enable-ipv6
  25. else
  26. CONFIGURE_ARGS+= --disable-ipv6
  27. endif
  28. post-install:
  29. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib/
  30. ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib/
  31. include ${TOPDIR}/mk/pkg-bottom.mk