summaryrefslogtreecommitdiff
path: root/games/stratagus
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-05-16 14:25:36 +0000
committermarino <marino@pkgsrc.org>2012-05-16 14:25:36 +0000
commit9f3f981b25d5c0e2f4b22452f498adee2fed15ed (patch)
treefc7d1b1504bb82440485a905d28dc6d72c2709e0 /games/stratagus
parent396d538b94a5482bd28e8222a237d5978076fa12 (diff)
downloadpkgsrc-9f3f981b25d5c0e2f4b22452f498adee2fed15ed.tar.gz
games/stratagus: Fix indirect linking on DragonFly
Diffstat (limited to 'games/stratagus')
-rw-r--r--games/stratagus/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/games/stratagus/Makefile b/games/stratagus/Makefile
index 89081d65e34..2a8edb77bb0 100644
--- a/games/stratagus/Makefile
+++ b/games/stratagus/Makefile
@@ -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 @@ WRKSRC= ${WRKDIR}/stratagus-040702
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