diff options
Diffstat (limited to 'graphics/opendx/Makefile')
-rw-r--r-- | graphics/opendx/Makefile | 11 |
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> |