# # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk PKG_NAME:=vectorscan PKG_VERSION:=5.4.11 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/VectorCamp/vectorscan/tar.gz/$(PKG_NAME)/$(PKG_VERSION)? PKG_HASH:=905f76ad1fa9e4ae0eb28232cac98afdb96c479666202c5a4c27871fb30a2711 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION) PKG_MAINTAINER:=John Audia PKG_LICENSE:=BSD-3-Clause BSD-2-Clause BSL-1.0 PKG_LICENSE_FILES:=LICENSE PKG_BUILD_PARALLEL:=1 CMAKE_INSTALL:=1 PKG_BUILD_DEPENDS:=ragel/host python3/host boost/host include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk CMAKE_OPTIONS += \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -Wno-dev define Package/vectorscan-headers CATEGORY:=Libraries SECTION:=libs TITLE:=Vectorscan Headers URL:=https://github.com/VectorCamp/vectorscan DEPENDS:=@aarch64 endef define Package/vectorscan-runtime CATEGORY:=Libraries SECTION:=libs TITLE:=Vectorscan Runtime URL:=https://github.com/VectorCamp/vectorscan DEPENDS:=@aarch64 +libstdcpp +libsqlite3 endef define Package/vectorscan-headers/description This package contains the headers for Vectorscan. A fork of Intel's Hyperscan, modified to run on more platforms. endef define Package/vectorscan-runtime/description This package contains the headers for Vectorscan. A fork of Intel's Hyperscan, modified to run on more platforms. endef # This installs files into ./staging_dir/. so that you can cross compile from the host define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/hs $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hs/* $(1)/usr/include/hs/ $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhs* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(INSTALL_DATA) $(PKG_BUILD_DIR)/libhs.pc $(1)/usr/lib/pkgconfig/libhs.pc endef # This installs files on the target. Compare with Build/InstallDev define Package/vectorscan-headers/install $(INSTALL_DIR) $(1)/usr/include/hs $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/hs/*.h $(1)/usr/include/hs/ endef define Package/vectorscan-runtime/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhs* $(1)/usr/lib/ endef $(eval $(call BuildPackage,vectorscan-headers)) $(eval $(call BuildPackage,vectorscan-runtime))