aboutsummaryrefslogtreecommitdiff
path: root/graphics/opendx
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2001-05-08 11:59:05 +0000
committerThomas Gellekum <tg@FreeBSD.org>2001-05-08 11:59:05 +0000
commite4bc6a364b102c105d07a27c46e8bef16a52b9ae (patch)
tree6bc727f6481ade318dc1e4f5cae1366f057e9dd9 /graphics/opendx
parente9e51c195b6809f6ec5d0b4c450e609ac087cc9c (diff)
downloadports-e4bc6a364b102c105d07a27c46e8bef16a52b9ae.tar.gz
ports-e4bc6a364b102c105d07a27c46e8bef16a52b9ae.zip
Notes
Diffstat (limited to 'graphics/opendx')
-rw-r--r--graphics/opendx/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile
index e47702e9397f..f3bb1179bb61 100644
--- a/graphics/opendx/Makefile
+++ b/graphics/opendx/Makefile
@@ -34,10 +34,17 @@ CONFIGURE_ENV= ARCH="" \
CFLAGS="${CFLAGS} -I${PREFIX}/include" \
CPPFLAGS="-I${PREFIX}/include" \
CXXFLAGS="${CFLAGS} -I${PREFIX}/include" \
- LDFLAGS="-L${PREFIX}/lib"
+ LDFLAGS="-L${PREFIX}/lib ${LDFLAGS}"
NO_MTREE= yes
PLIST_SUB= ARCH=${OPSYS:L}
+.include <bsd.port.pre.mk>
+
+.if ${XFREE86_VERSION} >= 4
+CFLAGS+= ${PTHREAD_CFLAGS}
+LDFLAGS+= ${PTHREAD_LIBS}
+.endif
+
post-patch:
@find ${WRKSRC} -name Makefile.am | \
xargs ${PERL} -pi -e "s;-lXm ;${MOTIFLIB} ;g"
@@ -53,4 +60,4 @@ post-install:
xargs ${PERL} -pi -e "s;/usr/lpp;${PREFIX};g"
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>