aboutsummaryrefslogtreecommitdiffstats
path: root/www/w3m
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2004-07-17 23:15:32 +0800
committernobutaka <nobutaka@FreeBSD.org>2004-07-17 23:15:32 +0800
commit492183ca1dc61fd7c23c9d6613aafbbd420582a8 (patch)
tree62211f3397bdc79d49e0c6175523055928d1bd49 /www/w3m
parent4003c9830a21953348664c906d2d55b4c6005b59 (diff)
downloadfreebsd-ports-gnome-492183ca1dc61fd7c23c9d6613aafbbd420582a8.tar.gz
freebsd-ports-gnome-492183ca1dc61fd7c23c9d6613aafbbd420582a8.tar.zst
freebsd-ports-gnome-492183ca1dc61fd7c23c9d6613aafbbd420582a8.zip
Fix configure error caused by boehm-gc with the REDIRECT option.
Diffstat (limited to 'www/w3m')
-rw-r--r--www/w3m/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile
index b3fe29205cad..30504a686c30 100644
--- a/www/w3m/Makefile
+++ b/www/w3m/Makefile
@@ -23,9 +23,6 @@ CONFLICTS?= ja-w3m-0.5.* ja-w3m-img-0.5.* w3m-m17n-0.5.* w3m-img-0.5.* w3m-m17n-
GNU_CONFIGURE= yes
USE_REINPLACE= yes
-CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
- LIBS="${LIBS} ${PTHREAD_LIBS}"
-
MAN1= w3m.1 w3mman.1
MANLANG= "" ja
@@ -82,6 +79,16 @@ PKGMESSAGE= ${NONEXISTENT}
CONFIGURE_ARGS+= --enable-keymap=lynx
.endif
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500016
+CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LIBS="${LIBS} ${PTHREAD_LIBS} -lc_r"
+.else
+CONFIGURE_ENV= DEFS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LIBS="${LIBS} ${PTHREAD_LIBS} -lc"
+.endif
+
pre-everything::
@${ECHO_MSG} "===>"
@${ECHO_MSG} "===> You can enable some features by defining following variables."
@@ -144,4 +151,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>