diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2023-01-23 10:22:08 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2023-01-23 10:22:08 +0100 |
commit | 9b00049c21731f40c16026c4c9e7246c4b013915 (patch) | |
tree | 80ba84a928237f64736fa0f925b9b66af6f319a1 /package | |
parent | 66749093b1f7a286254fd5d527b783b607a077bb (diff) |
pcre2: add host variant
Diffstat (limited to 'package')
-rw-r--r-- | package/pcre2/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/pcre2/Makefile b/package/pcre2/Makefile index 3c3cfe974..20a3d1441 100644 --- a/package/pcre2/Makefile +++ b/package/pcre2/Makefile @@ -10,21 +10,27 @@ PKG_HASH:= a8e52a9bd1bca8f51c5c24823adc2a99acb12288e289a6507090c1a4a4815010 PKG_DESCR:= perl compatible regular expression library PKG_SECTION:= libs/misc PKG_BUILDDEP:= cmake-host +HOST_BUILDDEP:= cmake-host PKG_SITES:= https://github.com/PCRE2Project/pcre2/archive/refs/tags/ PKG_OPTS:= dev DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz WRKDIST= ${WRKDIR}/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION) +include $(ADK_TOPDIR)/mk/host.mk include $(ADK_TOPDIR)/mk/package.mk +$(eval $(call HOST_template,PCRE2,pcre2,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,PCRE2,pcre2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS))) +HOST_STYLE:= cmake CONFIG_STYLE:= cmake +CMAKE_FLAGS+= -DBUILD_SHARED_LIBS=ON pcre2-install: $(INSTALL_DIR) $(IDIR_PCRE2)/usr/lib $(CP) $(WRKINST)/usr/lib/libpcre2*.so* \ $(IDIR_PCRE2)/usr/lib +include ${ADK_TOPDIR}/mk/host-bottom.mk include $(ADK_TOPDIR)/mk/pkg-bottom.mk |