Date: Thu, 25 Aug 2011 19:06:41 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Rusty Nejdl <rnejdl@ringofsaturn.com> Cc: freebsd-emulation@freebsd.org Subject: Re: virtualbox on FreeBSD 8.2 Message-ID: <alpine.BSF.2.00.1108251904050.7028@wonkity.com> In-Reply-To: <assp.021810285c.2144761c39a0590435faf8a1c6a57cef@ringofsaturn.com> References: <201108252055.p7PKtI3J001414@mail.wynn.com> <assp.021810285c.2144761c39a0590435faf8a1c6a57cef@ringofsaturn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 25 Aug 2011, Rusty Nejdl wrote: > I was building a port that depended on threaded perl and used code like this: > > .if exists(${PERL}) > PERL_THREADS!= ${PERL} -V::usethreads > .if ${PERL_THREADS}!="'define';" > IGNORE= needs a threaded Perl, build with WITH_THREADS=yes flag and > try again > .endif > .else > IGNORE= needs an existing installation of Perl built with > WITH_THREADS=yes > .endif > > Perhaps you could use something similar? Some searching found security/clamav/Makefile: .if (defined(WITH_LLVM) || defined(WITH_LLVM_PORTS)) && defined(WITH_TESTS) pre-configure: @if ! ${PYTHON_CMD} -c "import thread" >/dev/null 2>&1; then \ ${ECHO_MSG} ""; \ ${ECHO_MSG} "========================================================================= ${ECHO_MSG} "= Unit tests REQUIRES python built with thread support, and yours is not. ${ECHO_MSG} "= It will not be called during this build ${ECHO_MSG} "========================================================================= ${ECHO_MSG} ""; \ ${TOUCH} ${PY_NO_THREAD}; \ fi .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1108251904050.7028>