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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Oct 19 22:03:53 2012 UTC (20 months, 2 weeks ago) by mr_bones_
Branch: MAIN
version bump

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.5 2011/10/15 11:23:39 xarthisius 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:0
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 sed -i \
28 -e '/^LDFLAGS:=/d' \
29 -e '/LINK_FLAGS_PREFIX/d' \
30 -e '/LINK_FLAGS+=/s/-s//' \
31 -e '/LINK_FLAGS+=\$(TARGET_FLAGS)/s/$/ $(LDFLAGS)/' \
32 build/main.mk \
33 || die
34 sed -i -e '/SYMLINK/s:true:false:' build/custom.mk || die
35 sed -i -e 's/GPL.txt//' doc/node.mk || die
36 }
37
38 src_compile() {
39 emake \
40 CXXFLAGS="${CXXFLAGS}" \
41 INSTALL_SHARE_DIR="${GAMES_DATADIR}"/${PN} \
42 || die
43 }
44
45 src_install() {
46 emake \
47 INSTALL_BINARY_DIR="${D}${GAMES_BINDIR}" \
48 INSTALL_SHARE_DIR="${D}${GAMES_DATADIR}"/${PN} \
49 INSTALL_DOC_DIR="${D}"/usr/share/doc/${PF} \
50 install || die "emake install failed"
51 dodoc README
52 prepalldocs
53 prepgamesdirs
54 }
55
56 pkg_postinst() {
57 games_pkg_postinst
58
59 elog "If you want to if you want to emulate real MSX systems and not"
60 elog "only the free C-BIOS machines, put the system ROMs in one of"
61 elog "the following directories: ${GAMES_DATADIR}/${PN}/systemroms"
62 elog "or ~/.openMSX/share/systemroms"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20