Bug 71255 - emulators/gxmame. Add extra patch to enable compat with new xmame 0.86
Summary: emulators/gxmame. Add extra patch to enable compat with new xmame 0.86
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Edwin Groothuis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-01 17:40 UTC by Miguel Mendez
Modified: 2004-10-11 23:42 UTC (History)
0 users

See Also:


Attachments
gxmame.diff (1.04 KB, patch)
2004-09-01 17:40 UTC, Miguel Mendez
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Mendez 2004-09-01 17:40:21 UTC

A little patch is needed for this program to work with the new xmame.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2004-09-02 13:11:32 UTC
Responsible Changed
From-To: freebsd-ports-bugs->edwin

mine
Comment 2 Miguel Mendez 2004-09-11 18:56:43 UTC
On Wed, 1 Sep 2004 18:31:28 +0200
"Miguel Mendez" <flynn@energyhq.es.eu.org> wrote:

Actually, use this patch instead, since the -{no,}xil option seems to be
gone in 0.86...

------------------------------------------

diff -ruN gxmame.old/Makefile gxmame/Makefile
--- gxmame.old/Makefile	Mon Apr  5 05:30:17 2004
+++ gxmame/Makefile	Sat Sep 11 19:19:27 2004
@@ -7,7 +7,7 @@
 
 PORTNAME=	gxmame
 PORTVERSION=	0.34b
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	emulators
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
diff -ruN gxmame.old/files/patch-src::mameio.c gxmame/files/patch-src::mameio.c
--- gxmame.old/files/patch-src::mameio.c	Thu Jan  1 01:00:00 1970
+++ gxmame/files/patch-src::mameio.c	Sat Sep 11 19:19:27 2004
@@ -0,0 +1,11 @@
+--- src/mameio.c.orig	Wed Nov 26 10:38:21 2003
++++ src/mameio.c	Wed Sep  1 18:14:39 2004
+@@ -217,7 +217,7 @@
+ 		
+ 	/* Generate the list */
+ 	/* without including neither history nor mameinfo to have less to parse after*/
+-	opt=g_strdup_printf("%s -listinfo -%s /dev/null -%s /dev/null 2>/dev/null",
++	opt=g_strdup_printf("%s -listxml -%s /dev/null -%s /dev/null | xml2info 2>/dev/null",
+ 			current_exec->path,
+ 			available_options->mameinfo_file_option,
+ 			available_options->history_file_option);
diff -ruN gxmame.old/files/patch-src::options.c gxmame/files/patch-src::options.c
--- gxmame.old/files/patch-src::options.c	Thu Jan  1 01:00:00 1970
+++ gxmame/files/patch-src::options.c	Sat Sep 11 19:44:37 2004
@@ -0,0 +1,38 @@
+--- src/options.c.old	Sat Sep 11 19:42:14 2004
++++ src/options.c	Sat Sep 11 19:44:19 2004
+@@ -7298,8 +7298,6 @@
+ 						"%s "				/* newext */
+ 						"-%sxsync "
+ 						"-%sprivatecmap "
+-						"-%sxil "
+-						"-%smtxil "
+ 						"%s ",				/* Video mode */
+ 						x11mode,
+ 						(target->cursor)?"":"no",
+@@ -7308,8 +7306,6 @@
+ 						newext?newext:"",
+ 						(target->xsync)?"":"no",
+ 						(target->privatecmap)?"":"no",
+-						(target->xil)?"":"no",
+-						(target->mtxil)?"":"no",
+ 						Video_Mode_option?Video_Mode_option:""
+ 						);
+ 		}
+@@ -7323,8 +7319,6 @@
+ 						"%s "				/* newext */
+ 						"-%sxsync "
+ 						"-%sprivatecmap "
+-						"-%sxil "
+-						"-%smtxil "
+ 						"%s ",				/* Video mode */
+ 						target->x11_mode,
+ 						(target->cursor)?"":"no",
+@@ -7334,8 +7328,6 @@
+ 						newext?newext:"",
+ 						(target->xsync)?"":"no",
+ 						(target->privatecmap)?"":"no",
+-						(target->xil)?"":"no",
+-						(target->mtxil)?"":"no",
+ 						Video_Mode_option?Video_Mode_option:""
+ 						);
+ 		}

--------------------------

Cheers,
-- 
	Miguel Mendez <flynn@energyhq.es.eu.org>
	http://www.energyhq.es.eu.org
	PGP Key: 0xDC8514F1
	Note: All HTML and non-english mail goes to /dev/null
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2004-10-11 23:42:17 UTC
State Changed
From-To: open->closed

Commited, thanks!
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2004-10-11 23:42:17 UTC
State Changed
From-To: open->closed

Commited, thanks!
Comment 5 Edwin Groothuis freebsd_committer freebsd_triage 2004-10-11 23:42:17 UTC
State Changed
From-To: open->closed

Commited, thanks!