aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2009-11-09 16:29:21 +0800
committerarved <arved@FreeBSD.org>2009-11-09 16:29:21 +0800
commitc21865edde4192f83247d5ee22c15912af1a46c4 (patch)
treed99b2da43c0d2732f118e9ee9c330d064bc06da6 /lang
parentba6cb17bc2a04719fdf07e2397f4371cb8c6a27c (diff)
downloadfreebsd-ports-gnome-c21865edde4192f83247d5ee22c15912af1a46c4.tar.gz
freebsd-ports-gnome-c21865edde4192f83247d5ee22c15912af1a46c4.tar.zst
freebsd-ports-gnome-c21865edde4192f83247d5ee22c15912af1a46c4.zip
Add option for UTF8 support
PR: 140124 Submitted by: Mirko Zinn <mail@derzinn.de> Approved by: maintainer
Diffstat (limited to 'lang')
-rw-r--r--lang/spidermonkey/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/lang/spidermonkey/Makefile b/lang/spidermonkey/Makefile
index d1ecbf6a6b12..f3f6e3eb344d 100644
--- a/lang/spidermonkey/Makefile
+++ b/lang/spidermonkey/Makefile
@@ -44,6 +44,14 @@ WRKSRC= ${WRKDIR}/${SRC_DIR}
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
--exclude js/jsd
+OPTIONS= UTF8 "Enable UTF8 support" Off
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_UTF8)
+CFLAGS+= -DJS_C_STRINGS_ARE_UTF8
+.endif
+
do-configure:
${CP} ${WRKSRC}/config/Linux_All.mk \
${WRKSRC}/config/${OPSYS}`${UNAME} -r`.mk && \