summaryrefslogtreecommitdiff
path: root/games/glaxium
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-05-16 20:41:08 +0000
committermarino <marino@pkgsrc.org>2012-05-16 20:41:08 +0000
commit4499c5985489ac4274e5a385803287830ee1b048 (patch)
tree329fea070cdd159cbfec9887ecfddb21f378371f /games/glaxium
parenta3f72c6129f5d32590da74da55063985918b0985 (diff)
downloadpkgsrc-4499c5985489ac4274e5a385803287830ee1b048.tar.gz
games/glaxium: Fix indirect linking on DragonFly
Diffstat (limited to 'games/glaxium')
-rw-r--r--games/glaxium/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/games/glaxium/Makefile b/games/glaxium/Makefile
index b4d69448307..9a69b5029dd 100644
--- a/games/glaxium/Makefile
+++ b/games/glaxium/Makefile
@@ -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 @@ PKG_DESTDIR_SUPPORT= user-destdir
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 @@ INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX} \
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"