From 5bea5caa17b00b4c7b3a0fa0b95a71867d395f00 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Mon, 31 Oct 2016 16:48:29 +0000 Subject: [PATCH] Use an option helper and put the description block for it into a pkg-help. Improve an ARCH-checking construct. --- devel/pcre/Makefile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/devel/pcre/Makefile b/devel/pcre/Makefile index e787ff267dc9..ac96707d0633 100644 --- a/devel/pcre/Makefile +++ b/devel/pcre/Makefile @@ -43,13 +43,9 @@ LIBEDIT_CONFIGURE_ENABLE= pcretest-libedit READLINE_USES= readline READLINE_CONFIGURE_ENABLE= pcretest-libreadline -.include +STACK_RECURSION_CONFIGURE_ENABLE= stack-for-recursion -# Using the heap rather than the stack for recursion is slower but less -# prone to segfaults from stack exhaustion when matching certain patterns -.if !${PORT_OPTIONS:MSTACK_RECURSION} -CONFIGURE_ARGS+= --disable-stack-for-recursion -.endif +.include # Optional knobs that accept positive integer parameters (see pcrebuild(3)): @@ -84,9 +80,7 @@ CONFIGURE_ARGS+= --with-parens-nest-limit=${WITH_PARENS_NEST_LIMIT} CONFIGURE_ARGS+= --with-posix-malloc-threshold=${WITH_POSIX_MALLOC_THRESHOLD} .endif -.include - -.if ${ARCH} != "sparc64" && ${ARCH} != "ia64" && ${ARCH:Mmips64*} == "" +.if ${ARCH} != "sparc64" && ${ARCH} != "ia64" && empty(ARCH:Mmips64*) CONFIGURE_ARGS+= --enable-jit .else CONFIGURE_ARGS+= --disable-jit