pkgsrc/lang/spidermonkey/options.mk
fhajny 2076f8d9ad Changing the 'threads' option to non-default. Two depending packages
(multimedia/mediatomb and multimedia/avidemux) were confirmed as
working with the non-threaded version, and broken (spinning CPU)
with the threaded one, after the 1.8.0 update.
2010-12-27 23:09:22 +00:00

24 lines
519 B
Makefile

# $NetBSD: options.mk,v 1.2 2010/12/27 23:09:22 fhajny Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.spidermonkey
PKG_SUPPORTED_OPTIONS= threads unicode
PKG_SUGGESTED_OPTIONS= # empty
.include "../../mk/bsd.options.mk"
###
### Threads support
###
.if !empty(PKG_OPTIONS:Mthreads)
PTHREAD_AUTO_VARS= yes
CFLAGS+= -DJS_THREADSAFE
.include "../../devel/nspr/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.endif
###
### UTF8 string support
###
.if !empty(PKG_OPTIONS:Municode)
CFLAGS+= -DJS_C_STRINGS_ARE_UTF8
.endif