initial commit
This commit is contained in:
3
games-emulation/mednafen/Manifest
Normal file
3
games-emulation/mednafen/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX mednafen-ipv6.patch 1899 RMD160 e0b11b9ed892d092812db63414151f2e52960e58 SHA1 da86bfd379ef699492fc24ab69d8f50ada7d5178 SHA256 8676e1855c29382bcd3f9000c93224bbca56cda2ebb4834b2f97220288b1fe4d
|
||||
DIST mednafen-0.9.17-wip.tar.bz2 3408990 RMD160 c681de86a12d44a4d59a837078b1d14441a46ba0 SHA1 4a002a08ab99fd9526f1fd4490cd3f3cfd7108cf SHA256 391961caa4fba0aa45f73c00bb7b29b636a4ac5394bce2fdcc41d1c5765f3ab8
|
||||
EBUILD mednafen-0.9.17-r9999.ebuild 1777 RMD160 349449594d5ee646be55a7673bef0d53b4e19947 SHA1 efed22101692f8a4868385368ead849564aba47d SHA256 60903af1472c7a78da1b14ed8e9ed1b92f40f79111d043b2be404ccf0795dc4b
|
55
games-emulation/mednafen/files/mednafen-ipv6.patch
Normal file
55
games-emulation/mednafen/files/mednafen-ipv6.patch
Normal file
@ -0,0 +1,55 @@
|
||||
--- configure.ac.orig 2011-07-03 01:21:46.937790000 +0400
|
||||
+++ configure.ac 2011-07-03 01:24:57.947895000 +0400
|
||||
@@ -414,5 +414,27 @@
|
||||
CFLAGS="$LIBCDIO_CFLAGS $SNDFILE_CFLAGS $CFLAGS"
|
||||
CPPFLAGS="$LIBCDIO_CFLAGS $SNDFILE_CFLAGS $CPPFLAGS"
|
||||
|
||||
+dnl ipv6 check
|
||||
+AC_ARG_ENABLE(ipv6,
|
||||
+[ --enable-ipv6 Use ipv6, if available. [default=yes]],enable_ipv6=$enableval,enable_ipv6=yes)
|
||||
+
|
||||
+AC_MSG_CHECKING(whether to enable ipv6)
|
||||
+
|
||||
+if test "x$enable_ipv6" = "xyes" ; then
|
||||
+ AC_TRY_COMPILE([#define INET6
|
||||
+#include <sys/types.h>
|
||||
+#include <netinet/in.h>],
|
||||
+ [int x = IPPROTO_IPV6; struct in6_addr a;],
|
||||
+ [ts_cv_ipv6="yes"], [ts_cv_ipv6="no"])
|
||||
+else
|
||||
+ ts_cv_ipv6="no"
|
||||
+fi
|
||||
+
|
||||
+AC_MSG_RESULT($ts_cv_ipv6)
|
||||
+
|
||||
+if test "x$ts_cv_ipv6" = "xyes"; then
|
||||
+ AC_DEFINE([USE_IPV6], [], [Enable ipv6 support])
|
||||
+fi
|
||||
+
|
||||
dnl Output Makefiles
|
||||
AC_OUTPUT([Makefile src/Makefile src/tremor/Makefile src/mpcdec/Makefile src/trio/Makefile src/gb/Makefile src/gba/Makefile src/lynx/Makefile src/pce/Makefile src/pcfx/Makefile src/sms/Makefile src/wswan/Makefile src/nes/Makefile src/ngp/Makefile po/Makefile.in intl/Makefile])
|
||||
|
||||
--- src/drivers/netplay.cpp.orig 2010-12-19 01:24:01.000000000 +0300
|
||||
+++ src/drivers/netplay.cpp 2011-07-03 02:14:07.513970385 +0400
|
||||
@@ -244,13 +244,21 @@
|
||||
unsigned int remote_port = MDFN_GetSettingUI("netplay.port");
|
||||
std::string game_key = MDFN_GetSettingS("netplay.gamekey");
|
||||
|
||||
+#ifdef USE_IPV6
|
||||
+ if(SDLNet_ResolveHost(SDLNET_ANY, &IPa, remote_host.c_str(), remote_port) == -1)
|
||||
+#else
|
||||
if(SDLNet_ResolveHost(&IPa, remote_host.c_str(), remote_port) == -1)
|
||||
+#endif
|
||||
{
|
||||
PrintNetError(_("*** Error resolving host \"%s\"!"), remote_host.c_str());
|
||||
return(0);
|
||||
}
|
||||
|
||||
+#ifdef USE_IPV6
|
||||
+ Socket = SDLNet_TCP_Connect(&IPa);
|
||||
+#else
|
||||
Socket = SDLNet_TCP_Open(&IPa);
|
||||
+#endif
|
||||
if(!Socket)
|
||||
{
|
||||
PrintNetError(_("*** Error connecting to remote host \"%s\" on port %u!"), remote_host.c_str(), remote_port);
|
67
games-emulation/mednafen/mednafen-0.9.17-r9999.ebuild
Normal file
67
games-emulation/mednafen/mednafen-0.9.17-r9999.ebuild
Normal file
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-emulation/mednafen/mednafen-0.8.13.3.ebuild,v 1.5 2011/01/15 15:54:40 maekke Exp $
|
||||
|
||||
EAPI=2
|
||||
inherit autotools eutils games
|
||||
|
||||
DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, NGPC and Lynx emulator"
|
||||
HOMEPAGE="http://mednafen.sourceforge.net/"
|
||||
SRC_URI="http://home.pinkbyte.ru/emulators/${P}-wip.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="alsa altivec cjk debug jack nls"
|
||||
|
||||
RDEPEND="virtual/opengl
|
||||
media-libs/libsndfile
|
||||
dev-libs/libcdio
|
||||
media-libs/libsdl[audio,joystick,video]
|
||||
media-libs/sdl-net
|
||||
sys-libs/zlib
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e 's:$(datadir)/locale:/usr/share/locale:' \
|
||||
-e 's:$(localedir):/usr/share/locale:' \
|
||||
$(find . -name 'Makefile.*') \
|
||||
|| die 'sed failed'
|
||||
sed -i \
|
||||
-e '/-fomit-frame-pointer/d' \
|
||||
-e '/-ffast-math/d' \
|
||||
-e '/CPPFLAGS=.*CFLAGS/s/CFLAGS/CXXFLAGS/' \
|
||||
-e '/^AX_CFLAGS_GCC_OPTION.*OPTIMIZER_FLAGS/d' \
|
||||
configure.ac \
|
||||
|| die "sed failed"
|
||||
# Pinkbyte: add ipv6 patch (DEPRECATED)
|
||||
# use ipv6 && epatch "${FILESDIR}/${PN}-ipv6.patch"
|
||||
#
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egamesconf \
|
||||
--disable-dependency-tracking \
|
||||
$(use_enable alsa) \
|
||||
$(use_enable altivec) \
|
||||
$(use_enable cjk cjk-fonts) \
|
||||
$(use_enable debug debugger) \
|
||||
$(use_enable jack) \
|
||||
$(use_enable nls)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc Documentation/cheats.txt AUTHORS ChangeLog TODO
|
||||
dohtml Documentation/*
|
||||
prepgamesdirs
|
||||
}
|
3
games-emulation/pcsx-r/Manifest
Normal file
3
games-emulation/pcsx-r/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
AUX pcsx-r-datadir.patch 1088 RMD160 a21d8ba66e3d316c84511d8c09b6922643013869 SHA1 4f179f9ba29bb8a69d59b803590ae10fcf6d1c20 SHA256 b33931c20630ef7731ff4d0265525ba6fb3fd0597d08a44362fc30f04acc91bb
|
||||
DIST pcsxr-1.9.92.tar.bz2 1471890 RMD160 18026e1efc348aecf67f271ad97ea70da4bccfc0 SHA1 d0f336f49cdc2edbec23e75a01d10c8d5406ed58 SHA256 fb96dbf17ea2d5215b58338534351143e8ef7316c25504991ba76309fc931611
|
||||
EBUILD pcsx-r-1.9.92.ebuild 1480 RMD160 7f808bb316706b70eb3d60f0a82ab3fb18a1afc6 SHA1 bb0207c6c6027b18c41ec71c07b038bb5c798cbc SHA256 87d573bcbfb67d3aed7ca5a62837826dec91b23790d8f0e4e8dd97f87d2e8941
|
37
games-emulation/pcsx-r/files/pcsx-r-datadir.patch
Normal file
37
games-emulation/pcsx-r/files/pcsx-r-datadir.patch
Normal file
@ -0,0 +1,37 @@
|
||||
diff --git a/data/Makefile.am b/data/Makefile.am
|
||||
index 9930320..a507993 100644
|
||||
--- a/data/Makefile.am
|
||||
+++ b/data/Makefile.am
|
||||
@@ -1,7 +1,7 @@
|
||||
glade_DATA = pcsx.glade2
|
||||
gladedir = $(datadir)/pcsx
|
||||
|
||||
-desktopdir = $(datadir)/applications
|
||||
+desktopdir = /usr/share/applications
|
||||
desktop_DATA = pcsx.desktop
|
||||
|
||||
EXTRA_DIST = $(glade_DATA) pcsx.desktop
|
||||
diff --git a/gui/Makefile.am b/gui/Makefile.am
|
||||
index eacfd67..a1e1002 100644
|
||||
--- a/gui/Makefile.am
|
||||
+++ b/gui/Makefile.am
|
||||
@@ -1,5 +1,5 @@
|
||||
INCLUDES = -DPACKAGE_DATA_DIR=\"${datadir}/pcsx/\" \
|
||||
- -DPIXMAPDIR=\"${datadir}/pixmaps/\" \
|
||||
+ -DPIXMAPDIR=\"/usr/share/pixmaps/\" \
|
||||
-DLOCALE_DIR=\"${datadir}/locale/\" \
|
||||
$(GTK2_CFLAGS) $(GLADE2_CFLAGS) \
|
||||
-I$(top_srcdir)/libpcsxcore -I$(top_srcdir)/include \
|
||||
diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am
|
||||
index ea6e2d2..2f04173 100644
|
||||
--- a/pixmaps/Makefile.am
|
||||
+++ b/pixmaps/Makefile.am
|
||||
@@ -1,7 +1,7 @@
|
||||
pixmapdir = "$(datadir)/pcsx"
|
||||
pixmap_DATA = pcsx.jpg
|
||||
|
||||
-icondir = "$(datadir)/pixmaps"
|
||||
+icondir = "/usr/share/pixmaps"
|
||||
icon_DATA = pcsx-icon.png
|
||||
|
||||
EXTRA_DIST = pcsx.jpg pcsx-icon.png
|
67
games-emulation/pcsx-r/pcsx-r-1.9.92.ebuild
Normal file
67
games-emulation/pcsx-r/pcsx-r-1.9.92.ebuild
Normal file
@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=2
|
||||
|
||||
inherit eutils autotools games
|
||||
|
||||
MY_PN="${PN/-/}"
|
||||
DESCRIPTION="PCSX-Reloaded: a fork of PCSX, the discontinued Playstation emulator"
|
||||
HOMEPAGE="http://pcsxr.codeplex.com"
|
||||
SRC_URI="http://download.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=pcsxr&DownloadId=140521&FileTime=129254829621800000&Build=17027 -> pcsxr-1.9.92.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~ppc"
|
||||
IUSE="alsa opengl"
|
||||
|
||||
RDEPEND="x11-libs/gtk+:2
|
||||
gnome-base/libglade
|
||||
media-libs/libsdl
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
x11-libs/libXv
|
||||
x11-libs/libXtst
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
opengl? ( virtual/opengl
|
||||
x11-libs/libXxf86vm )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
!games-emulation/pcsx
|
||||
!games-emulation/pcsx-df
|
||||
x86? ( dev-lang/nasm )"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
cd "${S}" || die
|
||||
# fix plugin path
|
||||
for i in $(grep -irl 'games/psemu' *);
|
||||
do
|
||||
einfo "Fixing plugin loading path for ${i}"
|
||||
sed -i "$i" -e "s:games/psemu:psemu:g" || die "sed failed"
|
||||
done
|
||||
|
||||
# fix icon and .desktop path
|
||||
epatch "${FILESDIR}/${PN}-datadir.patch"
|
||||
|
||||
# regenerate for changes to spread
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
egamesconf \
|
||||
$(use_enable alsa) \
|
||||
$(use_enable opengl) \
|
||||
|| die "econf failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install \
|
||||
|| die "emake install failed"
|
||||
|
||||
dodoc README doc/keys.txt doc/tweaks.txt ChangeLog
|
||||
prepgamesdirs
|
||||
}
|
||||
|
Reference in New Issue
Block a user