summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg>2009-10-07 15:38:03 +0000
committerjoerg <joerg>2009-10-07 15:38:03 +0000
commit426830fb51a2d1efd8768885f9fd1ca07dd44c85 (patch)
treeaf83b8d28a492e5f91b81fc8a6a3f4ce95a24670 /games
parent0e179df14c89ce5a07a152a8265ddc53a4c13233 (diff)
downloadpkgsrc-426830fb51a2d1efd8768885f9fd1ca07dd44c85.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: