diff options
author | Russell Harmon <russ@eatnumber1.com> | 2010-01-01 22:10:31 -0500 |
---|---|---|
committer | Russell Harmon <russ@eatnumber1.com> | 2010-01-01 22:16:30 -0500 |
commit | 04cde377835ef0bc5ff80bec9e9b92e915e6e238 (patch) | |
tree | c10c2a1e0e645816cb1345c1596bab762c25a058 | |
parent | Add snesreader-0.010 (diff) | |
download | eatnumber1-04cde377835ef0bc5ff80bec9e9b92e915e6e238.tar.gz eatnumber1-04cde377835ef0bc5ff80bec9e9b92e915e6e238.tar.bz2 eatnumber1-04cde377835ef0bc5ff80bec9e9b92e915e6e238.zip |
Add supergameboy-0.014
-rw-r--r-- | dev-games/supergameboy/Manifest | 3 | ||||
-rw-r--r-- | dev-games/supergameboy/files/supergameboy-0.014_gentoo.patch | 36 | ||||
-rw-r--r-- | dev-games/supergameboy/supergameboy-0.014.ebuild | 34 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-games/supergameboy/Manifest b/dev-games/supergameboy/Manifest new file mode 100644 index 0000000..5d16c0d --- /dev/null +++ b/dev-games/supergameboy/Manifest @@ -0,0 +1,3 @@ +AUX supergameboy-0.014_gentoo.patch 1179 RMD160 c1bd4be69107131a71b6e51c90ad07a588c50bbe SHA1 a7757ce257a08efb64213fac4601a9dd475a555f SHA256 fe2306f34c49d40ac8ec950d9f850d3cb9fd727c34e35d2eeb025da31c3f6a73 +EBUILD supergameboy-0.014.ebuild 680 RMD160 cfab65acc462ada595ea970a92f1ef48f5e69b35 SHA1 ce1a4fbd16e0c9cf51b438ba4f7d4336a242269a SHA256 5e4e7f31921eeacaeae6c22cc84af15dbce56543b4efd65283c0a55d3923f813 +DIST supergameboy_v014.tar.bz2 122939 RMD160 1124b437251dfc99768d560f0cc2c96304680a77 SHA1 89912df078cd2478b8fc2aa43b519aa5d14c9aae SHA256 b31d5d345ce86cfa5ef47df1e0886a0aa637565de1dc50293aa2fbecf162135a diff --git a/dev-games/supergameboy/files/supergameboy-0.014_gentoo.patch b/dev-games/supergameboy/files/supergameboy-0.014_gentoo.patch new file mode 100644 index 0000000..7d33b68 --- /dev/null +++ b/dev-games/supergameboy/files/supergameboy-0.014_gentoo.patch @@ -0,0 +1,36 @@ +diff -ur a/Makefile b/Makefile +--- a/Makefile 2009-12-08 02:46:37.000000000 -0500 ++++ b/Makefile 2010-01-01 22:09:35.594592128 -0500 +@@ -1,9 +1,11 @@ + include nall/Makefile + + c := $(compiler) +-cpp := $(subst cc,++,$(compiler)) +-flags := -O3 -fomit-frame-pointer -I. -Icommon -Ilibgambatte/include -Ilibgambatte/src +-link := ++cpp ?= $(subst cc,++,$(compiler)) ++flags := $(CXXFLAGS) -I. -Icommon -Ilibgambatte/include -Ilibgambatte/src ++cflags := $(CFLAGS) -I. -Icommon -Ilibgambatte/include -Ilibgambatte/src ++link := $(LDFLAGS) ++ar ?= ar + + ifeq ($(platform),osx) + flags := -fPIC $(flags) +@@ -24,7 +26,7 @@ + compile = \ + $(strip \ + $(if $(filter %.c,$<), \ +- $(c) $(flags) $1 -c $< -o $@, \ ++ $(c) $(cflags) $1 -c $< -o $@, \ + $(if $(filter %.cpp,$<), \ + $(cpp) $(flags) $1 -c $< -o $@ \ + ) \ +@@ -105,7 +107,7 @@ + ar rcs libsupergameboy.a $(objects) + $(cpp) $(link) -o libsupergameboy.dylib -shared -dynamiclib $(objects) $(qtlib) + else +- ar rcs libsupergameboy.a $(objects) ++ $(ar) rcs libsupergameboy.a $(objects) + $(cpp) $(link) -o libsupergameboy.so -shared -Wl,-soname,libsupergameboy.so.1 $(objects) $(qtlib) + endif + diff --git a/dev-games/supergameboy/supergameboy-0.014.ebuild b/dev-games/supergameboy/supergameboy-0.014.ebuild new file mode 100644 index 0000000..817630f --- /dev/null +++ b/dev-games/supergameboy/supergameboy-0.014.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="A bsnes helper library for Super Gameboy emulation" +HOMEPAGE="http://byuu.org/bsnes/" +MY_PV="${PV/0./}" +SRC_URI="http://byuu.org/files/${PN}_v${MY_PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" +DEPEND="" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${FILESDIR}/${P}_gentoo.patch" +} + +src_compile() { + emake platform=x compiler="$(tc-getCC)" cpp="$(tc-getCXX)" ar="$(tc-getAR)" || die "emake failed" +} + +src_install() { + dolib libsupergameboy.* || die "install failed" +} |