pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/stratagus games/stratagus: Fix indirect linking ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4b50bcee599
branches:  trunk
changeset: 603895:b4b50bcee599
user:      marino <marino%pkgsrc.org@localhost>
date:      Wed May 16 14:25:36 2012 +0000

description:
games/stratagus: Fix indirect linking on DragonFly

diffstat:

 games/stratagus/Makefile |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r ea2160b93ea4 -r b4b50bcee599 games/stratagus/Makefile
--- a/games/stratagus/Makefile  Wed May 16 14:03:08 2012 +0000
+++ b/games/stratagus/Makefile  Wed May 16 14:25:36 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2012/01/13 10:55:08 obache Exp $
+# $NetBSD: Makefile,v 1.23 2012/05/16 14:25:36 marino Exp $
 #
 
 DISTNAME=              stratagus-2.1-src
@@ -19,12 +19,19 @@
 USE_TOOLS+=            gmake
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
-MAKE_ENV+=             X11_LDFLAGS=${X11_LDFLAGS:M*:Q}
+MAKE_ENV+=             X11_LDFLAGS=${X_LDFLAGS:M*:Q}
 
 CONFIGURE_ARGS+=       --with-flac --with-mad
 
 INSTALLATION_DIRS=     bin
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "DragonFly"
+X_LDFLAGS=     ${X11_LDFLAGS} -lX11
+.else
+X_LDFLAGS=     ${X11_LDFLAGS}
+.endif
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/stratagus ${DESTDIR}${PREFIX}/bin
        ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/stratagus



Home | Main Index | Thread Index | Old Index