Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= f78455a92622b7a3c05c58b6ad1cec7e
  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_SUBPKGS:= LIBPCAP LIBPCAP_DEV
  13. PKGSD_LIBPCAP_DEV:= headers for a low-level packet capture library
  14. PKGSC_LIBPCAP_DEV:= devel
  15. PKG_FLAVOURS_LIBPCAP:= WITH_IPV6
  16. PKGFD_WITH_IPV6:= enable IPv6 support
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,LIBPCAP,libpcap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBPCAP_DEV,libpcap-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCAP_DEV},${PKGSC_LIBPCAP_DEV}))
  20. CONFIGURE_ENV+= ac_cv_linux_vers=26
  21. CONFIGURE_ARGS+= --disable-yydebug \
  22. --with-build-cc=$(CC_FOR_BUILD) \
  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. libpcap-dev-install:
  38. ${INSTALL_DIR} ${IDIR_LIBPCAP_DEV}/usr/include
  39. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBPCAP_DEV}/usr/include
  40. include ${TOPDIR}/mk/pkg-bottom.mk