diff options
-rw-r--r-- | dev-games/snesreader/Manifest | 3 | ||||
-rw-r--r-- | dev-games/snesreader/files/snesreader-0.010_gentoo.patch | 36 | ||||
-rw-r--r-- | dev-games/snesreader/snesreader-0.010.ebuild | 34 |
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-games/snesreader/Manifest b/dev-games/snesreader/Manifest new file mode 100644 index 0000000..655f05c --- /dev/null +++ b/dev-games/snesreader/Manifest @@ -0,0 +1,3 @@ +AUX snesreader-0.010_gentoo.patch 1035 RMD160 8233f50456cfc57461e31606f801d9c7fea47c1e SHA1 3ce22d7baba940715ad06cf57689ba75da54cd93 SHA256 68280796e007039d118782fe824e643bbb261b7a5e1443c155ff3befe4a5e5bc +EBUILD snesreader-0.010.ebuild 723 RMD160 2d0f60501087e8c789f266f2c721fd0a0ed7dcb9 SHA1 a62be18ebf48c28c0dac28e2696bda4a9293031e SHA256 049812f5431523ff10548efb8822a43f0614c5378ca0fe285bb478d220dc759d +DIST snesreader_v010.tar.bz2 208397 RMD160 d85f74c3cc7beda60ad9d8aa1f90d3dd9f978273 SHA1 df500e6015ca357c1bec25025cc25cc02f2a888f SHA256 7aa31584487e00e376b49df069694f4f542260c94bf0f4179806c50ab1a8bb11 diff --git a/dev-games/snesreader/files/snesreader-0.010_gentoo.patch b/dev-games/snesreader/files/snesreader-0.010_gentoo.patch new file mode 100644 index 0000000..43b846e --- /dev/null +++ b/dev-games/snesreader/files/snesreader-0.010_gentoo.patch @@ -0,0 +1,36 @@ +diff -ur a/Makefile b/Makefile +--- a/Makefile 2009-12-08 02:46:17.000000000 -0500 ++++ b/Makefile 2010-01-01 21:58:00.934621740 -0500 +@@ -2,9 +2,11 @@ + include nall/Makefile-qt + + c := $(compiler) +-cpp := $(subst cc,++,$(compiler)) +-flags := -O3 -I. -fomit-frame-pointer +-link := ++cpp ?= $(subst cc,++,$(compiler)) ++flags := $(CXXFLAGS) -fPIC -I. ++cflags := $(CFLAGS) -fPIC -I. ++link := $(LDFLAGS) ++ar ?= ar + + ifeq ($(platform),osx) + flags := -fPIC $(flags) +@@ -31,7 +33,7 @@ + compile = \ + $(strip \ + $(if $(filter %.c,$<), \ +- $(c) $(flags) $1 -c $< -o $@, \ ++ $(c) $(cflags) $1 -c $< -o $@, \ + $(if $(filter %.cpp,$<), \ + $(cpp) $(flags) $1 -c $< -o $@ \ + ) \ +@@ -156,7 +158,7 @@ + ar rcs libsnesreader.a $(objects) + $(cpp) $(link) -o libsnesreader.dylib -shared -dynamiclib $(objects) $(qtlib) + else +- ar rcs libsnesreader.a $(objects) ++ $(ar) rcs libsnesreader.a $(objects) + $(cpp) $(link) -o libsnesreader.so -shared -Wl,-soname,libsnesreader.so.1 $(objects) $(qtlib) + endif + diff --git a/dev-games/snesreader/snesreader-0.010.ebuild b/dev-games/snesreader/snesreader-0.010.ebuild new file mode 100644 index 0000000..1c6f815 --- /dev/null +++ b/dev-games/snesreader/snesreader-0.010.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 needed for extra rom load options" +HOMEPAGE="http://byuu.org/bsnes/" +MY_PV="${PV/0./}" +SRC_URI="http://byuu.org/files/${PN}_v${MY_PV}.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=x11-libs/qt-gui-4.4" +DEPEND="${RDEPEND}" + +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 libsnesreader.* || die "install failed" +} |