Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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:= 3
  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_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. ifneq (${ADK_PACKAGE_LIBPCAP_WITH_IPV6},)
  28. CONFIGURE_ARGS+= --enable-ipv6
  29. else
  30. CONFIGURE_ARGS+= --disable-ipv6
  31. endif
  32. XAKE_FLAGS+= M4=m4
  33. libpcap-install:
  34. ${INSTALL_DIR} ${IDIR_LIBPCAP}/usr/lib
  35. ${CP} ${WRKINST}/usr/lib/libpcap.so* ${IDIR_LIBPCAP}/usr/lib
  36. libpcap-dev-install:
  37. ${INSTALL_DIR} ${IDIR_LIBPCAP_DEV}/usr/include
  38. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBPCAP_DEV}/usr/include
  39. include ${TOPDIR}/mk/pkg-bottom.mk