summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-10-28 01:02:03 +0000
committerjoerg <joerg@pkgsrc.org>2009-10-28 01:02:03 +0000
commite7a56d6802abba8117c52bbfe65090b9c5302b02 (patch)
tree29c46a5dcf57dd546bf42a222fb46f5239a381dc /graphics
parent875a303396b4c8c826d8301333dd335b88a85e28 (diff)
downloadpkgsrc-e7a56d6802abba8117c52bbfe65090b9c5302b02.tar.gz
Pass down X11 configure options for modular Xorg
Diffstat (limited to 'graphics')
-rw-r--r--graphics/agg/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/agg/Makefile b/graphics/agg/Makefile
index b8d5bafe629..d93eb12bfc6 100644
--- a/graphics/agg/Makefile
+++ b/graphics/agg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/06/12 02:14:31 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2009/10/28 01:02:03 joerg Exp $
#
DISTNAME= agg-2.5
@@ -22,6 +22,13 @@ PKGCONFIG_OVERRIDE+= libagg.pc.in
pre-configure:
cd ${WRKSRC}; chmod +x autogen.sh; ./autogen.sh
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "modular"
+CONFIGURE_ARGS+= --x-includes=${PREFIX}/include
+CONFIGURE_ARGS+= --x-libraries=${PREFIX}/lib
+.endif
+
.include "../../x11/libX11/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"