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.0-beta1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/
  12. PKG_SOURCE:=daq-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=ef74aa1c30a6ee93eacbe7967d1c85d7df3214cf3783d4eabbb6b64305fd273e
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/daq-$(PKG_VERSION)
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libdaq3
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=DAQ library
  24. URL:=$(PKG_SOURCE_URL)
  25. DEPENDS:=+libdnet +libpcap +libstdcpp
  26. endef
  27. define Package/libdaq3/description
  28. Data Acquisition library for packet I/O.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --disable-static \
  32. --disable-nfq-module \
  33. --with-dnet-includes="$(STAGING_DIR)/usr/include" \
  34. --with-dnet-libraries="$(STAGING_DIR)/usr/lib" \
  35. --with-libpcap-includes="$(STAGING_DIR)/usr/include" \
  36. --with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(STAGING_DIR)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include/
  40. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/
  42. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/* $(STAGING_DIR)/usr/lib/daq/
  44. $(INSTALL_DIR) $(STAGING_DIR)/usr/bin
  45. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(STAGING_DIR)/usr/bin/
  46. endef
  47. define Package/libdaq3/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  50. $(INSTALL_DIR) $(1)/usr/lib/daq
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/*.so* $(1)/usr/lib/daq/
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  54. endef
  55. $(eval $(call BuildPackage,libdaq3))