blob: 8b39565b4be21cdcf86b00929ed45e89e1cf48ba (
plain)
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit desktop readme.gentoo-r1
DESCRIPTION="MSX emulator that aims for perfection"
HOMEPAGE="http://openmsx.org/"
SRC_URI="https://github.com/openMSX/openMSX/releases/download/RELEASE_0_14_0/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE=""
RDEPEND="
dev-lang/tcl:0=
dev-libs/libxml2
media-libs/libpng:0=
media-libs/libsdl[sound,video]
>=media-libs/glew-1.3.2:0=
media-libs/sdl-image[png]
media-libs/sdl-ttf
virtual/opengl
"
DEPEND="${RDEPEND}"
DOC_CONTENTS="
If you want to if you want to emulate real MSX systems and not
only the free C-BIOS machines, put the system ROMs in one of
the following directories: /usr/share/${PN}/systemroms
or ~/.openMSX/share/systemroms
"
src_prepare() {
default
sed -i \
-e '/^LDFLAGS:=/d' \
-e '/LINK_FLAGS_PREFIX/d' \
-e '/LINK_FLAGS+=/s/-s//' \
-e '/LINK_FLAGS+=\$(TARGET_FLAGS)/s/$/ $(LDFLAGS)/' \
build/main.mk \
|| die
sed -i -e '/SYMLINK/s:true:false:' build/custom.mk || die
sed -i -e 's/GPL.txt//' doc/node.mk || die
}
src_compile() {
emake \
CXXFLAGS="${CXXFLAGS}" \
INSTALL_SHARE_DIR=/usr/share/${PN} \
V=1
}
src_install() {
emake \
V=1 \
INSTALL_BINARY_DIR="${ED}/usr/bin" \
INSTALL_SHARE_DIR="${ED}/usr/share/${PN}" \
INSTALL_DOC_DIR="${D}"/usr/share/doc/${PF} \
install
einstalldocs
readme.gentoo_create_doc
for i in 16 32 48 64 128 256 ; do
newicon -s "${i}" "share/icons/openMSX-logo-${i}.png" "${PN}.png"
done
make_desktop_entry "${PN}" "openMSX"
}
pkg_postinst() {
readme.gentoo_print_elog
}
|