Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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:= 1
  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. ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
  23. CONFIGURE_ARGS+= --enable-ipv6
  24. else
  25. CONFIGURE_ARGS+= --disable-ipv6
  26. endif
  27. post-install:
  28. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib/
  29. ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib/
  30. include ${TOPDIR}/mk/pkg-bottom.mk