From eaea16b703b987f43c7cfed4c97c4966d5d421a7 Mon Sep 17 00:00:00 2001 From: arved Date: Fri, 22 Nov 2002 18:58:35 +0000 Subject: Pass QTDIR explict to qmake Reported by: bento, Michael Collette --- cad/qcad/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cad/qcad/Makefile') 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 .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 -- cgit