diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-01-24 07:49:21 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-01-24 07:49:21 +0000 |
commit | 3ef5945bcd9ce9e00dfedf04685a8a3d8710c86e (patch) | |
tree | 4ae7396c33358041bfbc5d349ebd9eba0c9f3a4a /games-emulation | |
parent | Add missing digests for bzr-2.0.4. (diff) | |
download | gentoo-2-3ef5945bcd9ce9e00dfedf04685a8a3d8710c86e.tar.gz gentoo-2-3ef5945bcd9ce9e00dfedf04685a8a3d8710c86e.tar.bz2 gentoo-2-3ef5945bcd9ce9e00dfedf04685a8a3d8710c86e.zip |
Initial commit - files submitted by Michał Ziąbkowski and Jared via bug #254479
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/nestopia/ChangeLog | 12 | ||||
-rw-r--r-- | games-emulation/nestopia/files/nestopia | 10 | ||||
-rw-r--r-- | games-emulation/nestopia/files/nestopia-1.40-makefile.patch | 69 | ||||
-rw-r--r-- | games-emulation/nestopia/metadata.xml | 5 | ||||
-rw-r--r-- | games-emulation/nestopia/nestopia-1.40.ebuild | 51 |
5 files changed, 147 insertions, 0 deletions
diff --git a/games-emulation/nestopia/ChangeLog b/games-emulation/nestopia/ChangeLog new file mode 100644 index 000000000000..f58f5995b46a --- /dev/null +++ b/games-emulation/nestopia/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for games-emulation/nestopia +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/nestopia/ChangeLog,v 1.1 2010/01/24 07:49:21 mr_bones_ Exp $ + +*nestopia-1.40 (24 Jan 2010) + + 24 Jan 2010; Michael Sterrett <mr_bones_@gentoo.org> + +nestopia-1.40.ebuild, +files/nestopia-1.40-makefile.patch, + +files/nestopia, +metadata.xml: + Initial commit - files submitted by Michał Ziąbkowski and Jared via bug + #254479 + diff --git a/games-emulation/nestopia/files/nestopia b/games-emulation/nestopia/files/nestopia new file mode 100644 index 000000000000..e2a6b03e5948 --- /dev/null +++ b/games-emulation/nestopia/files/nestopia @@ -0,0 +1,10 @@ +#!/bin/sh + +# create dir and copy files, if needed +[ ! -d ~/.nestopia ] && mkdir ~/.nestopia +[ ! -f ~/.nestopia/nstcontrols ] && cp "%GAMES_DATADIR%/nestopia/nstcontrols" ~/.nestopia/ +[ ! -f ~/.nestopia/NstDatabase.xml ] && cp "%GAMES_DATADIR%/nestopia/NstDatabase".xml ~/.nestopia/ + +# wrap around the emu +exec nestopia.bin "$@" + diff --git a/games-emulation/nestopia/files/nestopia-1.40-makefile.patch b/games-emulation/nestopia/files/nestopia-1.40-makefile.patch new file mode 100644 index 000000000000..aba885d51e19 --- /dev/null +++ b/games-emulation/nestopia/files/nestopia-1.40-makefile.patch @@ -0,0 +1,69 @@ +--- Makefile.orig 2010-01-24 02:21:57.196476493 -0500 ++++ Makefile 2010-01-24 02:27:52.134475800 -0500 +@@ -3,19 +3,20 @@ + # By R. Belmont + # + +-CC = gcc +-CPP = g++ +-CFLAGS = -c -O3 -g3 +-CFLAGS += -DNST_PRAGMA_ONCE_SUPPORT -D_SZ_ONE_DIRECTORY +-CFLAGS += -Isource -Isource/core -Isource/zlib -Isource/core/api -Isource/core/board -Isource/core/input -Isource/linux/unzip +-CFLAGS += -Isource/core/vssystem -Isource/linux -Isource/nes_ntsc -I.. -I../nes_ntsc -Isource/linux/7zip +-CFLAGS += `sdl-config --cflags` `pkg-config --cflags gtk+-2.0` +-CFLAGS += -finline-limit=2000 --param inline-unit-growth=1000 --param large-function-growth=1000 -finline-functions-called-once ++FLAGS = -c \ ++ -DNST_PRAGMA_ONCE_SUPPORT -D_SZ_ONE_DIRECTORY \ ++ -Isource -Isource/core -Isource/zlib -Isource/core/api -Isource/core/board -Isource/core/input -Isource/linux/unzip \ ++ -Isource/core/vssystem -Isource/linux -Isource/nes_ntsc -I.. -I../nes_ntsc -Isource/linux/7zip \ ++ `sdl-config --cflags` `pkg-config --cflags gtk+-2.0` \ ++ -finline-limit=2000 --param inline-unit-growth=1000 --param large-function-growth=1000 -finline-functions-called-once ++ ++CFLAGS += $(FLAGS) ++CXXFLAGS += $(FLAGS) + + # enable this for input debugging + #CFLAGS += -DDEBUG_INPUT + +-CPPFLAGS = -Wno-deprecated -fno-rtti ++CXXFLAGS += -Wno-deprecated -fno-rtti + + EXE = nst + LIBS = -lm -lz -lasound `sdl-config --libs` `pkg-config --libs gtk+-2.0` +@@ -144,6 +145,8 @@ + OBJDIRS = objs objs/core objs/core/api objs/core/board objs/core/input objs/core/vssystem objs/nes_ntsc + OBJDIRS += objs/linux objs/linux/7zip objs/linux/unzip + ++$(shell mkdir $(sort $(OBJDIRS))) ++ + # build rules + objs/%.o: source/%.c + @echo Compiling $<... +@@ -151,24 +154,19 @@ + + objs/%.o: source/%.cpp + @echo Compiling $<... +- @$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@ ++ @$(CC) $(CXXFLAGS) $< -o $@ + + objs/%.o: source/%.o + @echo Compiling $<... + @$.o) $(CFLAGS) $.oFLAGS) $< -o $@ + +-all: maketree $(EXE) $(GENNSTCONTROLS) +- +-maketree: $(sort $(OBJDIRS)) ++all: $(EXE) $(GENNSTCONTROLS) + +-$(sort $(OBJDIRS)): +- @echo Creating output directory $@ +- @mkdir $@ + + # link the commandline exe + $(EXE): $(OBJS) + @echo Linking $@... +- @$(CPP) -g -o $(EXE) $^ $(LIBS) ++ @$(CXX) -g -o $(EXE) $^ $(LIBS) + + clean: + -@rm -f $(OBJS) $(EXE) $(GENNSTCONTROLS) diff --git a/games-emulation/nestopia/metadata.xml b/games-emulation/nestopia/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-emulation/nestopia/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-emulation/nestopia/nestopia-1.40.ebuild b/games-emulation/nestopia/nestopia-1.40.ebuild new file mode 100644 index 000000000000..ae73b8a95bab --- /dev/null +++ b/games-emulation/nestopia/nestopia-1.40.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/nestopia/nestopia-1.40.ebuild,v 1.1 2010/01/24 07:49:21 mr_bones_ Exp $ + +EAPI=2 +inherit eutils games + +MY_PV="${PV//./}" +LNX_P="nst${MY_PV}_lnx_release_h" +DESCRIPTION="NEStopia is a portable Nintendo Entertainment System emulator written in C++" +HOMEPAGE="http://rbelmont.mameworld.info/?page_id=200" +SRC_URI="mirror://sourceforge/${PN}/Nestopia${MY_PV}src.zip + http://rbelmont.mameworld.info/${LNX_P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=x11-libs/gtk+-2.4:2 + media-libs/alsa-lib + >=media-libs/libsdl-1.2.12[audio,joystick,video] + sys-libs/zlib + virtual/opengl + virtual/glu" + +S=${WORKDIR} + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + sed \ + -e "s:%GAMES_DATADIR%:${GAMES_DATADIR}:g" \ + "${FILESDIR}"/${PN} \ + > ${PN} \ + || die "sed failed" +} + +src_install() { + newgamesbin nst ${PN}.bin || die "dobin failed" + dogamesbin ${PN} || die "dobin failed" + + insinto "${GAMES_DATADIR}/${PN}" + doins NstDatabase.xml nstcontrols || die "doins failed" + + make_desktop_entry "${PN}" "Nestopia" + + dodoc README.Linux changelog.txt + dohtml -r readme.html doc/*.html doc/details + + prepgamesdirs +} |