summaryrefslogtreecommitdiff
path: root/comms/mwavem
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-21 09:39:10 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-21 09:39:10 +0000
commitc8db76b9feee4aaa2dbbb413a7476f28d6c0a453 (patch)
treea3f78403635fa73c5c6a4b1f1852702212c4c76d /comms/mwavem
parentadd missing header files (diff)
liblthread.so.3 is used with GCC3
liblthread.so.2 is used with GCC2 Noticed on: bento
Notes
Notes: svn path=/head/; revision=70653
Diffstat (limited to 'comms/mwavem')
-rw-r--r--comms/mwavem/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/comms/mwavem/Makefile b/comms/mwavem/Makefile
index 16867d816abb..3df75588168e 100644
--- a/comms/mwavem/Makefile
+++ b/comms/mwavem/Makefile
@@ -15,8 +15,6 @@ EXTRACT_SUFX= .tgz
MAINTAINER= oberman@es.net
-LIB_DEPENDS= lthread.2:${PORTSDIR}/devel/linuxthreads
-
ONLY_FOR_ARCHS= i386
GNU_CONFIGURE= yes
@@ -26,6 +24,21 @@ SLEEP= /bin/sleep
.include <bsd.port.pre.mk>
+LTHREADVERSION=2
+.if ${OSVERSION} >= 500035
+LTHREADVERSION= 3
+.endif
+.if ${CC:Mgcc30}!=""
+LTHREADVERSION= 3
+.endif
+.if ${CC:Mgcc31}!=""
+LTHREADVERSION= 3
+.endif
+.if ${CC:Mgcc32}!=""
+LTHREADVERSION= 3
+.endif
+LIB_DEPENDS= lthread.${LTHREADVERSION}:${PORTSDIR}/devel/linuxthreads
+
pre-build:
${PERL} -pi.orig -e "s@ /modules@ ${PREFIX}/share/mwavem@g" ${WRKSRC}/src/drivers/Makefile
${PERL} -pi.orig -e "s@#include <malloc.h>\n@@g" \