mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-engines/residualvm: Added live ebuild.
Package-Manager: Portage-2.3.49, Repoman-2.3.10
This commit is contained in:
91
games-engines/residualvm/residualvm-9999.ebuild
Normal file
91
games-engines/residualvm/residualvm-9999.ebuild
Normal file
@@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnome2-utils toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="A cross-platform 3D game interpreter for play LucasArts' LUA-based 3D adventures"
|
||||
HOMEPAGE="http://www.residualvm.org/"
|
||||
if [[ "${PV}" = 9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/residualvm/residualvm.git"
|
||||
else
|
||||
SRC_URI="http://www.residualvm.org/downloads/release/${PV}/${P}-sources.tar.bz2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
LICENSE="GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
# TODO: fix dynamic plugin support
|
||||
# games crash without media-libs/libsdl[alsa]
|
||||
RDEPEND="
|
||||
media-libs/alsa-lib
|
||||
media-libs/freetype:2
|
||||
media-libs/glew:0=
|
||||
media-libs/libpng:0=
|
||||
media-libs/libsdl2[X,sound,alsa,joystick,opengl,video]
|
||||
sys-libs/zlib
|
||||
virtual/glu
|
||||
virtual/jpeg:0
|
||||
virtual/opengl"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
# not an autotools script
|
||||
# most configure options currently do nothing, verify on version bump !!!
|
||||
# disable explicitly, otherwise we get unneeded linkage (some copy-paste build system)
|
||||
local myconf=(
|
||||
--backend=sdl
|
||||
--disable-debug
|
||||
--disable-faad
|
||||
--disable-flac
|
||||
--disable-fluidsynth
|
||||
--disable-libunity
|
||||
--disable-mad
|
||||
--disable-sparkle
|
||||
--disable-translation
|
||||
--disable-tremor
|
||||
--disable-vorbis
|
||||
--docdir="/usr/share/doc/${PF}"
|
||||
--enable-all-engines
|
||||
--enable-release-mode
|
||||
--enable-zlib
|
||||
)
|
||||
./configure "${myconf[@]}" || die "configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
VERBOSE_BUILD=1 \
|
||||
AR="$(tc-getAR) cru" \
|
||||
RANLIB=$(tc-getRANLIB)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin residualvm
|
||||
|
||||
insinto "/usr/share/${PN}"
|
||||
doins gui/themes/modern.zip dists/engine-data/residualvm-grim-patch.lab
|
||||
|
||||
doicon -s scalable icons/${PN}.svg
|
||||
doicon -s 256 icons/${PN}.png
|
||||
domenu dists/${PN}.desktop
|
||||
|
||||
doman dists/${PN}.6
|
||||
dodoc AUTHORS README.md KNOWN_BUGS TODO
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
Reference in New Issue
Block a user