summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2009-10-29 20:21:43 +0000
committerjoerg <joerg>2009-10-29 20:21:43 +0000
commit7f3d0fc909665ed5b728d6326dceefc3d4ccdcf8 (patch)
treee5dafe56889030bfbf0b7dc97f1c100e8be4194a
parent174e62538424255317707c1611203b10bd8f5a09 (diff)
downloadpkgsrc-7f3d0fc909665ed5b728d6326dceefc3d4ccdcf8.tar.gz
Pass down X11 location options for modular Xorg.
-rw-r--r--games/powermanga/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/powermanga/Makefile b/games/powermanga/Makefile
index 37e11ae17e7..0c144324170 100644
--- a/games/powermanga/Makefile
+++ b/games/powermanga/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2009/09/02 11:38:01 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2009/10/29 20:21:43 joerg Exp $
#
DISTNAME= powermanga-0.90
@@ -18,6 +18,13 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
MAKE_ENV+= TOUCH=${TOUCH:Q} WRKSRC=${WRKSRC:Q}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "modular"
+CONFIGURE_ARGS+= --x-includes=${PREFIX}/include
+CONFIGURE_ARGS+= --x-libraries=${PREFIX}/lib
+.endif
+
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
SUBST_SED.path+= -e "s,/games/powermanga,/powermanga,g"