/[gentoo-x86]/games-emulation/openmsx/openmsx-0.8.1.ebuild
Gentoo

Contents of /games-emulation/openmsx/openmsx-0.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Oct 15 11:23:39 2011 UTC (3 years, 2 months ago) by xarthisius
Branch: MAIN
Changes since 1.4: +2 -2 lines
ppc stable wrt #380179

(Portage version: 2.2.0_alpha63/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-emulation/openmsx/openmsx-0.8.1.ebuild,v 1.4 2011/09/14 16:58:32 ssuominen Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="MSX emulator that aims for perfection"
9 HOMEPAGE="http://openmsx.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ~ppc64 x86"
15 IUSE=""
16
17 DEPEND="dev-lang/tcl
18 dev-libs/libxml2
19 media-libs/libpng
20 media-libs/libsdl[audio,video]
21 media-libs/glew
22 media-libs/sdl-image[png]
23 media-libs/sdl-ttf
24 virtual/opengl"
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${P}-libpng15.patch
28
29 sed -i \
30 -e '/^LDFLAGS:=/d' \
31 -e '/LINK_FLAGS_PREFIX/d' \
32 -e '/LINK_FLAGS+=/s/-s//' \
33 -e '/LINK_FLAGS+=\$(TARGET_FLAGS)/s/$/ $(LDFLAGS)/' \
34 build/main.mk \
35 || die
36 sed -i \
37 -e '/SYMLINK/s:true:false:' \
38 build/custom.mk \
39 || die
40 sed -i -e 's/GPL.txt//' doc/node.mk || die
41 find share/extensions -type f -exec chmod -x '{}' +
42 }
43
44 src_compile() {
45 emake \
46 CXXFLAGS="${CXXFLAGS}" \
47 INSTALL_SHARE_DIR="${GAMES_DATADIR}"/${PN} \
48 || die
49 }
50
51 src_install() {
52 emake \
53 INSTALL_BINARY_DIR="${D}${GAMES_BINDIR}" \
54 INSTALL_SHARE_DIR="${D}${GAMES_DATADIR}"/${PN} \
55 INSTALL_DOC_DIR="${D}"/usr/share/doc/${PF} \
56 install || die "emake install failed"
57 dodoc README
58 prepalldocs
59 prepgamesdirs
60 }
61
62 pkg_postinst() {
63 games_pkg_postinst
64
65 elog "If you want to if you want to emulate real MSX systems and not"
66 elog "only the free C-BIOS machines, put the system ROMs in one of"
67 elog "the following directories: ${GAMES_DATADIR}/${PN}/systemroms"
68 elog "or ~/.openMSX/share/systemroms"
69 }

  ViewVC Help
Powered by ViewVC 1.1.20