Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= 1
  7. PKG_MD5SUM:= 33ba2f10f3a402cb5d34f5e2a904794a
  8. PKG_DESCR:= a low-level packet capture library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= 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. --without-libnl \
  22. --with-pcap=linux
  23. TARGET_CFLAGS+= ${TARGET_CPPFLAGS}
  24. INSTALL_TARGET= install install-shared
  25. MAKE_FLAGS+= STAGING_TARGET_DIR=$(STAGING_TARGET_DIR)
  26. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  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. include ${TOPDIR}/mk/pkg-bottom.mk