summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Klopfenstein <benklop@gmail.com>2015-08-05 02:10:15 -0600
committerBen Klopfenstein <benklop@gmail.com>2015-08-05 02:10:15 -0600
commit5aa1e5fceac451ee629ab0b5a81e0847bf9d9683 (patch)
tree83466ad601abf5c89867559a1aa483c24d2434f2 /games-emulation/gens-gs/gens-gs-7-r4.ebuild
downloadbenklop-5aa1e5fceac451ee629ab0b5a81e0847bf9d9683.tar.gz
benklop-5aa1e5fceac451ee629ab0b5a81e0847bf9d9683.tar.bz2
benklop-5aa1e5fceac451ee629ab0b5a81e0847bf9d9683.zip
Initial commit
Diffstat (limited to 'games-emulation/gens-gs/gens-gs-7-r4.ebuild')
-rw-r--r--games-emulation/gens-gs/gens-gs-7-r4.ebuild66
1 files changed, 66 insertions, 0 deletions
diff --git a/games-emulation/gens-gs/gens-gs-7-r4.ebuild b/games-emulation/gens-gs/gens-gs-7-r4.ebuild
new file mode 100644
index 0000000..a5112b9
--- /dev/null
+++ b/games-emulation/gens-gs/gens-gs-7-r4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic games
+
+MY_PV="r${PV}"
+
+DESCRIPTION="A Gens fork which aims to clean up the source code and combine features from other forks"
+HOMEPAGE="http://info.sonicretro.org/Gens/GS"
+SRC_URI="http://www.soniccenter.org/gerbilsoft/gens/${MY_PV}/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="opengl"
+
+RDEPEND="opengl? (
+ virtual/opengl[abi_x86_32]
+ )
+
+ >=media-libs/libsdl-1.2[opengl?,abi_x86_32]
+ x11-libs/gtk+:2[abi_x86_32]
+
+ !games-emulation/gens
+"
+DEPEND="${RDEPEND}
+ >=dev-lang/nasm-0.98
+"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+PATCHES=(
+ "${FILESDIR}/gtk_build_fix.patch"
+ "${FILESDIR}/amd64.patch"
+ "${FILESDIR}/libtool.patch"
+)
+DOCS=( "ChangeLog.txt" )
+
+src_prepare() {
+ base_src_prepare
+
+ sed -i '1i#define OF(x) x' src/extlib/minizip/ioapi.h
+
+ append-ldflags -Wl,-z,noexecstack
+ eautoreconf
+}
+
+src_configure() {
+ use amd64 && multilib_toolchain_setup x86
+
+ egamesconf \
+ $(use_with opengl) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ || die "econf failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ einstalldocs
+
+ make_desktop_entry gens "Gens/GS" "/usr/share/games/gens/gensgs_48x48.png"
+ prepgamesdirs
+}