diff options
author | kwm <kwm@FreeBSD.org> | 2014-03-07 04:24:29 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2014-03-07 04:24:29 +0800 |
commit | 16f6869c639de0e5e4c33046d4464b5b2d8c7ee2 (patch) | |
tree | a9a34c35fa3fa1453a37e31093abe60d89535003 /lang/spidermonkey24 | |
parent | 4679d1f75245067d38f3037b808c12dd3782466f (diff) | |
download | freebsd-ports-gnome-16f6869c639de0e5e4c33046d4464b5b2d8c7ee2.tar.gz freebsd-ports-gnome-16f6869c639de0e5e4c33046d4464b5b2d8c7ee2.tar.zst freebsd-ports-gnome-16f6869c639de0e5e4c33046d4464b5b2d8c7ee2.zip |
Use option helpers.
Diffstat (limited to 'lang/spidermonkey24')
-rw-r--r-- | lang/spidermonkey24/Makefile | 65 |
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> |