summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2004-11-17 18:24:46 +0000
committernobutaka <nobutaka@FreeBSD.org>2004-11-17 18:24:46 +0000
commit8ffb7b9c096e09752506f71ec07dcbf9aa8d0ef1 (patch)
tree241a2c6bca87ce85c1a0517354f0a7c5dd66efb2
parentd9662ff01f4cac81c537638204525c7905571aed (diff)
downloadFreeBSD-ports-8ffb7b9c096e09752506f71ec07dcbf9aa8d0ef1.zip
FreeBSD-ports-8ffb7b9c096e09752506f71ec07dcbf9aa8d0ef1.tar.gz
Read the options file of boehm-gc to check necessity of a thread library.
-rw-r--r--www/w3m/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
index 0246b57..e08be27 100644
--- a/www/w3m/Makefile
+++ b/www/w3m/Makefile
@@ -82,7 +82,12 @@ CONFIGURE_ARGS+= --enable-keymap=lynx
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 502102
+.if exists(${PORT_DBDIR}/boehm-gc/options)
+.include "${PORT_DBDIR}/boehm-gc/options"
+.endif
+
+.if defined(WITH_THREADING)
+.if ${OSVERSION} < 502102
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="${LIBS} ${PTHREAD_LIBS} -lc_r"
.else
@@ -93,6 +98,7 @@ CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="${LIBS} -lpthread -lc"
.endif
+.endif
pre-everything::
@${ECHO_MSG} "===>"
OpenPOWER on IntegriCloud