aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2016-11-19 04:00:44 +0800
committerpawel <pawel@FreeBSD.org>2016-11-19 04:00:44 +0800
commit736b21b0252a9bf8143639505fbf26bf851eb6a5 (patch)
tree808f783bfd35996a50d4ed76bd1063b7aaa288e1 /games
parent7f722bb87966e6d7b469541a31f483707c406e84 (diff)
downloadfreebsd-ports-graphics-736b21b0252a9bf8143639505fbf26bf851eb6a5.tar.gz
freebsd-ports-graphics-736b21b0252a9bf8143639505fbf26bf851eb6a5.tar.zst
freebsd-ports-graphics-736b21b0252a9bf8143639505fbf26bf851eb6a5.zip
- Add missing dri dependency
- Convert sdl_ttf to RUN_DEPENDS hack, USE_LINUX=sdlttf seems to be gone - Use brandelf(1) on installed libraries also, game runs on 12-current but on FreeBSD 10.3 execution fails with: ./libs/Dwarf_Fortress: error while loading shared libraries: /usr/local/libexec/dwarffortress/libgraphics.so: ELF file OS ABI invalid
Diffstat (limited to 'games')
-rw-r--r--games/linux-dwarffortress/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/games/linux-dwarffortress/Makefile b/games/linux-dwarffortress/Makefile
index 9e6b66d7380..63ffa134d1e 100644
--- a/games/linux-dwarffortress/Makefile
+++ b/games/linux-dwarffortress/Makefile
@@ -3,6 +3,7 @@
PORTNAME= dwarffortress
DISTVERSION= 0.43.05
+PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= http://www.bay12games.com/dwarves/
PKGNAMEPREFIX= linux-
@@ -26,8 +27,10 @@ LICENSE_TEXT= Copyright (c) 2002-2016. All rights are retained by Tarn Adams, \
contact Tarn Adams at toadyone@bay12games.com.
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
+RUN_DEPENDS= linux-${linux_ARGS}-sdl_ttf>0:graphics/linux-${linux_ARGS}-sdl_ttf
+
USES= linux tar:bzip2
-USE_LINUX= gtk2 libsndfile openal-soft sdlimage sdlttf xorglibs
+USE_LINUX= dri gtk2 libsndfile openal-soft sdlimage xorglibs
SUB_FILES= dwarffortress
NO_BUILD= yes
@@ -48,8 +51,11 @@ do-install:
${BRANDELF} -t Linux ${WRKSRC}/libs/Dwarf_Fortress
${INSTALL_PROGRAM} ${WRKSRC}/libs/Dwarf_Fortress \
${STAGEDIR}${PREFIX}/libexec/dwarffortress
- (cd ${WRKSRC}/libs && ${INSTALL_LIB} libgcc_s.so.1 libgraphics.so \
- libstdc++.so.6 ${STAGEDIR}${PREFIX}/libexec/dwarffortress)
+.for lib in libgcc_s.so.1 libgraphics.so libstdc++.so.6
+ ${BRANDELF} -t Linux ${WRKSRC}/libs/${lib}
+ ${INSTALL_LIB} ${WRKSRC}/libs/${lib} \
+ ${STAGEDIR}${PREFIX}/libexec/dwarffortress
+.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}/data
(cd ${WRKSRC} && ${COPYTREE_SHARE} raw ${STAGEDIR}${DATADIR})
(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "announcement art dipscript \