blob: 9da0b546fa61683395bbc4deb63488c15a8fa1c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $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
|