summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"