summaryrefslogtreecommitdiff
path: root/package/pcre2/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2023-01-22 10:07:19 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2023-01-22 10:07:45 +0100
commit56b3cd93662900ef113a7fbce9bb05478c8d9bba (patch)
tree921503d5e4df88bd08f1d8e30295aa327dd830ef /package/pcre2/Makefile
parent0f2fabc0a3d7560b9e82f8a567b20d80f88e8869 (diff)
pcre2: new package
Diffstat (limited to 'package/pcre2/Makefile')
-rw-r--r--package/pcre2/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/pcre2/Makefile b/package/pcre2/Makefile
new file mode 100644
index 000000000..3c3cfe974
--- /dev/null
+++ b/package/pcre2/Makefile
@@ -0,0 +1,30 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= pcre2
+PKG_VERSION:= 10.42
+PKG_RELEASE:= 1
+PKG_HASH:= a8e52a9bd1bca8f51c5c24823adc2a99acb12288e289a6507090c1a4a4815010
+PKG_DESCR:= perl compatible regular expression library
+PKG_SECTION:= libs/misc
+PKG_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/package.mk
+
+$(eval $(call PKG_template,PCRE2,pcre2,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+CONFIG_STYLE:= cmake
+
+pcre2-install:
+ $(INSTALL_DIR) $(IDIR_PCRE2)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libpcre2*.so* \
+ $(IDIR_PCRE2)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk