From: Michael Heimpold Date: Tue, 14 Mar 2023 19:53:07 +0000 (+0100) Subject: pcre2: add host build (refs #20604) X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=55a015a2b4884b745538954b6b4227a29f4d7ad3;p=feed%2Fpackages.git pcre2: add host build (refs #20604) This adds a host build which can be used later by tools, e.g. swig - which in turn is used by gensio package to provide python bindings. While at, switch back from $(AUTORELEASE). Signed-off-by: Michael Heimpold --- diff --git a/libs/pcre2/Makefile b/libs/pcre2/Makefile index 1bd6d27599..8abdd5d717 100644 --- a/libs/pcre2/Makefile +++ b/libs/pcre2/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=pcre2 PKG_VERSION:=10.37 -PKG_RELEASE:=$(AUTORELEASE) +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/pcre/$(PKG_NAME)/$(PKG_VERSION) @@ -28,6 +28,7 @@ PKG_CONFIG_DEPENDS:=\ PKG_BUILD_DEPENDS:=zlib include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/cmake.mk define Package/libpcre2/default @@ -55,6 +56,18 @@ define Package/libpcre2-32 TITLE:=A Perl Compatible Regular Expression library (32bit support) endef +CMAKE_HOST_OPTIONS += \ + -DBUILD_SHARED_LIBS=ON \ + -DPCRE2_BUILD_PCRE2_8=ON \ + -DPCRE2_BUILD_PCRE2_16=ON \ + -DPCRE2_BUILD_PCRE2_32=ON \ + -DPCRE2_DEBUG=OFF \ + -DPCRE2_DISABLE_PERCENT_ZT=ON \ + -DPCRE2_SUPPORT_JIT=OFF \ + -DPCRE2_SHOW_REPORT=OFF \ + -DPCRE2_BUILD_PCRE2GREP=OFF \ + -DPCRE2_BUILD_TESTS=OFF + CMAKE_OPTIONS += \ -DBUILD_SHARED_LIBS=ON \ -DPCRE2_BUILD_PCRE2_8=ON \ @@ -92,3 +105,4 @@ endef $(eval $(call BuildPackage,libpcre2)) $(eval $(call BuildPackage,libpcre2-16)) $(eval $(call BuildPackage,libpcre2-32)) +$(eval $(call HostBuild))