A helpful OpenBSD user pointed out to me that this was broken at
runtime, which I was able to confirm (as was rpointel@).

This updates pcsxr to the latest version, which I was able to get
to work.

Upstream renamed the binary since this is a true fork of the original
pcsx code.

The added patch I took from FreeBSD, as well as the distfile. I'm not
sure if that's acceptable.

The distfile itself appears to be a pure source checkout, they didn't
even bother to run autogen.sh, so this switches the build to run that.

I know it's late in the cycle for updates, but considering this
fixes something obviously broken (at least on amd64), I think it
should go in.

OKs?

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/pcsxr/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- Makefile    1 Oct 2013 09:07:14 -0000       1.7
+++ Makefile    5 Feb 2014 05:26:05 -0000
@@ -4,8 +4,8 @@ SHARED_ONLY =   Yes
 
 COMMENT =      Playstation 1 emulator
 
-DISTNAME =     pcsxr-1.9.92
-REVISION =     1
+DISTNAME =     pcsxr-1.9.94.r87113
+PKGNAME =      pcsxr-1.9.94beta0
 
 CATEGORIES =   emulators games
 HOMEPAGE =     http://pcsxr.codeplex.com/
@@ -15,27 +15,38 @@ MAINTAINER =        Jeremy Evans <jeremy@openbs
 # GPLv2
 PERMIT_PACKAGE_CDROM = Yes
 
-MASTER_SITES = https://distfiles.bsdfrog.org/
+MASTER_SITES = 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/martymac/
 EXTRACT_SUFX = .tar.bz2
 
 USE_GMAKE =    Yes
 
 MODULES =      devel/gettext
 
-WANTLIB += GL SDL X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext
-WANTLIB += Xfixes Xi Xinerama Xrandr Xrender Xtst Xv Xxf86vm atk-1.0
-WANTLIB += c cairo cdio drm expat fontconfig freetype gdk-x11-2.0 
gdk_pixbuf-2.0
-WANTLIB += gio-2.0 glade-2.0 glib-2.0 gmodule-2.0 gobject-2.0
-WANTLIB += gthread-2.0 gtk-x11-2.0 m pango-1.0 pangocairo-1.0
+WANTLIB += GL ICE SDL SM X11 Xcomposite Xcursor Xdamage Xext Xfixes
+WANTLIB += Xi Xinerama Xrandr Xrender Xtst Xv Xxf86vm atk-1.0
+WANTLIB += atk-bridge-2.0 atspi c cairo cairo-gobject cdio dbus-1
+WANTLIB += expat ffi fontconfig freetype gdk-3 gdk_pixbuf-2.0
+WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 graphite2
+WANTLIB += gthread-2.0 gtk-3 harfbuzz m pango-1.0 pangocairo-1.0
 WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
-WANTLIB += sndio usbhid xcb xcb-render xcb-shm xml2 z
+WANTLIB += sndio usbhid xcb xcb-render xcb-shm z
+
+BUILD_DEPENDS =                devel/autoconf/2.69 \
+                       devel/automake/1.14
 
 CONFIGURE_STYLE =      gnu
-CONFIGURE_ENV =                CFLAGS="-I/usr/X11R6/include/"
-CONFIGURE_ARGS =       --enable-libcdio --enable-opengl
+CONFIGURE_SCRIPT =     autogen.sh
+CONFIGURE_ENV =                CPPFLAGS="-I/usr/X11R6/include/" \
+                       LDFLAGS="-L/usr/X11R6/lib" \
+                       AUTOCONF_VERSION=${AUTOCONF_VERSION} \
+                       AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
+CONFIGURE_ARGS =       --enable-libcdio --enable-opengl --enable-dynarec=no
+AUTOCONF_VERSION =     2.69
+AUTOMAKE_VERSION =     1.14
+USE_LIBTOOL =          gnu
 
 LIB_DEPENDS =  audio/libcdio \
