diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-06-09 19:15:58 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-06-09 19:15:58 +0000 |
commit | 172d930189ed14b99d3e888deb05fb6d18a20a94 (patch) | |
tree | 02c084595fa22279c9c80134c13462faaaa57c66 /games-emulation | |
parent | Version bump, drop old (diff) | |
download | gentoo-2-172d930189ed14b99d3e888deb05fb6d18a20a94.tar.gz gentoo-2-172d930189ed14b99d3e888deb05fb6d18a20a94.tar.bz2 gentoo-2-172d930189ed14b99d3e888deb05fb6d18a20a94.zip |
initial import wrt #254471
(Portage version: 2.2.0_alpha178/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/higan/ChangeLog | 10 | ||||
-rw-r--r-- | games-emulation/higan/Manifest | 6 | ||||
-rw-r--r-- | games-emulation/higan/files/higan-092-QA.patch | 48 | ||||
-rw-r--r-- | games-emulation/higan/files/higan-wrapper | 7 | ||||
-rw-r--r-- | games-emulation/higan/higan-092.ebuild | 153 | ||||
-rw-r--r-- | games-emulation/higan/metadata.xml | 18 |
6 files changed, 242 insertions, 0 deletions
diff --git a/games-emulation/higan/ChangeLog b/games-emulation/higan/ChangeLog new file mode 100644 index 000000000000..d863b30f8b37 --- /dev/null +++ b/games-emulation/higan/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for games-emulation/higan +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/higan/ChangeLog,v 1.1 2013/06/09 19:15:58 hasufell Exp $ + +*higan-092 (09 Jun 2013) + + 09 Jun 2013; Julian Ospald <hasufell@gentoo.org> +higan-092.ebuild, + +files/higan-092-QA.patch, +files/higan-wrapper, +metadata.xml: + initial import wrt #254471 + diff --git a/games-emulation/higan/Manifest b/games-emulation/higan/Manifest new file mode 100644 index 000000000000..f336890d783e --- /dev/null +++ b/games-emulation/higan/Manifest @@ -0,0 +1,6 @@ +AUX higan-092-QA.patch 1410 SHA256 1b5ffa48aeb81d20952cd27b07253f5c0f394eff62f6d77e7d53959be931fd87 SHA512 a7ab024c39b7f12875237f764a34db531f81241def28c638b12ca8dca3879c5a65966e9b3f5ddfe4878727d11bd784df6c533a4cae388eeed6b373a147b23a87 WHIRLPOOL a41ea2721b27749a3146a242fe83685ebb7fe0da55fed80fcf60f3cf58117c76143a9a25fcf1d6f81afb9eb6ad6e983ec4525ba439c073a76b351e558a096a37 +AUX higan-wrapper 124 SHA256 a2640df99434ad820ead4015e071681b05ddd10a44eaed9571d7a28bba4b8def SHA512 af3163d06f3bc14b14ec38cf84d11cc706eb6359727743eea35670b4f1ac120af40102ee5409695eba00ead70fcf964073c24d2f47d6824776391927ebbf3f45 WHIRLPOOL 74e4a9232668dc61c300a49fbe05d654313a5867946497e1e95c46d9d4140634d0eb74eef8969fad5ab38b0d635069698a7e635058809ed2bf8792e89401c81d +DIST higan_v092-source.tar.xz 790136 SHA256 b73a740c6a8a82fe42a3f166df16806a6fbe8c140c82d7f6089ed984d7491168 SHA512 42cf0ed599ab7cd2da3b52c39cc1402d3af7112999ad1db2c625d9fb2b94631a55526177dcfbdbd1d065c971603fc9b1488bdea0b367a266f1740f263c207dbc WHIRLPOOL a6fdd199ef77dcb1cd7b556ab8fa5e1eefd71eb1c51aae8f58ab7f19c25707ba40836741bb10f4cda6026031e43745f637ce3c39cc4288600c10c749cc13899f +EBUILD higan-092.ebuild 3586 SHA256 61a06d3ebea2a734193d8f0222e179b7ebf4dfb3785f0d2f95fa0666e553f4a5 SHA512 fc66826f7d70b2990381494e3b65fa8bb17595358f7069bd2ebec56b68c00195454546867b0cfe028fed13db9fb91466bdf46f119eedd9acb5fb03d833250e2e WHIRLPOOL f79f5a2eb5e3272839f214c4ad3e814bb3f04f3a7a907ea5a5477b858ad6858f5b84c7fb9931b7d86f72f73e7a0376424e88fc3bcfd0e720c65d365ae8dcc155 +MISC ChangeLog 314 SHA256 7394e79dc63311a6412ebd05c3b5a4b63b8d4172a38479399f444cf3b3b32acb SHA512 b66338f7f12db25b6bd10366a2f7e922e49feb2b8e970ff353c62c791aaa4d03fa274be644909c07d5289dd9f7e33d66d11bd73b6f16eef6d693cc28917883f8 WHIRLPOOL 1c4399b552f8f595c218fe74702d14461f5a3403e4b9a6e793b1c37b5b4cb530a7274c5f3528e9cd53a8587ad5efca224497e141e4513ba618741cbe467c3e73 +MISC metadata.xml 529 SHA256 d6d7670641edbb436787fe2f13480baab54821bed90ed45721abed2fb71a90eb SHA512 f3cba3fd587ef26ebc9beee9eb2d104dde3e64d2e91574368f49f7adfa2794dea062b45149d4e180219e918e572183e41634e1d77ee429d671776483516fb611 WHIRLPOOL dd36e88ac5b217d5f77c100d676c373cb39e99498734419104ca605584fbfb7dbbe7f61263c4bbea1c6c0d84d2efed2f6e24a5d940ec0cb8791ace533686c829 diff --git a/games-emulation/higan/files/higan-092-QA.patch b/games-emulation/higan/files/higan-092-QA.patch new file mode 100644 index 000000000000..448bd20a3400 --- /dev/null +++ b/games-emulation/higan/files/higan-092-QA.patch @@ -0,0 +1,48 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Jun 9 10:23:38 UTC 2013 +Subject: + +--- higan_v092-source/higan/Makefile ++++ higan_v092-source/higan/Makefile +@@ -16,8 +16,8 @@ + # compiler + c := $(compiler) -std=gnu99 + cpp := $(subst cc,++,$(compiler)) -std=gnu++0x +-flags := -I. -O3 -fomit-frame-pointer +-link := -s ++flags := -I. ++link := $(LDFLAGS) + objects := libco + + # profile-guided optimization mode +@@ -33,7 +33,6 @@ + + # platform + ifeq ($(platform),x) +- flags += -march=native + link += -Wl,-export-dynamic -ldl -lX11 -lXext + else ifeq ($(platform),win) + ifeq ($(arch),win32) +@@ -57,9 +56,9 @@ + compile = \ + $(strip \ + $(if $(filter %.c,$<), \ +- $(c) $(flags) $1 -c $< -o $@, \ ++ $(c) $(flags) $(CFLAGS) $1 -c $< -o $@, \ + $(if $(filter %.cpp,$<), \ +- $(cpp) $(flags) $1 -c $< -o $@ \ ++ $(cpp) $(flags) $(CXXFLAGS) $1 -c $< -o $@ \ + ) \ + ) \ + ) +--- higan_v092-source/higan/target-ethos/Makefile ++++ higan_v092-source/higan/target-ethos/Makefile +@@ -67,7 +67,7 @@ + # targets + build: $(objects) + ifeq ($(platform),x) +- $(strip $(cpp) -o out/$(name) $(objects) $(link)) ++ $(strip $(cpp) $(CXXFLAGS) -o out/$(name) $(objects) $(link)) + else ifeq ($(platform),win) + $(strip $(cpp) -shared -o out/phoenix.dll obj/phoenix.o $(phoenixlink)) + $(strip $(cpp) -o out/$(name) $(subst obj/phoenix.o,,$(objects)) $(link) -Lout -lphoenix) diff --git a/games-emulation/higan/files/higan-wrapper b/games-emulation/higan/files/higan-wrapper new file mode 100644 index 000000000000..e2d9257a4b65 --- /dev/null +++ b/games-emulation/higan/files/higan-wrapper @@ -0,0 +1,7 @@ +#!/bin/sh + +[ -e $HOME/.config/ ] || mkdir $HOME/.config/ + +cp -ru "%GAMES_DATADIR%/higan" $HOME/.config/ + +exec ${0}.bin "$@" diff --git a/games-emulation/higan/higan-092.ebuild b/games-emulation/higan/higan-092.ebuild new file mode 100644 index 000000000000..ca544a85ba04 --- /dev/null +++ b/games-emulation/higan/higan-092.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/higan/higan-092.ebuild,v 1.1 2013/06/09 19:15:58 hasufell Exp $ + +EAPI=5 + +inherit eutils gnome2-utils toolchain-funcs games + +MY_P=${PN}_v${PV}-source + +DESCRIPTION="A Nintendo multi-system emulator formerly known as bsnes" +HOMEPAGE="http://byuu.org/higan/ https://code.google.com/p/higan/" +SRC_URI="http://higan.googlecode.com/files/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ao +alsa openal opengl oss profile_accuracy +profile_balanced profile_performance pulseaudio qt4 +sdl xv" +REQUIRED_USE="|| ( ao openal alsa pulseaudio oss ) + || ( xv opengl sdl ) + || ( profile_accuracy profile_balanced profile_performance )" + +RDEPEND=" + x11-libs/libX11 + x11-libs/libXext + ao? ( media-libs/libao ) + openal? ( media-libs/openal ) + alsa? ( media-libs/alsa-lib ) + pulseaudio? ( media-sound/pulseaudio ) + xv? ( x11-libs/libXv ) + opengl? ( virtual/opengl ) + sdl? ( media-libs/libsdl[X,joystick,video] ) + !qt4? ( x11-libs/gtk+:2 ) + qt4? ( >=dev-qt/qtgui-4.5:4 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +disable_module() { + sed -i \ + -e "s|$1\b||" \ + "${S}"/${PN}/target-ethos/Makefile || die +} + +src_prepare() { + local i + + epatch "${FILESDIR}"/${P}-QA.patch + + sed -i \ + -e "/handle/s#/usr/local/lib#/usr/$(get_libdir)#" \ + ${PN}/nall/dl.hpp || die "fixing libdir failed!" + + # audio modules + use ao || disable_module audio.ao + use openal || disable_module audio.openal + use pulseaudio || { disable_module audio.pulseaudio + disable_module audio.pulseaudiosimple ;} + use oss || disable_module audio.oss + use alsa || disable_module audio.alsa + + # video modules + use opengl || disable_module video.glx + use xv || disable_module video.xv + use sdl || disable_module video.sdl + + # input modules + use sdl || disable_module input.sdl + + # regenerate .moc if needed + if use qt4; then + cd ${PN}/phoenix/qt || die + moc -i -I. -o platform.moc platform.moc.hpp || die + fi + + for i in profile_accuracy profile_balanced profile_performance ; do + if use ${i} ; then + cp -dRP "${S}/${PN}" "${S}/${PN}_${i}" || die + fi + done +} + +src_compile() { + local mytoolkit i + + if use qt4; then + mytoolkit="qt" + else + mytoolkit="gtk" + fi + + for i in profile_accuracy profile_balanced profile_performance ; do + if use ${i} ; then + cd "${S}/${PN}_${i}" || die + emake \ + platform="x" \ + compiler="$(tc-getCXX)" \ + profile="${i#profile_}" \ + phoenix="${mytoolkit}" + + sed \ + -e "s:%GAMES_DATADIR%:${GAMES_DATADIR}:" \ + < "${FILESDIR}"/${PN}-wrapper \ + > out/${PN}-wrapper || die "generating wrapper failed!" + fi + done +} + +src_install() { + local i + + for i in profile_accuracy profile_balanced profile_performance ; do + if use ${i} ; then + # install higan + newgamesbin "${S}/${PN}_${i}"/out/${PN} ${PN}-${i#profile_}.bin + newgamesbin "${S}/${PN}_${i}"/out/${PN}-wrapper ${PN}-${i#profile_} + make_desktop_entry "${PN}-${i#profile_}" "${PN} (${i#profile_})" + fi + done + + # copy home directory stuff to a global location + insinto "${GAMES_DATADIR}"/${PN} + doins -r ${PN}/data/cheats.bml ${PN}/profile/* + + # install shaders + if use opengl; then + insinto "${GAMES_DATADIR}/${PN}/Video Shaders" + doins shaders/*OpenGL*.shader + fi + + doicon -s 48 ${PN}/data/${PN}.png + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "optional dependencies:" + elog " dev-games/higan-ananke (extra rom load options)" + elog " games-util/higan-purify (Rom purifier)" + + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-emulation/higan/metadata.xml b/games-emulation/higan/metadata.xml new file mode 100644 index 000000000000..c9925055ecc2 --- /dev/null +++ b/games-emulation/higan/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <use> + <flag name='profile_accuracy'> + Compile a binary optimized for accuracy</flag> + <flag name='profile_balanced'> + Compile a binary with balanced optimization</flag> + <flag name='profile_performance'> + Compile a binary optimized for performance</flag> + </use> +</pkgmetadata> + |