pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xgalaga When using modular Xorg, pass down --x-l...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b2e53818f25
branches:  trunk
changeset: 399888:6b2e53818f25
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Oct 07 15:38:03 2009 +0000

description:
When using modular Xorg, pass down --x-libaries, otherwise -L gets
used without argument.

diffstat:

 games/xgalaga/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 37154e496e3c -r 6b2e53818f25 games/xgalaga/Makefile
--- a/games/xgalaga/Makefile    Wed Oct 07 15:34:14 2009 +0000
+++ b/games/xgalaga/Makefile    Wed Oct 07 15:38:03 2009 +0000
@@ -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 @@
 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:



Home | Main Index | Thread Index | Old Index