summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-10-07 15:38:03 +0000
committerjoerg <joerg@pkgsrc.org>2009-10-07 15:38:03 +0000
commitd443a50f4ff6c0b16187341d12eed8e640a6f84f (patch)
treeaf83b8d28a492e5f91b81fc8a6a3f4ce95a24670 /games
parent181aef296a66c749dd84662ee89afaf76325fff3 (diff)
downloadpkgsrc-d443a50f4ff6c0b16187341d12eed8e640a6f84f.tar.gz
When using modular Xorg, pass down --x-libaries, otherwise -L gets
used without argument.
Diffstat (limited to 'games')
-rw-r--r--games/xgalaga/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/xgalaga/Makefile b/games/xgalaga/Makefile
index 9c5d56c566c..c263307ba69 100644
--- a/games/xgalaga/Makefile
+++ b/games/xgalaga/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2008/01/19 09:16:23 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2009/10/07 15:38:03 joerg Exp $
DISTNAME= xgalaga-2.0.34
PKGREVISION= 4
@@ -17,6 +17,13 @@ SETGIDGAME= yes
MAKE_ENV+= GAMEOWN=${GAMEOWN:Q} GAMEGRP=${GAMEGRP:Q} \
GAMEMODE=${GAMEMODE:Q} GAMEDATAMODE=${GAMEDATAMODE:Q}
+.include "../../mk/bsd.prefs.mk"
+
+.if ${X11_TYPE} == "modular"
+CONFIGURE_ARGS+= --x-includes=${PREFIX}/include
+CONFIGURE_ARGS+= --x-libraries=${PREFIX}/lib
+.endif
+
INSTALLATION_DIRS= libexec
post-install: