From fbc2408f48a54708c5f1b7b70cc82d537d434c27 Mon Sep 17 00:00:00 2001 From: imura Date: Mon, 23 Oct 2000 16:09:07 +0000 Subject: Make it PREFIX-safe. Submitted by: will --- graphics/kdegraphics11/Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'graphics') diff --git a/graphics/kdegraphics11/Makefile b/graphics/kdegraphics11/Makefile index 4df609862a0..0be14747f72 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 -- cgit