aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2002-11-22 18:58:35 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2002-11-22 18:58:35 +0000
commita4ef4fdd953a07040cae8ed29e2173fc105363ee (patch)
treee0560f1f8d5680aeedfbd4fead2883bcd4e3bc92 /cad
parent09af94abbb94e92a3890da9100aa8562139f4b9c (diff)
downloadports-a4ef4fdd953a07040cae8ed29e2173fc105363ee.tar.gz
ports-a4ef4fdd953a07040cae8ed29e2173fc105363ee.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/qcad/Makefile4
-rw-r--r--cad/qcad2/Makefile4
2 files changed, 6 insertions, 2 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
diff --git a/cad/qcad2/Makefile b/cad/qcad2/Makefile
index 093b575222bd..7e659410f2f8 100644
--- a/cad/qcad2/Makefile
+++ b/cad/qcad2/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