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.

68 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
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=libdaq-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.snort.org/downloads/snortplus/
  13. PKG_HASH:=4de807ab8c622e9ef8e0cfaa8dbd9231ece17d14dc9ebaa63add800475347b99
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/libdaq-$(PKG_VERSION)
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  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
  27. endef
  28. define Package/libdaq3/description
  29. Data Acquisition library for packet I/O.
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --disable-static \
  33. --disable-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
  40. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include/
  41. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib* $(STAGING_DIR)/usr/lib/
  43. $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/daq
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/* $(STAGING_DIR)/usr/lib/daq/
  45. $(INSTALL_DIR) $(STAGING_DIR)/usr/bin
  46. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(STAGING_DIR)/usr/bin/
  47. endef
  48. define Package/libdaq3/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/lib/daq
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/daq/*.so* $(1)/usr/lib/daq/
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  55. endef
  56. $(eval $(call BuildPackage,libdaq3))