vectorscan: remove vectorscan-headers package and add ABI version

The vectorscan-headers package installed headers to the target device,
but headers are only needed during the build process (via Build/InstallDev).

- Rename vectorscan-runtime to vectorscan to simplify things
- Add ABI_VERSION:=5 to track library soname versioning

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Josef Schlehofer
2025-10-09 11:35:27 +02:00
parent 404bcec4ce
commit 8a3c7a69e6

View File

@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=vectorscan PKG_NAME:=vectorscan
PKG_VERSION:=5.4.12 PKG_VERSION:=5.4.12
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/VectorCamp/vectorscan/tar.gz/$(PKG_NAME)/$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/VectorCamp/vectorscan/tar.gz/$(PKG_NAME)/$(PKG_VERSION)?
@@ -41,30 +41,19 @@ else
CMAKE_OPTIONS += -DFAT_RUNTIME=OFF -DBUILD_BENCHMARKS=OFF CMAKE_OPTIONS += -DFAT_RUNTIME=OFF -DBUILD_BENCHMARKS=OFF
endif endif
define Package/vectorscan-headers define Package/vectorscan
CATEGORY:=Libraries
SECTION:=libs SECTION:=libs
TITLE:=Vectorscan Headers
URL:=https://github.com/VectorCamp/vectorscan
DEPENDS:=@(x86_64||aarch64)
endef
define Package/vectorscan-runtime
CATEGORY:=Libraries CATEGORY:=Libraries
SECTION:=libs
TITLE:=Vectorscan Runtime TITLE:=Vectorscan Runtime
URL:=https://github.com/VectorCamp/vectorscan URL:=https://github.com/VectorCamp/vectorscan
DEPENDS:= +libstdcpp +libsqlite3 @(x86_64||aarch64) DEPENDS:= +libstdcpp +libsqlite3 @(x86_64||aarch64)
ABI_VERSION:=5
endef endef
define Package/vectorscan-headers/description define Package/vectorscan/description
This package contains the headers for Vectorscan. Vectorscan is a portable fork of Intel's Hyperscan, a high-performance
A fork of Intel's Hyperscan, modified to run on more platforms. multiple regex matching library. It provides a streaming and block-based
endef regex matcher with support for large pattern sets.
define Package/vectorscan-runtime/description
This package contains the shared objects for Vectorscan.
A fork of Intel's Hyperscan, modified to run on more platforms.
endef endef
define Build/InstallDev define Build/InstallDev
@@ -76,15 +65,9 @@ define Build/InstallDev
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libhs.pc $(1)/usr/lib/pkgconfig/libhs.pc $(INSTALL_DATA) $(PKG_BUILD_DIR)/libhs.pc $(1)/usr/lib/pkgconfig/libhs.pc
endef endef
define Package/vectorscan-headers/install define Package/vectorscan/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 $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libhs* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhs.so* $(1)/usr/lib/
endef endef
$(eval $(call BuildPackage,vectorscan-headers)) $(eval $(call BuildPackage,vectorscan))
$(eval $(call BuildPackage,vectorscan-runtime))