1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils multilib gnome2-utils unpacker games
8 TIMESTAMP="${PV:0:4}-${PV:4:2}-${PV:6:2}"
10 DESCRIPTION="Legend of Grimrock: The Ultimate dungeon crawling RPG + modding engine"
11 HOMEPAGE="http://www.grimrock.net/"
12 SRC_URI="LegendOfGrimrock-Linux-${TIMESTAMP}.sh"
15 LICENSE="all-rights-reserved"
16 KEYWORDS="-* amd64 x86"
18 RESTRICT="fetch bindist splitdebug"
20 QA_PREBUILT="${GAMES_PREFIX_OPT}/${PN}/${MY_PN}.bin.*
21 ${GAMES_PREFIX_OPT}/${PN}/lib.*"
28 =media-libs/libpng-1.6*
42 media-libs/freeimage[png]
46 sys-libs/zlib[minizip]
48 DEPEND="app-arch/xz-utils"
53 einfo "Please buy & download ${SRC_URI} from:"
55 einfo "and move it to ${DISTDIR}"
60 use amd64 && myarch=x86_64 || myarch=x86
65 instarchive_linux_${myarch}
66 deps/SDL2/SDL2_files_linux_${myarch}
67 deps/FreeImage/FreeImage_files_linux_${myarch}
68 deps/libogg/libogg_files_linux_${myarch}
69 deps/minizip/minizip_files_linux_${myarch}
70 deps/openal/openal_files_linux_${myarch}
71 deps/vorbis/vorbis_files_linux_${myarch}
77 for i in $(if use bundled-libs ; then echo ${archivelist[@]} ; else echo ${archivelist[@]:0:4} ; fi) ; do
78 mv "${i}" "${i}.tar.xz" || die
79 unpack ./"${i}.tar.xz"
84 local dir=${GAMES_PREFIX_OPT}/${PN}
90 doexe "${MY_PN}.bin.${myarch}"
93 doexe $(get_libdir)/libSDL2-2.0.so.0
95 doexe $(get_libdir)/lib{freeimage.so.3,minizip.so.1,ogg.so.0,openal.so.1,vorbisfile.so.3,vorbis.so.0}
98 games_make_wrapper "${PN}" "./${MY_PN}.bin.${myarch}" "${dir}" "${dir}"/lib
99 doicon -s 256 ${PN}.png
100 newicon -s 64 ${MY_PN}.png ${PN}.png
101 make_desktop_entry "${PN}" "Legend of ${MY_PN}"
115 elog "If you are using opensource drivers you should consider installing:"
116 elog " media-libs/libtxc_dxtn"
118 gnome2_icon_cache_update
122 gnome2_icon_cache_update