diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2007-06-11 20:40:17 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2007-06-11 20:40:17 +0000 |
commit | 204fbd471f51f4ed03e61563dd49c758a65c71d7 (patch) | |
tree | 073e16812ddf65a8b258cd8b77dd81f6b0fa089b /games-emulation/openmsx/openmsx-0.6.2.ebuild | |
parent | Version bump, bug #180969 (diff) | |
download | gentoo-2-204fbd471f51f4ed03e61563dd49c758a65c71d7.tar.gz gentoo-2-204fbd471f51f4ed03e61563dd49c758a65c71d7.tar.bz2 gentoo-2-204fbd471f51f4ed03e61563dd49c758a65c71d7.zip |
Version bump, bug #181648
(Portage version: 2.1.2.9)
Diffstat (limited to 'games-emulation/openmsx/openmsx-0.6.2.ebuild')
-rw-r--r-- | games-emulation/openmsx/openmsx-0.6.2.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/games-emulation/openmsx/openmsx-0.6.2.ebuild b/games-emulation/openmsx/openmsx-0.6.2.ebuild new file mode 100644 index 000000000000..7d3c9e7cf12d --- /dev/null +++ b/games-emulation/openmsx/openmsx-0.6.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/openmsx/openmsx-0.6.2.ebuild,v 1.1 2007/06/11 20:40:17 nyhm Exp $ + +inherit toolchain-funcs games + +DESCRIPTION="MSX emulator that aims for perfection" +HOMEPAGE="http://openmsx.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="jack" + +DEPEND="dev-lang/tcl + dev-libs/libxml2 + media-libs/libpng + media-libs/libsdl + media-libs/glew + media-libs/sdl-image + virtual/opengl + jack? ( media-sound/jack-audio-connection-kit )" + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i '/LINK_FLAGS+=/s/-s//' build/main.mk || die "sed failed" + sed -i \ + -e "/DISABLED/s:$:$(use jack || echo JACK):" \ + -e '/SYMLINK/s:true:false:' \ + build/custom.mk \ + || die "sed custom.mk failed" +} + +src_compile() { + egamesconf || die + emake \ + CXX="$(tc-getCXX)" \ + CXXFLAGS="${CXXFLAGS}" \ + INSTALL_SHARE_DIR="${GAMES_DATADIR}"/${PN} \ + || die "emake failed" +} + +src_install() { + emake \ + INSTALL_BINARY_DIR="${D}${GAMES_BINDIR}" \ + INSTALL_SHARE_DIR="${D}${GAMES_DATADIR}"/${PN} \ + INSTALL_DOC_DIR="${D}"/usr/share/doc/${PF} \ + install || die "emake install failed" + dodoc AUTHORS ChangeLog README + prepgamesdirs +} |