diff --git a/graphics/opendx/Makefile b/graphics/opendx/Makefile index 44c7b3698289..f5a5fc366e8f 100644 --- a/graphics/opendx/Makefile +++ b/graphics/opendx/Makefile @@ -29,20 +29,13 @@ USE_XLIB= yes AUTOMAKE_ARGS= -a -i CONFIGURE_ARGS= --without-magick CONFIGURE_ENV= ARCH="" \ - CFLAGS="${CFLAGS} -I${PREFIX}/include" \ + CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${PREFIX}/include" \ CPPFLAGS="-I${PREFIX}/include" \ - CXXFLAGS="${CFLAGS} -I${PREFIX}/include" \ - LDFLAGS="-L${PREFIX}/lib ${LDFLAGS}" + CXXFLAGS="${CFLAGS} ${PTHREAD_CFLAGS} -I${PREFIX}/include" \ + LDFLAGS="-L${PREFIX}/lib ${LDFLAGS} ${PTHREAD_LIBS}" NO_MTREE= yes PLIST_SUB= ARCH=${OPSYS:L} -.include - -.if ${XFREE86_VERSION} >= 4 -CFLAGS+= ${PTHREAD_CFLAGS} -LDFLAGS+= ${PTHREAD_LIBS} -.endif - post-patch: @${RM} -f ${WRKSRC}/include/stamp-h.in @@ -59,4 +52,4 @@ post-install: xargs ${PERL} -pi -e "s;/usr/lpp;${PREFIX};g" .endfor -.include +.include