pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/glaxium games/glaxium: Fix indirect linking on D...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a54a40fd97d
branches:  trunk
changeset: 603927:8a54a40fd97d
user:      marino <marino%pkgsrc.org@localhost>
date:      Wed May 16 20:41:08 2012 +0000

description:
games/glaxium: Fix indirect linking on DragonFly

diffstat:

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

diffs (32 lines):

diff -r ca9c70e8422f -r 8a54a40fd97d games/glaxium/Makefile
--- a/games/glaxium/Makefile    Wed May 16 19:57:56 2012 +0000
+++ b/games/glaxium/Makefile    Wed May 16 20:41:08 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2011/01/13 13:37:44 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2012/05/16 20:41:08 marino Exp $
 #
 
 DISTNAME=      glaxium_0.5
@@ -16,7 +16,7 @@
 GNU_CONFIGURE=         yes
 USE_TOOLS+=            gmake
 USE_LANGUAGES=         c c++
-CONFIGURE_ENV+=                X11_LDFLAGS=${X11_LDFLAGS:Q}
+CONFIGURE_ENV+=                X11_LDFLAGS=${X_LDFLAGS:Q}
 
 BUILD_TARGET=          glaxium
 
@@ -31,6 +31,13 @@
                        exec_prefix=${DESTDIR}${PREFIX} \
                        mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "DragonFly"
+X_LDFLAGS=     ${X11_LDFLAGS} -lm -lstdc++
+.else
+X_LDFLAGS=     ${X11_LDFLAGS}
+.endif
+
 .include "../../audio/SDL_mixer/buildlink3.mk"
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../graphics/MesaLib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index