summaryrefslogtreecommitdiff
path: root/lang/spidermonkey24
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2014-03-06 20:24:29 +0000
committerKoop Mast <kwm@FreeBSD.org>2014-03-06 20:24:29 +0000
commit444a170ef2f5ae2a0a2398da4b79f1ebcf2269d0 (patch)
treea9a34c35fa3fa1453a37e31093abe60d89535003 /lang/spidermonkey24
parentStagify, use option helper. (diff)
Use option helpers.
Notes
Notes: svn path=/head/; revision=347313
Diffstat (limited to 'lang/spidermonkey24')
-rw-r--r--lang/spidermonkey24/Makefile65
1 files changed, 10 insertions, 55 deletions
diff --git a/lang/spidermonkey24/Makefile b/lang/spidermonkey24/Makefile
index dc2c90efa8fa..4181a00324bc 100644
--- a/lang/spidermonkey24/Makefile
+++ b/lang/spidermonkey24/Makefile
@@ -35,69 +35,24 @@ OPTIONS_DEFINE= DEBUG GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \
OPTIONS_DEFAULT= METHODJIT OPTIMIZE READLINE THREADSAFE TRACEJIT
DEBUG_DESC= Enable Debug build
+DEBUG_CONFIGURE_ENABLE= debug debug-symbols
+DEBUG_CONFIGURE_DISABLE=debug
GCZEAL_DESC= Enable Zealous garbage collecting
+GCZEAL_CONFIGURE_ENABLE=gczeal
JEMALLOC_DESC= Use jemalloc as memory allocator
+JEMALLOC_CONFIGURE_ENABLE= jemalloc
METHODJIT_DESC= Enable method JIT support
+METHODJIT_CONFIGURE_ENABLE= methodjit
OPTIMIZE_DESC= Enable compiler optimizations
+OPTIMIZE_CONFIGURE_ENABLE= optimize
READLINE_DESC= Link js shell to system readline library
+READLINE_CONFIGURE_ENABLE= readline
THREADSAFE_DESC= Enable multiple thread support
+THREADSAFE_CONFIGURE_ENABLE= threadsafe
TRACEJIT_DESC= Enable tracing JIT support
+TRACEJIT_CONFIGURE_ENABLE= tracejit
UTF8_DESC= Treat strings as UTF8 instead of ISO-8859-1
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+= --enable-debug \
- --enable-debug-symbols
-.else
-CONFIGURE_ARGS+= --disable-debug
-.endif
-
-.if ${PORT_OPTIONS:MGCZEAL}
-CONFIGURE_ARGS+= --enable-gczeal
-.else
-CONFIGURE_ARGS+= --disable-gczeal
-.endif
-
-.if ${PORT_OPTIONS:MJEMALLOC}
-CONFIGURE_ARGS+= --enable-jemalloc
-.else
-CONFIGURE_ARGS+= --disable-jemalloc
-.endif
-
-.if ${PORT_OPTIONS:MMETHODJIT}
-CONFIGURE_ARGS+= --enable-methodjit
-.else
-CONFIGURE_ARGS+= --disable-methodjit
-.endif
-
-.if ${PORT_OPTIONS:MOPTIMIZE}
-CONFIGURE_ARGS+= --enable-optimize
-.else
-CONFIGURE_ARGS+= --disable-optimize
-.endif
-
-.if ${PORT_OPTIONS:MREADLINE}
-CONFIGURE_ARGS+= --enable-readline
-.else
-CONFIGURE_ARGS+= --disable-readline
-.endif
-
-.if ${PORT_OPTIONS:MTHREADSAFE}
-CONFIGURE_ARGS+= --enable-threadsafe
-.else
-CONFIGURE_ARGS+= --disable-threadsafe
-.endif
-
-.if ${PORT_OPTIONS:MTRACEJIT}
-CONFIGURE_ARGS+= --enable-tracejit
-.else
-CONFIGURE_ARGS+= --disable-tracejit
-.endif
-
-.if ${PORT_OPTIONS:MUTF8}
-CFLAGS+= -DJS_C_STRINGS_ARE_UTF8
-.endif
+UTF8_CFLAGS= -DJS_C_STRINGS_ARE_UTF8
.include <bsd.port.pre.mk>