-               devel/libglade2 \
+               x11/gtk+3 \
                devel/sdl
 RUN_DEPENDS =  devel/desktop-file-utils
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/emulators/pcsxr/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    1 Apr 2011 17:18:55 -0000       1.1.1.1
+++ distinfo    5 Feb 2014 03:01:23 -0000
@@ -1,5 +1,2 @@
-MD5 (pcsxr-1.9.92.tar.bz2) = KEEa7QtEJPlyJ9lL3vrsgw==
-RMD160 (pcsxr-1.9.92.tar.bz2) = GAJuHvw0iuz2fyca2X6nDaS8z8A=
-SHA1 (pcsxr-1.9.92.tar.bz2) = 0PM29JzcLtvsI+daAdEMjVQG7Vg=
-SHA256 (pcsxr-1.9.92.tar.bz2) = +5bb8X6i1SFbWDOFNDURQ+jvcxbCVQSZG6djCfyTFhE=
-SIZE (pcsxr-1.9.92.tar.bz2) = 1471890
+SHA256 (pcsxr-1.9.94.r87113.tar.bz2) = 
yySywHEfYqy4ZuRIPboIXpD8DLnkAl0WX9WmGIgtqTg=
+SIZE (pcsxr-1.9.94.r87113.tar.bz2) = 1389412
Index: patches/patch-doc_pcsx_1
===================================================================
RCS file: /cvs/ports/emulators/pcsxr/patches/patch-doc_pcsx_1,v
retrieving revision 1.1
diff -u -p -r1.1 patch-doc_pcsx_1
--- patches/patch-doc_pcsx_1    7 Sep 2011 16:00:19 -0000       1.1
+++ patches/patch-doc_pcsx_1    5 Feb 2014 03:05:51 -0000
@@ -1,11 +1,11 @@
 $OpenBSD: patch-doc_pcsx_1,v 1.1 2011/09/07 16:00:19 jeremy Exp $
---- doc/pcsx.1.orig    Mon Aug  2 01:39:52 2010
-+++ doc/pcsx.1 Wed Sep  7 08:42:19 2011
-@@ -29,7 +29,6 @@ Loads savestate STATENUM
+--- doc/pcsxr.1.orig   Tue Sep 10 02:55:59 2013
++++ doc/pcsxr.1        Tue Feb  4 19:05:51 2014
+@@ -33,7 +33,6 @@ Loads savestate STATENUM
  .TP
  .B -help (-h)
  Display help message
 -.TP
  .SH AUTHOR
- pcsx was written by Linuzappz <[email protected]>. PCSX-df was written by 
Ryan Schultz <[email protected]> and Andrew Burton <[email protected]>.
+ PCSX was written by Linuzappz <[email protected]>. PCSX-df was written by 
Ryan Schultz <[email protected]> and Andrew Burton <[email protected]>. 
PCSX-Reloaded was written by Wei Mingzhi <[email protected]>.
  This manual page was written by Ryan Schultz <[email protected]> for the 
