1 |
commit: 8840ef51bb6c7e9de64dc1254c0b9fc0d929376e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 12 10:54:28 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 12 10:57:37 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8840ef51 |
7 |
|
8 |
games-engines/residualvm: Added live ebuild. |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
games-engines/residualvm/residualvm-9999.ebuild | 91 +++++++++++++++++++++++++ |
13 |
1 file changed, 91 insertions(+) |
14 |
|
15 |
diff --git a/games-engines/residualvm/residualvm-9999.ebuild b/games-engines/residualvm/residualvm-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..7343afbb7e7 |
18 |
--- /dev/null |
19 |
+++ b/games-engines/residualvm/residualvm-9999.ebuild |
20 |
@@ -0,0 +1,91 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit gnome2-utils toolchain-funcs xdg-utils |
26 |
+ |
27 |
+DESCRIPTION="A cross-platform 3D game interpreter for play LucasArts' LUA-based 3D adventures" |
28 |
+HOMEPAGE="http://www.residualvm.org/" |
29 |
+if [[ "${PV}" = 9999* ]] ; then |
30 |
+ inherit git-r3 |
31 |
+ EGIT_REPO_URI="https://github.com/residualvm/residualvm.git" |
32 |
+else |
33 |
+ SRC_URI="http://www.residualvm.org/downloads/release/${PV}/${P}-sources.tar.bz2" |
34 |
+ KEYWORDS="~amd64 ~x86" |
35 |
+fi |
36 |
+LICENSE="GPL-2 LGPL-2.1" |
37 |
+SLOT="0" |
38 |
+IUSE="" |
39 |
+ |
40 |
+# TODO: fix dynamic plugin support |
41 |
+# games crash without media-libs/libsdl[alsa] |
42 |
+RDEPEND=" |
43 |
+ media-libs/alsa-lib |
44 |
+ media-libs/freetype:2 |
45 |
+ media-libs/glew:0= |
46 |
+ media-libs/libpng:0= |
47 |
+ media-libs/libsdl2[X,sound,alsa,joystick,opengl,video] |
48 |
+ sys-libs/zlib |
49 |
+ virtual/glu |
50 |
+ virtual/jpeg:0 |
51 |
+ virtual/opengl" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+ |
54 |
+src_configure() { |
55 |
+ # not an autotools script |
56 |
+ # most configure options currently do nothing, verify on version bump !!! |
57 |
+ # disable explicitly, otherwise we get unneeded linkage (some copy-paste build system) |
58 |
+ local myconf=( |
59 |
+ --backend=sdl |
60 |
+ --disable-debug |
61 |
+ --disable-faad |
62 |
+ --disable-flac |
63 |
+ --disable-fluidsynth |
64 |
+ --disable-libunity |
65 |
+ --disable-mad |
66 |
+ --disable-sparkle |
67 |
+ --disable-translation |
68 |
+ --disable-tremor |
69 |
+ --disable-vorbis |
70 |
+ --docdir="/usr/share/doc/${PF}" |
71 |
+ --enable-all-engines |
72 |
+ --enable-release-mode |
73 |
+ --enable-zlib |
74 |
+ ) |
75 |
+ ./configure "${myconf[@]}" || die "configure failed" |
76 |
+} |
77 |
+ |
78 |
+src_compile() { |
79 |
+ emake \ |
80 |
+ VERBOSE_BUILD=1 \ |
81 |
+ AR="$(tc-getAR) cru" \ |
82 |
+ RANLIB=$(tc-getRANLIB) |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ dobin residualvm |
87 |
+ |
88 |
+ insinto "/usr/share/${PN}" |
89 |
+ doins gui/themes/modern.zip dists/engine-data/residualvm-grim-patch.lab |
90 |
+ |
91 |
+ doicon -s scalable icons/${PN}.svg |
92 |
+ doicon -s 256 icons/${PN}.png |
93 |
+ domenu dists/${PN}.desktop |
94 |
+ |
95 |
+ doman dists/${PN}.6 |
96 |
+ dodoc AUTHORS README.md KNOWN_BUGS TODO |
97 |
+} |
98 |
+ |
99 |
+pkg_preinst() { |
100 |
+ gnome2_icon_savelist |
101 |
+} |
102 |
+ |
103 |
+pkg_postinst() { |
104 |
+ gnome2_icon_cache_update |
105 |
+ xdg_desktop_database_update |
106 |
+} |
107 |
+ |
108 |
+pkg_postrm() { |
109 |
+ gnome2_icon_cache_update |
110 |
+ xdg_desktop_database_update |
111 |
+} |