- Add an option to build without threads.
Requested by: Beastie <beastie24@gmail.com>
This commit is contained in:
parent
a74cad6a45
commit
587665b63f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218771
1 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= unbound
|
||||
PORTVERSION= 1.0.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://unbound.net/downloads/
|
||||
|
||||
|
@ -33,7 +34,8 @@ PKGINSTALL= ${WRKDIR}/pkg-install
|
|||
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
||||
SUB_FILES= pkg-install pkg-deinstall
|
||||
|
||||
OPTIONS= LIBEVENT "is useful when using many (10000) outgoing ports" off
|
||||
OPTIONS= LIBEVENT "is useful when using many (10000) outgoing ports" off \
|
||||
THREADS "build with threads support" on
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
@ -44,6 +46,10 @@ CONFIGURE_ARGS+= --with-libevent=${LOCALBASE}
|
|||
CONFIGURE_ARGS+= --with-libevent=no
|
||||
.endif
|
||||
|
||||
.if !defined(WITH_THREADS)
|
||||
CONFIGURE_ARGS+= --without-pthreads
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${MKDIR} ${WRKSRC}/balancer
|
||||
@${RM} ${WRKSRC}/util/configlexer.c
|
||||
|
|
Loading…
Reference in a new issue