Hi,

You can use ".if empty(PORT_OPTIONS:Mfoo)" to check if option "foo" is
off. Try this:

.if empty(PORT_OPTIONS:MTHREADS)
CONFIGURE_ARGS+=--without-pthreads
.endif

Regards,
sunpoet

On Thu, Jul 19, 2012 at 10:46 PM, Alexey Kouznetsov
<ale...@kouznetsov.com> wrote:
> Hello!
>
> After port was moved to new NGoptions this is inpossible to compile port
> with threads enabled. make always adds  --without-pthreads undepended on
> setings in make config
>
> At Makefile we have
> .if empty(${PORT_OPTIONS:MTHREADS})
> CONFIGURE_ARGS+=--without-pthreads
> .endif
>
> and resulted configure with THREADS enabled from config.log:
>   $ ./configure --with-ssl=/usr --disable-gost --disable-ecdsa
> --with-libevent=/usr/local --without-pthreads --prefix=/usr/local
>
> I changed this to
> .if !${PORT_OPTIONS:MTHREADS}
> CONFIGURE_ARGS+=--without-pthreads
> .endif
>
> and as result I have not --without-pthreads in configure parameters anymore
> and unbound started as multithread program
>
> Could you, please, change the port ?
>
> Thank you
> /Alexey
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"



-- 
  Sunpoet Po-Chuan Hsieh <sunpoet at sunpoet.net> <sunpoet at FreeBSD.org>
          4096R/CC57E36B 8AD8 68F2 7D2B 0A10 7E9B 8CC0 DC44 247E CC57 E36B
                            http://people.FreeBSD.org/~sunpoet/pgpkeys.txt
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to