aboutsummaryrefslogtreecommitdiffstats
path: root/cad/qcad/Makefile
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2002-11-23 02:58:35 +0800
committerarved <arved@FreeBSD.org>2002-11-23 02:58:35 +0800
commiteaea16b703b987f43c7cfed4c97c4966d5d421a7 (patch)
tree3e3c80275f023331a5a209d1c2274b9279572bdc /cad/qcad/Makefile
parent23a5cc0b8a3f3174d75626d53a05e4547a21ad96 (diff)
downloadfreebsd-ports-gnome-eaea16b703b987f43c7cfed4c97c4966d5d421a7.tar.gz
freebsd-ports-gnome-eaea16b703b987f43c7cfed4c97c4966d5d421a7.tar.zst
freebsd-ports-gnome-eaea16b703b987f43c7cfed4c97c4966d5d421a7.zip
Pass QTDIR explict to qmake
Reported by: bento, Michael Collette <metrol@metrol.net>
Diffstat (limited to 'cad/qcad/Makefile')
-rw-r--r--cad/qcad/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile
index 093b575222bd..7e659410f2f8 100644
--- a/cad/qcad/Makefile
+++ b/cad/qcad/Makefile
@@ -17,12 +17,14 @@ MAINTAINER= ports@FreeBSD.org
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_REINPLACE= yes
USE_QT_VER= 3
+QTDIR?= ${X11BASE}
.include <bsd.port.pre.mk>
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+= -O0
.endif
+MAKE_ENV+= QTDIR=${QTDIR}
post-patch:
${REINPLACE_CMD} -e 's,warn_on,warn_on thread,' ${WRKSRC}/qcad.pro
@@ -31,7 +33,7 @@ post-patch:
${WRKSRC}/rfonts.cpp ${WRKSRC}/rlibrarybrowser.cpp
pre-build:
- cd ${BUILD_WRKSRC}; qmake -spec ${X11BASE}/mkspecs/freebsd-g++ qcad.pro
+ cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} qmake -spec ${X11BASE}/mkspecs/freebsd-g++ qcad.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/qcad ${PREFIX}/bin