forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
virtualjaguar-2.1.2-r1.ebuild
77 lines (63 loc) · 1.52 KB
/
virtualjaguar-2.1.2-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils versionator qt4-r2 gnome2-utils toolchain-funcs games
DESCRIPTION="an Atari Jaguar emulator"
HOMEPAGE="http://www.icculus.org/virtualjaguar/"
SRC_URI="http://www.icculus.org/virtualjaguar/tarballs/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
RDEPEND="media-libs/libsdl[joystick,opengl,sound,video]
sys-libs/zlib
virtual/opengl
dev-qt/qtcore:4
dev-qt/qtgui:4
dev-qt/qtopengl:4[-egl]
dev-libs/libcdio"
DEPEND="${RDEPEND}
>=sys-devel/gcc-4.4"
S=${WORKDIR}/${PN}
pkg_pretend() {
local ver=4.4
if ! version_is_at_least ${ver} $(gcc-version); then
die "${PN} needs at least gcc ${ver} selected to compile."
fi
}
src_prepare() {
sed -i \
-e '/^Categories/s/$/;/' \
virtualjaguar.desktop || die
}
src_configure() {
eqmake4 virtualjaguar.pro -o makefile-qt
}
src_compile() {
emake -j1 libs
emake
}
src_install() {
dogamesbin ${PN}
dodoc README docs/{TODO,WHATSNEW}
doman docs/virtualjaguar.1
domenu virtualjaguar.desktop
newicon -s 128 res/vj-icon.png ${PN}.png
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
elog "The ${PN} ROM path is no-longer hardcoded, "
elog "set it from within, the ${PN} GUI."
elog
elog "The ROM extension supported by ${PN} is .j64, "
elog ".jag files will be interpreted as Jaguar Server executables."
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}