Debian Project.
Index: patches/patch-plugins_bladesio1_gui_c
===================================================================
RCS file: patches/patch-plugins_bladesio1_gui_c
diff -N patches/patch-plugins_bladesio1_gui_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-plugins_bladesio1_gui_c       5 Feb 2014 03:29:22 -0000
@@ -0,0 +1,43 @@
+$OpenBSD$
+--- plugins/bladesio1/gui.c.orig       Tue Feb  4 19:27:11 2014
++++ plugins/bladesio1/gui.c    Tue Feb  4 19:29:14 2014
+@@ -26,8 +26,6 @@
+ #include <gtk/gtk.h>
+ 
+ #include <sys/socket.h>
+-#include <sys/ioctl.h>
+-#include <linux/if.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <netdb.h>
+@@ -42,6 +40,7 @@
+ 
+ #define MAXINTERFACES 16
+ 
++#if 0
+ void sockGetIP(char *IPAddress) {
+       int fd, intrface;
+       struct ifreq buf[MAXINTERFACES];
+@@ -66,6 +65,22 @@ void sockGetIP(char *IPAddress) {
+               close(fd);
+       }
+ }
++
++#else
++
++void sockGetIP(char *IPAddress) {
++    struct hostent *host;
++    char str[256];
++
++    gethostname(str, 256);
++    host = gethostbyname(str);
++
++    if (host != NULL)
++        strcpy(IPAddress, inet_ntoa(*((struct in_addr 
*)host->h_addr_list[0])));
++    else strcpy(IPAddress, "127.0.0.1");
++}
++
++#endif
+ 
+ void cfgSysMessage(const char *fmt, ...) {
+       GtkWidget *MsgDlg;
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/emulators/pcsxr/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   1 Apr 2011 21:56:21 -0000       1.2
+++ pkg/PLIST   5 Feb 2014 05:10:43 -0000
@@ -1,44 +1,72 @@
 @comment $OpenBSD: PLIST,v 1.2 2011/04/01 21:56:21 jeremy Exp $
-@bin bin/pcsx
+@bin bin/pcsxr
 lib/games/
 lib/games/psemu/
+@bin lib/games/psemu/cfgBladeSio1
 @bin lib/games/psemu/cfgDFCdrom
 @bin lib/games/psemu/cfgDFInput
 @bin lib/games/psemu/cfgDFNet
 @bin lib/games/psemu/cfgDFSound
 @bin lib/games/psemu/cfgDFXVideo
 @bin lib/games/psemu/cfgpeopsxgl
+lib/games/psemu/libBladeSio1.a
+@comment lib/games/psemu/libBladeSio1.la
+lib/games/psemu/libBladeSio1.so
+lib/games/psemu/libDFCdrom.a
 @comment lib/games/psemu/libDFCdrom.la
 lib/games/psemu/libDFCdrom.so
+lib/games/psemu/libDFInput.a
 @comment lib/games/psemu/libDFInput.la
 lib/games/psemu/libDFInput.so
+lib/games/psemu/libDFNet.a
 @comment lib/games/psemu/libDFNet.la
 lib/games/psemu/libDFNet.so
+lib/games/psemu/libDFSound.a
 @comment lib/games/psemu/libDFSound.la
 lib/games/psemu/libDFSound.so
+lib/games/psemu/libDFXVideo.a
 @comment lib/games/psemu/libDFXVideo.la
 lib/games/psemu/libDFXVideo.so
+lib/games/psemu/libpeopsxgl.a
 @comment lib/games/psemu/libpeopsxgl.la
 lib/games/psemu/libpeopsxgl.so
-@man man/man1/pcsx.1
-share/applications/pcsx.desktop
-share/locale/it/LC_MESSAGES/pcsx.mo
-share/locale/pt_BR/LC_MESSAGES/pcsx.mo
+@man man/man1/pcsxr.1
+share/applications/pcsxr.desktop
+share/locale/fr_FR/
+share/locale/fr_FR/LC_MESSAGES/
+share/locale/fr_FR/LC_MESSAGES/pcsxr.mo
+share/locale/hu_HU/
+share/locale/hu_HU/LC_MESSAGES/
+share/locale/hu_HU/LC_MESSAGES/pcsxr.mo
+share/locale/it/LC_MESSAGES/pcsxr.mo
+share/locale/pt_BR/LC_MESSAGES/pcsxr.mo
 share/locale/ru_RU/
 share/locale/ru_RU/LC_MESSAGES/
-share/locale/ru_RU/LC_MESSAGES/pcsx.mo
-share/locale/zh_CN/LC_MESSAGES/pcsx.mo
-share/locale/zh_TW/LC_MESSAGES/pcsx.mo
-share/pcsx/
-share/pcsx/pcsx.glade2
-share/pcsx/pcsx.jpg
+share/locale/ru_RU/LC_MESSAGES/pcsxr.mo
+share/locale/zh_CN/LC_MESSAGES/pcsxr.mo
+share/locale/zh_TW/LC_MESSAGES/pcsxr.mo
+share/pcsxr/
+share/pcsxr/cd.png
+share/pcsxr/cdr.png
+share/pcsxr/gpu.png
+share/pcsxr/iso-open.png
+share/pcsxr/iso-reopen.png
+share/pcsxr/memcard.png
+share/pcsxr/pad.png
+share/pcsxr/pcsxr.png
+share/pcsxr/pcsxr.ui
+share/pcsxr/play.png
+share/pcsxr/sio1.png
+share/pcsxr/spu.png
 share/pixmaps/
-share/pixmaps/pcsx-icon.png
+share/pixmaps/pcsxr-icon.png
 share/psemu/
-share/psemu/dfcdrom.glade2
-share/psemu/dfinput.glade2
-share/psemu/dfnet.glade2
-share/psemu/dfsound.glade2
-share/psemu/dfxvideo.glade2
 @exec %D/bin/update-desktop-database
 @unexec-delete %D/bin/update-desktop-database
+share/psemu/dfcdrom.ui
+share/psemu/dfinput.ui
+share/psemu/dfnet.ui
+share/psemu/dfsound.ui
+share/psemu/dfxvideo.ui
+share/psemu/peopsxgl.ui
+share/psemu/sio1.ui

Reply via email to