summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorR. Imura <imura@FreeBSD.org>2000-10-23 16:09:07 +0000
committerR. Imura <imura@FreeBSD.org>2000-10-23 16:09:07 +0000
commit9fbd04e5bf4c4fafb72c0e31d6f175f612c9a497 (patch)
treeaa925fdff2f73da8688898e9ddcdea576e07ab8d /graphics
parentRemove ruby-[qt/kde]-i18n, because kde-i18n is no longer exist. (diff)
Make it PREFIX-safe.
Submitted by: will
Notes
Notes: svn path=/head/; revision=34142
Diffstat (limited to 'graphics')
-rw-r--r--graphics/kdegraphics11/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/graphics/kdegraphics11/Makefile b/graphics/kdegraphics11/Makefile
index 4df609862a09..0be14747f720 100644
--- a/graphics/kdegraphics11/Makefile
+++ b/graphics/kdegraphics11/Makefile
@@ -20,10 +20,20 @@ LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \
USE_BZIP2= yes
USE_QT= yes
HAS_CONFIGURE= yes
-CONFIGURE_ARGS= "--prefix=$(PREFIX)"
+CONFIGURE_ARGS= "--prefix=$(PREFIX)" \
+ "--with-qt-includes=${QTDIR}/include/X11/qt" \
+ "--with-extra-includes=${LOCALBASE}/include" \
+ "--with-extra-libs=${LOCALBASE}/lib"
CONFIGURE_ENV= CXXFLAGS="$(CFLAGS)" \
- INSTALL_SCRIPT="install -c -m 555"
+ INSTALL_SCRIPT="install -c -m 555" \
+ QTDIR=${QTDIR}
CFLAGS+= "-I${PREFIX}/include"
USE_GMAKE= yes
+.if defined(PREFIX)
+QTDIR?= ${PREFIX}
+.else
+QTDIR?= ${X11BASE}
+.endif
+
.include <bsd.port.mk>