pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/pcre2 Make JIT an option. Enable it by default o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ffe86737cd68
branches:  trunk
changeset: 367813:ffe86737cd68
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Sep 07 13:47:21 2017 +0000

description:
Make JIT an option. Enable it by default on the list of platforms
martin@ extracted from the source, see PR 52524.

The pattern matching and/or the list itself may need further fixes.

Retest on NetBSD 8 shows that the binaries are now mprotect-safe,
remove variable.

Bump PKGREVISION.

diffstat:

 devel/pcre2/Makefile   |   6 +++---
 devel/pcre2/options.mk |  19 +++++++++++++++++++
 2 files changed, 22 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r 48c18d3bace2 -r ffe86737cd68 devel/pcre2/Makefile
--- a/devel/pcre2/Makefile      Thu Sep 07 13:14:49 2017 +0000
+++ b/devel/pcre2/Makefile      Thu Sep 07 13:47:21 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2017/08/17 19:53:54 nros Exp $
+# $NetBSD: Makefile,v 1.10 2017/09/07 13:47:21 wiz Exp $
 
 DISTNAME=      pcre2-10.30
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
 MASTER_SITES+= https://ftp.pcre.org/pub/pcre/
@@ -15,7 +16,6 @@
 USE_LANGUAGES=         c
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --enable-jit
 
 PKGCONFIG_OVERRIDE+=   libpcre2-16.pc.in
 PKGCONFIG_OVERRIDE+=   libpcre2-posix.pc.in
@@ -29,7 +29,7 @@
 
 TEST_TARGET=           check
 
-NOT_PAX_MPROTECT_SAFE= bin/pcre2grep bin/pcre2test
+.include "options.mk"
 
 .include "../../archivers/bzip2/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
diff -r 48c18d3bace2 -r ffe86737cd68 devel/pcre2/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pcre2/options.mk    Thu Sep 07 13:47:21 2017 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.1 2017/09/07 13:47:21 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.pcre2
+PKG_SUPPORTED_OPTIONS= pcre2-jit
+
+.if (${MACHINE_ARCH} == "i386" || \
+    ${MACHINE_ARCH} == "x86_64" || \
+    ${MACHINE_ARCH} == "mips" || \
+    ${MACHINE_ARCH} == "powerpc" || \
+    ${MACHINE_ARCH} == "sparc" || \
+    (!empty(MACHINE_ARCH:Marm) && empty(MACHINE_ARCH:Marmv4)))
+PKG_SUGGESTED_OPTIONS= pcre2-jit
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpcre2-jit)
+CONFIGURE_ARGS+=       --enable-jit
+.endif



Home | Main Index | Thread Index | Old Index