public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsxr/, games-emulation/pcsxr/files/
@ 2017-01-26 17:54 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2017-01-26 17:54 UTC (permalink / raw
  To: gentoo-commits

commit:     fdcb46b955fa352f5a8070babd457a7a0cdc5880
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 17:26:34 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 17:54:16 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdcb46b9

games-emulation/pcsxr: Fix building against recent zlib, #604382

 .../files/pcsxr-1.9.94-zlib-uncompress2.patch      | 47 ++++++++++++++++++++++
 games-emulation/pcsxr/pcsxr-1.9.94-r1.ebuild       |  3 +-
 2 files changed, 49 insertions(+), 1 deletion(-)

diff --git a/games-emulation/pcsxr/files/pcsxr-1.9.94-zlib-uncompress2.patch b/games-emulation/pcsxr/files/pcsxr-1.9.94-zlib-uncompress2.patch
new file mode 100644
index 00000000..b269185
--- /dev/null
+++ b/games-emulation/pcsxr/files/pcsxr-1.9.94-zlib-uncompress2.patch
@@ -0,0 +1,47 @@
+From dabb671947ae26942c7ef8a71fef9831e0c1884d Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Thu, 26 Jan 2017 18:14:01 +0100
+Subject: [PATCH] Fix build against zlib-1.2.9+ (having uncompress2)
+
+---
+ pcsxr/configure.ac         | 3 +++
+ pcsxr/libpcsxcore/cdriso.c | 2 ++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/pcsxr/configure.ac b/pcsxr/configure.ac
+index 300bb185..128b4f97 100644
+--- a/pcsxr/configure.ac
++++ b/pcsxr/configure.ac
+@@ -113,6 +113,9 @@ if test "x$have_xtest" = xno; then
+ 	AC_MSG_ERROR([unable to find xtest headers])
+ fi
+ 
++AC_CHECK_LIB(z, uncompress2,
++[ AC_DEFINE([HAVE_UNCOMPRESS2], [1], [Define if libz supports uncompress2]) ])
++
+ AM_CONDITIONAL(USE_LIBCDIO, false)
+ 
+ AC_ARG_ENABLE(libcdio, [  --enable-libcdio        use GNU libcdio for CD-ROM support (default=no)],
+diff --git a/pcsxr/libpcsxcore/cdriso.c b/pcsxr/libpcsxcore/cdriso.c
+index 04e866d9..fb7f28a5 100644
+--- a/pcsxr/libpcsxcore/cdriso.c
++++ b/pcsxr/libpcsxcore/cdriso.c
+@@ -1219,6 +1219,7 @@ static int cdread_sub_mixed(FILE *f, unsigned int base, void *dest, int sector)
+ 	return ret;
+ }
+ 
++#ifndef HAVE_UNCOMPRESS2
+ static int uncompress2(void *out, unsigned long *out_size, void *in, unsigned long in_size)
+ {
+ 	static z_stream z;
+@@ -1249,6 +1250,7 @@ static int uncompress2(void *out, unsigned long *out_size, void *in, unsigned lo
+ 	*out_size -= z.avail_out;
+ 	return ret == 1 ? 0 : ret;
+ }
++#endif
+ 
+ static int cdread_compressed(FILE *f, unsigned int base, void *dest, int sector)
+ {
+-- 
+2.11.0
+

diff --git a/games-emulation/pcsxr/pcsxr-1.9.94-r1.ebuild b/games-emulation/pcsxr/pcsxr-1.9.94-r1.ebuild
index 961fc5a..6636d04 100644
--- a/games-emulation/pcsxr/pcsxr-1.9.94-r1.ebuild
+++ b/games-emulation/pcsxr/pcsxr-1.9.94-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -54,6 +54,7 @@ S=${WORKDIR}/${PN}
 src_prepare() {
 	local PATCHES=(
 		"${FILESDIR}"/${P}-disable-sdl2.patch
+		"${FILESDIR}"/${P}-zlib-uncompress2.patch
 	)
 
 	epatch "${PATCHES[@]}"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsxr/, games-emulation/pcsxr/files/
@ 2017-01-26 17:54 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2017-01-26 17:54 UTC (permalink / raw
  To: gentoo-commits

commit:     2b72d627cafdde2e840708ef32045fe91f638c95
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 17:26:48 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 17:54:19 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b72d627

games-emulation/pcsxr: Clean up old

 .../pcsxr/files/pcsxr-1.9.94-install-paths.patch   | 223 ---------------------
 games-emulation/pcsxr/pcsxr-1.9.94.ebuild          | 101 ----------
 2 files changed, 324 deletions(-)

diff --git a/games-emulation/pcsxr/files/pcsxr-1.9.94-install-paths.patch b/games-emulation/pcsxr/files/pcsxr-1.9.94-install-paths.patch
deleted file mode 100644
index adf2866..00000000
--- a/games-emulation/pcsxr/files/pcsxr-1.9.94-install-paths.patch
+++ /dev/null
@@ -1,223 +0,0 @@
-From a5b0086e76672083f91ddb4d0350cc99c19604fb Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Wed, 11 Dec 2013 17:12:58 +0100
-Subject: [PATCH 1/2] Fix install paths for Gentoo.
-
----
- data/Makefile.am              | 2 +-
- gui/Makefile.am               | 6 +++---
- libpcsxcore/Makefile.am       | 2 +-
- pixmaps/Makefile.am           | 2 +-
- plugins/bladesio1/Makefile.am | 6 +++---
- plugins/dfcdrom/Makefile.am   | 6 +++---
- plugins/dfinput/Makefile.am   | 6 +++---
- plugins/dfnet/Makefile.am     | 6 +++---
- plugins/dfsound/Makefile.am   | 6 +++---
- plugins/dfxvideo/Makefile.am  | 6 +++---
- plugins/peopsxgl/Makefile.am  | 8 ++++----
- 11 files changed, 28 insertions(+), 28 deletions(-)
-
-diff --git a/data/Makefile.am b/data/Makefile.am
-index 8f1ce6a..9df8e87 100644
---- a/data/Makefile.am
-+++ b/data/Makefile.am
-@@ -1,7 +1,7 @@
- glade_DATA = pcsxr.ui
- gladedir = $(datadir)/pcsxr
- 
--desktopdir = $(datadir)/applications
-+desktopdir = $(datarootdir)/applications
- desktop_DATA = pcsxr.desktop
- 
- EXTRA_DIST = $(glade_DATA) pcsxr.desktop
-diff --git a/gui/Makefile.am b/gui/Makefile.am
-index 5feb39e..6146ef0 100644
---- a/gui/Makefile.am
-+++ b/gui/Makefile.am
-@@ -1,10 +1,10 @@
- AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"${datadir}/pcsxr/\" \
--	-DPIXMAPDIR=\"${datadir}/pixmaps/\" \
--	-DLOCALE_DIR=\"${datadir}/locale/\" \
-+	-DPIXMAPDIR=\"${datarootdir}/pixmaps/\" \
-+	-DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	$(GTK3_CFLAGS) \
- 	-I$(top_srcdir)/libpcsxcore -I$(top_srcdir)/include \
- 	-DPSEMU_DATA_DIR=\"${datadir}/psemu\" \
--	-DDEF_PLUGIN_DIR=\"${libdir}/games/psemu\"
-+	-DDEF_PLUGIN_DIR=\"${libdir}/psemu\"
- 
- bin_PROGRAMS = pcsxr
- 
-diff --git a/libpcsxcore/Makefile.am b/libpcsxcore/Makefile.am
-index 1ae5389..9571ea3 100644
---- a/libpcsxcore/Makefile.am
-+++ b/libpcsxcore/Makefile.am
-@@ -1,4 +1,4 @@
--AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-I$(top_srcdir)/include
- 
- noinst_LIBRARIES = libpcsxcore.a
-diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am
-index e77fda4..f7e10da 100644
---- a/pixmaps/Makefile.am
-+++ b/pixmaps/Makefile.am
-@@ -1,7 +1,7 @@
- pixmapdir = "$(datadir)/pcsxr"
- pixmap_DATA = pcsxr.png iso-open.png iso-reopen.png cd.png cdr.png gpu.png memcard.png pad.png play.png sio1.png spu.png
- 
--icondir = "$(datadir)/pixmaps"
-+icondir = "$(datarootdir)/pixmaps"
- icon_DATA = pcsxr-icon.png
- 
- EXTRA_DIST = pcsxr.png iso-open.png iso-reopen.png cd.png cdr.png gpu.png memcard.png pad.png play.png sio1.png spu.png pcsxr-icon.png
-diff --git a/plugins/bladesio1/Makefile.am b/plugins/bladesio1/Makefile.am
-index 5b7fee4..75d9588 100644
---- a/plugins/bladesio1/Makefile.am
-+++ b/plugins/bladesio1/Makefile.am
-@@ -1,12 +1,12 @@
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libBladeSio1.la
- 
- libBladeSio1_la_SOURCES = cfg.c sio1.c sio1.h fifo.c fifo.h connection.c connection.h
- libBladeSio1_la_LDFLAGS = -module -avoid-version
- 
--AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS) \
- 	-I../../libpcsxcore -I../../include
-diff --git a/plugins/dfcdrom/Makefile.am b/plugins/dfcdrom/Makefile.am
-index b4c729f..297b4f9 100644
---- a/plugins/dfcdrom/Makefile.am
-+++ b/plugins/dfcdrom/Makefile.am
-@@ -1,5 +1,5 @@
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libDFCdrom.la
- 
-@@ -21,7 +21,7 @@ libDFCdrom_la_CFLAGS += -DUSE_LIBCDIO=1 $(LIBCDIO_CFLAGS)
- libDFCdrom_la_LIBADD += $(LIBCDIO_LIBS)
- endif
- 
--AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS) \
- 	-I../../libpcsxcore -I../../include
-diff --git a/plugins/dfinput/Makefile.am b/plugins/dfinput/Makefile.am
-index f270ca7..0f7f9b5 100644
---- a/plugins/dfinput/Makefile.am
-+++ b/plugins/dfinput/Makefile.am
-@@ -1,5 +1,5 @@
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libDFInput.la
- 
-@@ -7,7 +7,7 @@ libDFInput_la_SOURCES = cfg.c pad.c pad.h sdljoy.c xkb.c analog.c util.c util.h
- libDFInput_la_LDFLAGS = -module -avoid-version 
- libDFInput_la_LIBADD = -lpthread -lX11 $(SDL2_LIBS) $(SDL_LIBS)
- 
--AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS) \
- 	-I../../include -I../../libpcsxcore $(SDL2_CFLAGS) $(SDL_CFLAGS)
-diff --git a/plugins/dfnet/Makefile.am b/plugins/dfnet/Makefile.am
-index 004df63..fff3dba 100644
---- a/plugins/dfnet/Makefile.am
-+++ b/plugins/dfnet/Makefile.am
-@@ -1,12 +1,12 @@
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libDFNet.la
- 
- libDFNet_la_SOURCES = dfnet.c dfnet.h unix.c cfg.c
- libDFNet_la_LDFLAGS = -module -avoid-version
- 
--AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS) \
- 	-I../../libpcsxcore -I../../include
-diff --git a/plugins/dfsound/Makefile.am b/plugins/dfsound/Makefile.am
-index 5325555..15515b8 100644
---- a/plugins/dfsound/Makefile.am
-+++ b/plugins/dfsound/Makefile.am
-@@ -1,7 +1,7 @@
- AM_CPPFLAGS = -I../../include
- 
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libDFSound.la
- 
-@@ -46,7 +46,7 @@ libDFSound_la_CPPFLAGS += -DUSENULL=1
- endif
- 
- bin_PROGRAMS = cfgDFSound
--cfgDFSound_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+cfgDFSound_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS) $(AM_CPPFLAGS)
- cfgDFSound_SOURCES = spucfg-0.1df/main.c
-diff --git a/plugins/dfxvideo/Makefile.am b/plugins/dfxvideo/Makefile.am
-index 2af76fd..0515690 100644
---- a/plugins/dfxvideo/Makefile.am
-+++ b/plugins/dfxvideo/Makefile.am
-@@ -6,14 +6,14 @@ SUFFIXES = .asm
- 	$(LIBTOOL) --tag=CC --mode=compile \
- 	$(STRIP_FPIC) $(NASM) -f elf -d ELF -I${srcdir}/ $<
- 
--AM_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS)\
- 	-I../../libpcsxcore \
- 	-I../../include
- 
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libDFXVideo.la
- 
-diff --git a/plugins/peopsxgl/Makefile.am b/plugins/peopsxgl/Makefile.am
-index 99c9554..e3af49f 100644
---- a/plugins/peopsxgl/Makefile.am
-+++ b/plugins/peopsxgl/Makefile.am
-@@ -1,11 +1,11 @@
--AM_CPPFLAGS = -DPIXMAPDIR=\"${datadir}/pixmaps/\" \
--	-DLOCALE_DIR=\"${datadir}/locale/\" \
-+AM_CPPFLAGS = -DPIXMAPDIR=\"${datarootdir}/pixmaps/\" \
-+	-DLOCALE_DIR=\"${datarootdir}/locale/\" \
- 	-DDATADIR=\"${datadir}/psemu/\" \
- 	$(GTK3_CFLAGS) \
- 	-I../../libpcsxcore -I../../include
- 
--bindir = @libdir@/games/psemu/
--libdir = @libdir@/games/psemu/
-+bindir = @libdir@/psemu/
-+libdir = @libdir@/psemu/
- 
- lib_LTLIBRARIES = libpeopsxgl.la
- 
--- 
-1.8.5.1
-

