You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2012-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libdaq3
  9. PKG_VERSION:=3.0.5
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=GPL-2.0-only
  13. PKG_SOURCE:=libdaq-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://codeload.github.com/snort3/libdaq/tar.gz/v$(PKG_VERSION)?
  15. PKG_HASH:=4281464c5502037669e69d314b628df863420f590c4999c5b567c8016cd1e658
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/libdaq-$(PKG_VERSION)
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libdaq3
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=DAQ library
  25. URL:=$(PKG_SOURCE_URL)
  26. DEPENDS:=+libdnet +libpcap +libstdcpp +libmnl +libnetfilter-queue
  27. endef
  28. define Package/libdaq3/description
  29. Data Acquisition library for packet I/O.
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --disable-static \
  33. --enable-nfq-module \
  34. --with-dnet-includes="$(STAGING_DIR)/usr/include" \
  35. --with-dnet-libraries="$(STAGING_DIR)/usr/lib" \
  36. --with-libpcap-includes="$(STAGING_DIR)/usr/include" \
  37. --with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(STAGING_DIR)/usr/include/daq3
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/. $(STAGING_DIR)/usr/include/daq3/
  41. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq3
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/daq3/
  43. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq3/daq
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/* $(STAGING_DIR)/usr/lib/daq3/daq/
  45. endef
  46. define Package/libdaq3/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  49. $(INSTALL_DIR) $(1)/usr/lib/daq
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/*.so* $(1)/usr/lib/daq/
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  53. endef
  54. $(eval $(call BuildPackage,libdaq3))