Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / tor / options.mk
blobc2ff6ef7985a43745a68e6209ab7cb6888bbb66d
1 # $NetBSD$
3 PKG_OPTIONS_VAR= PKG_OPTIONS.tor
4 PKG_SUPPORTED_OPTIONS= threads
6 .if !empty(PTHREAD_TYPE:Mnative)
7 PKG_SUGGESTED_OPTIONS+= threads
8 .endif
10 .include "../../mk/bsd.options.mk"
12 ###
13 ### This enables new code for threaded operation on NetBSD, OpenBSD, etc.
14 ### I used {PTHREAD,RESOLV}_AUTO_VARS here for consistency's sake, as
15 ### I don't trust configure scripts to do this properly on all platforms.
16 ###
17 .if !empty(PKG_OPTIONS:Mthreads)
18 CONFIGURE_ARGS+= --enable-eventdns
19 CONFIGURE_ARGS+= --enable-threads
20 PTHREAD_OPTS+= require
21 PTHREAD_AUTO_VARS= yes
22 USE_FEATURES.openssl+= threads
23 .else
24 CONFIGURE_ARGS+= --disable-threads
25 .endif