diff --git a/games-emulation/pcsxr/pcsxr-1.9.94.ebuild b/games-emulation/pcsxr/pcsxr-1.9.94.ebuild
deleted file mode 100644
index fb5c544..00000000
--- a/games-emulation/pcsxr/pcsxr-1.9.94.ebuild
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit autotools eutils games
-
-DESCRIPTION="PCSX-Reloaded: a fork of PCSX, the discontinued Playstation emulator"
-HOMEPAGE="http://pcsxr.codeplex.com"
-# codeplex doesn't support direct downloads but GPL-2 doesn't mind me
-# mirroring it.
-SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.zip"
-
-LICENSE="GPL-2 public-domain"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="alsa cdio ffmpeg nls openal opengl oss pulseaudio +sdl"
-
-# pcsxr supports both SDL1 and SDL2 but uses the newer version installed
-# since SDL is not properly slotted in Gentoo, just fix it on SDL2
-
-RDEPEND="dev-libs/glib:2=
-	media-libs/libsdl:0=[joystick]
-	sys-libs/zlib:0=
-	x11-libs/gtk+:3=
-	x11-libs/libX11:0=
-	x11-libs/libXext:0=
-	x11-libs/libXtst:0=
-	x11-libs/libXv:0=
-	alsa? ( media-libs/alsa-lib:0= )
-	cdio? ( dev-libs/libcdio:0= )
-	ffmpeg? ( virtual/ffmpeg:0= )
-	nls? ( virtual/libintl:0= )
-	openal? ( media-libs/openal:0= )
-	opengl? ( virtual/opengl:0=
-		x11-libs/libXxf86vm:0= )
-	pulseaudio? ( media-sound/pulseaudio:0= )
-	sdl? ( media-libs/libsdl:0=[sound] )"
-DEPEND="${RDEPEND}
-	app-arch/unzip
-	dev-util/intltool
-	x11-proto/videoproto
-	nls? ( sys-devel/gettext:0 )
-	x86? ( dev-lang/nasm )"
-
-REQUIRED_USE="?? ( alsa openal oss pulseaudio sdl )"
-
-# it's only the .po file check that fails :)
-RESTRICT=test
-
-S=${WORKDIR}/${PN}
-
-src_prepare() {
-	local PATCHES=(
-		"${FILESDIR}"/${P}-disable-sdl2.patch
-		"${FILESDIR}"/${P}-install-paths.patch
-	)
-
-	epatch "${PATCHES[@]}"
-	epatch_user
-	eautoreconf
-}
-
-src_configure() {
-	local sound_backend
-
-	if use alsa; then
-		sound_backend=alsa
-	elif use oss; then
-		sound_backend=oss
-	elif use pulseaudio; then
-		sound_backend=pulseaudio
-	elif use sdl; then
-		sound_backend=sdl
-	elif use openal; then
-		sound_backend=openal
-	else
-		sound_backend=null
-	fi
-
-	local myeconfargs=(
-		--datarootdir="${EPREFIX%/}"/usr/share
-
-		$(use_enable nls)
-		$(use_enable cdio libcdio)
-		$(use_enable opengl)
-		$(use_enable ffmpeg ccdda)
-		--enable-sound=${sound_backend}
-	)
-
-	egamesconf "${myeconfargs[@]}"
-}
-
-src_install() {
-	default
-	prune_libtool_files --all
-
-	dodoc doc/{keys,tweaks}.txt
-	prepgamesdirs
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsxr/, games-emulation/pcsxr/files/
@ 2020-03-19 17:20 Michał Górny
  0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2020-03-19 17:20 UTC (permalink / raw
  To: gentoo-commits

commit:     a3788cb9ace4ca90246bac2d7adf41562bc62b4d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 19 17:12:02 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar 19 17:20:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3788cb9

games-emulation/pcsxr: Remove redundant versions

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 games-emulation/pcsxr/Manifest                     |   1 -
 .../pcsxr/files/pcsxr-1.9.94-disable-sdl2.patch    |  28 -----
 .../pcsxr/files/pcsxr-1.9.94-ffmpeg3.patch         |  62 -----------
 .../files/pcsxr-1.9.94-zlib-uncompress2.patch      |  47 ---------
 games-emulation/pcsxr/pcsxr-1.9.94-r2.ebuild       | 115 ---------------------
 5 files changed, 253 deletions(-)

diff --git a/games-emulation/pcsxr/Manifest b/games-emulation/pcsxr/Manifest
index 1d6c9ecd7d6..c0a4d7dbe86 100644
--- a/games-emulation/pcsxr/Manifest
+++ b/games-emulation/pcsxr/Manifest
@@ -1,2 +1 @@
-DIST pcsxr-1.9.94.zip 2631125 BLAKE2B 686503faffccc820bcac73bc69056ffe05176779ee49b834ce0da84c40a047b7882ca7b91a7b7f95ab153329ca6368ae545bbe567cac6a9bdba1a434c397862c SHA512 c49471c27692fbf22da32d2f5697a1dfed3dbdbfdb86cb789b0ea6cddb2a7da4f3390e4568f4e9385bf30d6baff0f2a591a80f424cf0c640cae0035ba81dce39
 DIST pcsxr-62467b86871aee3d70c7445f3cb79f0858ec566e.tar.gz 2229537 BLAKE2B 2f5c11c16d79b6747ccc5f7c655e99663a882e264548c136ff6d4b1321788a10b1475c023e0c7e0892aeb94032c522f2a0e6312e6cf66f608e1a1d7897aea809 SHA512 894e795c3616bb6abf87d144e1a2409142d457f2f2c04c4287e2804bb06caf008f42501089d555b5e43e6b2d6d2e8ac9a7d78842bed975b1b4b94465f4ed3a3c

diff --git a/games-emulation/pcsxr/files/pcsxr-1.9.94-disable-sdl2.patch b/games-emulation/pcsxr/files/pcsxr-1.9.94-disable-sdl2.patch
deleted file mode 100644
index 483ea56660e..00000000000
--- a/games-emulation/pcsxr/files/pcsxr-1.9.94-disable-sdl2.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From b7864d1b8db75eda19a7601f3e2402a885bb251d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Wed, 11 Dec 2013 17:19:09 +0100
-Subject: [PATCH] Disable SDL2 check for Gentoo.
-
-The SDL2 support seems immature at the moment, so we'd prefer pcsxr
-using SDL1 even if SDL2 is installed.
----
- configure.ac | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index f79cee0..0c79cff 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -26,8 +26,7 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [gettext domain])
- PKG_CHECK_MODULES(GLIB2, glib-2.0 >= 2.20, [], AC_MSG_ERROR([*** glib2 >= 2.20 not found!]))
- PKG_CHECK_MODULES(GTK3, gtk+-3.0 , [], AC_MSG_ERROR([*** libgtk3 >= 3.0 not found!]))
- 
--PKG_CHECK_MODULES([SDL2], [sdl2 >= 2.0.0],
--   [AC_DEFINE([HAVE_SDL2], [1], [Use SDL2])],
-+AS_IF([true],
-    [PKG_CHECK_MODULES([SDL], [sdl >= 1.2.12],
-        [AC_DEFINE([HAVE_SDL], [1], [Use SDL])
-     ], AC_MSG_ERROR([*** SDL >= 1.2.12 not found!]))
--- 
-1.8.5.1
-

diff --git a/games-emulation/pcsxr/files/pcsxr-1.9.94-ffmpeg3.patch b/games-emulation/pcsxr/files/pcsxr-1.9.94-ffmpeg3.patch
deleted file mode 100644
index 345ed9993ea..00000000000
--- a/games-emulation/pcsxr/files/pcsxr-1.9.94-ffmpeg3.patch
+++ /dev/null
@@ -1,62 +0,0 @@
---- a/libpcsxcore/cdriso.c	2013-11-09 16:24:14.000000000 +0100
-+++ b/libpcsxcore/cdriso.c	2016-12-12 01:02:25.652521029 +0100
-@@ -266,14 +266,14 @@
- 		}
- 
- 		if (!decoded_frame) {
--			if (!(decoded_frame = avcodec_alloc_frame())) {
-+			if (!(decoded_frame = av_frame_alloc())) {
- 				SysMessage(_(" -> Error allocating audio frame buffer. This track will not be available."));
- 				avformat_close_input(&inAudioFormat);
--				avcodec_free_frame(&decoded_frame);
-+				av_frame_free(&decoded_frame);
- 				return 1; // error decoding frame
- 			}
- 		} else {
--			avcodec_get_frame_defaults(decoded_frame);
-+			av_frame_unref(decoded_frame);
- 		}
- 		len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt);
- 		if (len > 0 && got_frame) {
-@@ -285,7 +285,7 @@
- 			fwrite(decoded_frame->data[0], 1, data_size, outfile);
- 		}
- 		av_free_packet(&avpkt);
--		//avcodec_free_frame(&decoded_frame);
-+		//av_frame_free(&decoded_frame);
- 	} while (moreFrames >= 0); // TODO: check for possible leaks
- 
- 	// file will be closed later on, now just flush it
-@@ -294,7 +294,7 @@
- 	avformat_close_input(&inAudioFormat);
- 	//avcodec_close(c);
- 	//av_free(c);
--	avcodec_free_frame(&decoded_frame);
-+	av_frame_free(&decoded_frame);
- 	return 0;
- }
- #endif
-@@ -340,12 +340,12 @@
- 	while (avpkt.size > 0) {
- 		int got_frame = 0;
- 		if (!decoded_frame) {
--			if (!(decoded_frame = avcodec_alloc_frame())) {
-+			if (!(decoded_frame = av_frame_alloc())) {
- 				SysPrintf(" -> Error allocating audio frame buffer. Track will not be available.");
- 				return 1; // error decoding frame
- 			}
- 		} else {
--			avcodec_get_frame_defaults(decoded_frame);
-+			av_frame_unref(decoded_frame);
- 		}
- 
- 		len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt);
-@@ -383,7 +383,7 @@
- 
- 	avcodec_close(c);
- 	av_free(c);
--	avcodec_free_frame(&decoded_frame);
-+	av_frame_free(&decoded_frame);
- 	return 0;
- }
- #endif

diff --git a/games-emulation/pcsxr/files/pcsxr-1.9.94-zlib-uncompress2.patch b/games-emulation/pcsxr/files/pcsxr-1.9.94-zlib-uncompress2.patch
deleted file mode 100644
index 616084b797c..00000000000
--- a/games-emulation/pcsxr/files/pcsxr-1.9.94-zlib-uncompress2.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From dabb671947ae26942c7ef8a71fef9831e0c1884d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Thu, 26 Jan 2017 18:14:01 +0100
-Subject: [PATCH] Fix build against zlib-1.2.9+ (having uncompress2)
-
----
- pcsxr/configure.ac         | 3 +++
- pcsxr/libpcsxcore/cdriso.c | 2 ++
- 2 files changed, 5 insertions(+)
-
-diff --git a/pcsxr/configure.ac b/pcsxr/configure.ac
-index 300bb185..128b4f97 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -113,6 +113,9 @@ if test "x$have_xtest" = xno; then
- 	AC_MSG_ERROR([unable to find xtest headers])
- fi
- 
-+AC_CHECK_LIB(z, uncompress2,
-+[ AC_DEFINE([HAVE_UNCOMPRESS2], [1], [Define if libz supports uncompress2]) ])
-+
- AM_CONDITIONAL(USE_LIBCDIO, false)
- 
- AC_ARG_ENABLE(libcdio, [  --enable-libcdio        use GNU libcdio for CD-ROM support (default=no)],
-diff --git a/pcsxr/libpcsxcore/cdriso.c b/pcsxr/libpcsxcore/cdriso.c
-index 04e866d9..fb7f28a5 100644
---- a/libpcsxcore/cdriso.c
-+++ b/libpcsxcore/cdriso.c
-@@ -1219,6 +1219,7 @@ static int cdread_sub_mixed(FILE *f, unsigned int base, void *dest, int sector)
- 	return ret;
- }
- 
-+#ifndef HAVE_UNCOMPRESS2
- static int uncompress2(void *out, unsigned long *out_size, void *in, unsigned long in_size)
- {
- 	static z_stream z;
-@@ -1249,6 +1250,7 @@ static int uncompress2(void *out, unsigned long *out_size, void *in, unsigned lo
- 	*out_size -= z.avail_out;
- 	return ret == 1 ? 0 : ret;
- }
-+#endif
- 
- static int cdread_compressed(FILE *f, unsigned int base, void *dest, int sector)
- {
--- 
-2.11.0
-

diff --git a/games-emulation/pcsxr/pcsxr-1.9.94-r2.ebuild b/games-emulation/pcsxr/pcsxr-1.9.94-r2.ebuild
deleted file mode 100644
index b58d16a4d36..00000000000
--- a/games-emulation/pcsxr/pcsxr-1.9.94-r2.ebuild
+++ /dev/null
@@ -1,115 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit autotools ltprune versionator
-
-DESCRIPTION="PCSX-Reloaded: a fork of PCSX, the discontinued Playstation emulator"
-HOMEPAGE="http://pcsxr.codeplex.com"
-# codeplex doesn't support direct downloads but GPL-2 doesn't mind me
-# mirroring it.
-SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.zip"
-
-LICENSE="GPL-2 public-domain"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="alsa cdio ffmpeg libav nls openal opengl oss pulseaudio +sdl"
-REQUIRED_USE="?? ( alsa openal oss pulseaudio sdl )"
-
-# pcsxr supports both SDL1 and SDL2 but uses the newer version installed
-# since SDL is not properly slotted in Gentoo, just fix it on SDL2
-
-RDEPEND="
-	dev-libs/glib:2=
-	media-libs/libsdl:0=[joystick]
-	sys-libs/zlib:0=
-	x11-libs/gtk+:3=
-	x11-libs/libX11:0=
-	x11-libs/libXext:0=
-	x11-libs/libXtst:0=
-	x11-libs/libXv:0=
-	alsa? ( media-libs/alsa-lib:0= )
-	cdio? ( dev-libs/libcdio:0= )
-	ffmpeg? (
-		!libav? ( >=media-video/ffmpeg-3:0= )
-		libav? ( media-video/libav:0= ) )
-	nls? ( virtual/libintl:0= )
-	openal? ( media-libs/openal:0= )
-	opengl? ( virtual/opengl:0=
-		x11-libs/libXxf86vm:0= )
-	pulseaudio? ( media-sound/pulseaudio:0= )
-	sdl? ( media-libs/libsdl:0=[sound] )
-"
-DEPEND="${RDEPEND}
-	app-arch/unzip
-	dev-util/intltool
-	x11-base/xorg-proto
-	nls? ( sys-devel/gettext:0 )
-	x86? ( dev-lang/nasm )
-"
-
-# it's only the .po file check that fails :)
-RESTRICT=test
-
-PATCHES=(
-	"${FILESDIR}"/${P}-disable-sdl2.patch
-	"${FILESDIR}"/${P}-zlib-uncompress2.patch
-	"${FILESDIR}"/${P}-ffmpeg3.patch
-)
-
-S="${WORKDIR}/${PN}"
-
-src_prepare() {
-	default
-	eautoreconf
-}
-
-src_configure() {
-	local sound_backend
-
-	if use alsa; then
-		sound_backend=alsa
-	elif use oss; then
-		sound_backend=oss
-	elif use pulseaudio; then
-		sound_backend=pulseaudio
-	elif use sdl; then
-		sound_backend=sdl
-	elif use openal; then
-		sound_backend=openal
-	else
-		sound_backend=null
-	fi
-
-	local myconf=(
-		$(use_enable nls)
-		$(use_enable cdio libcdio)
-		$(use_enable opengl)
-		$(use_enable ffmpeg ccdda)
-		--enable-sound=${sound_backend}
-	)
-
-	econf "${myconf[@]}"
-}
-
-src_install() {
-	default
-	prune_libtool_files --all
-
-	dodoc doc/{keys,tweaks}.txt
-}
-
-pkg_postinst() {
-	local vr
-	for vr in ${REPLACING_VERSIONS}; do
-		if ! version_is_at_least 1.9.94-r1 ${vr}; then
-			ewarn "Starting with pcsxr-1.9.94-r1, the plugin install path has changed."
-			ewarn "In order for pcsxr to find plugins, you will need to remove stale"
-			ewarn "symlinks from ~/.pcsxr/plugins. You can do this using the following"
-			ewarn "command (as your regular user):"
-			ewarn
-			ewarn " $ find ~/.pcsxr/plugins/ -type l -delete"
-		fi
-	done
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-19 17:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-19 17:20 [gentoo-commits] repo/gentoo:master commit in: games-emulation/pcsxr/, games-emulation/pcsxr/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2017-01-26 17:54 Michał Górny
2017-01-26 17:54 Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox