FreeBSD Bugzilla – Attachment 49568 Details for
Bug 75671
[Maintainer Update] emulators/xmame to 0.89
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
xmame.diff
xmame.diff (text/plain), 8.26 KB, created by
Miguel Mendez
on 2004-12-30 21:30:26 UTC
(
hide
)
Description:
xmame.diff
Filename:
MIME Type:
Creator:
Miguel Mendez
Created:
2004-12-30 21:30:26 UTC
Size:
8.26 KB
patch
obsolete
>diff -ruN xmame.old/Makefile xmame/Makefile >--- xmame.old/Makefile Mon Nov 29 08:04:36 2004 >+++ xmame/Makefile Thu Dec 30 22:00:14 2004 >@@ -6,7 +6,7 @@ > # > > PORTNAME?= xmame >-PORTVERSION?= 0.88 >+PORTVERSION?= 0.89 > CATEGORIES= emulators > MASTER_SITES= http://x.mame.net/download/:xmame \ > http://www.sys2064.com/files/util/:history \ >@@ -24,13 +24,25 @@ > USE_PERL5= yes > USE_GMAKE= yes > USE_REINPLACE= yes >+WANT_SDL= yes >+WANT_GNOME= yes >+ >+# Are we building MAME, MESS or PinMAME? (also set by slave ports) >+MAMEMESS?= mame > > MAN6= x${MAMEMESS}.6 > >-XMAMEVERSION?= ${PORTVERSION} >+OPTIONS= SDL "Use the SDL driver" on \ >+ OPENGL "Use the OpenGL driver" off \ >+ X11 "Use the X11 driver" off \ >+ SVGALIB "Use the Svgalib driver" off \ >+ ASM68K "Enable the speedier but buggy 68k emulator" off \ >+ OPTIMIZATION "Enable maximum C compiler optimization" off \ >+ ESOUND "Enable esound support" off \ >+ DATFILES "Installs additional information files" on \ >+ NETWORK "Include support for network play (**BROKEN**)" off > >-# Are we building MAME, MESS or PinMAME? (also set by slave ports) >-MAMEMESS?= mame >+XMAMEVERSION?= ${PORTVERSION} > > PLIST_SUB+= MAMEMESS="x${MAMEMESS}" SPOOLGAMES="${SPOOLGAMES}" > .if ${MAMEMESS} == "mame" >@@ -101,19 +113,15 @@ > .endif > .endif > >-PKGOPTS= ${FILESDIR}/pkg-opts >- > # > # Various options are processed here. > # >+.include <bsd.port.pre.mk> > > # Option WITH_DATFILES > .if ${MAMEMESS} == "mame" >-.if !defined(WITH_DATFILES) >-WITH_DATFILES= yes >-.endif > >-.if ${WITH_DATFILES:L} != "no" >+.if defined(WITH_DATFILES) > PLIST_SUB+= DATFILES="" > > EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip >@@ -138,12 +146,7 @@ > .endif > .endif > >-# Option WITH_ASM68K >-.if !defined(WITH_ASM68K) >-WITH_ASM68K= no >-.endif >- >-.if ${WITH_ASM68K:L} == "yes" >+.if defined(WITH_ASM68K) > ASM_COMMENT= > .else > ASM_COMMENT=\# >@@ -151,21 +154,24 @@ > > # Option WITH_OPTIMIZATION > .if defined(WITH_OPTIMIZATION) >-.if ${WITH_OPTIMIZATION:L} == "yes" > CFLAGS+= -O3 -Wall -Wno-unused -funroll-loops \ > -fstrength-reduce -fomit-frame-pointer -ffast-math \ > -falign-functions=4 -falign-jumps=4 -falign-loops=4 > .endif >-.endif > > SDLSOUNDCOMMENT= \# > > # Option DISPLAY_TARGET >-.if !defined(DISPLAY_TARGET) >-DISPLAY_TARGET=sdl >+.if defined(WITH_SDL) >+USE_SDL= sdl >+DISPLAY_TARGET= sdl >+DISPLAY_METHOD= SDL >+SDLSOUNDCOMMENT= > .endif > >-.if ${DISPLAY_TARGET:L} == "opengl" >+.if defined(WITH_OPENGL) >+USE_XLIB= yes >+DISPLAY_TARGET= opengl > CFLAGS+= ${PTHREAD_CFLAGS} -I${X11BASE}/include > USE_GL= yes > DISPLAY_METHOD= x11 >@@ -173,42 +179,22 @@ > ALL_DOCS+= ${GLDOCS} > .else > PLIST_SUB+= OPENGL="@comment " >- >-.if ${DISPLAY_TARGET:L} == "svgalib" >-LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib >-DISPLAY_METHOD= svgalib >-.else >- >-.if ${DISPLAY_TARGET:L} == "x11" >-DISPLAY_METHOD= x11 >-.else >- >-.if ${DISPLAY_TARGET:L} != "sdl" >-pre-everything:: >- @${ECHO_MSG} "You must select a valid DISPLAY_TARGET. Refer to" >- @${ECHO_MSG} "'make options' for more information." >- @exit 1 >-.endif >-USE_SDL= sdl >-DISPLAY_METHOD= SDL >-SDLSOUNDCOMMENT= >-.endif >-.endif > .endif > >-.if ${DISPLAY_TARGET:L} != "svgalib" >+.if defined(WITH_SVGALIB) >+DISPLAY_TARGET= svgalib >+LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib > USE_XPM= yes >-USE_X_PREFIX= yes >+DISPLAY_METHOD= svgalib > .endif > >-PKGNAMESUFFIX=-${DISPLAY_METHOD:L} >- >-# Option WITH_ESOUND >-.if !defined(WITH_ESOUND) >-WITH_ESOUND= no >+.if defined(WITH_X11) >+DISPLAY_METHOD= x11 >+USE_XLIB= yes > .endif > >-.if ${WITH_ESOUND:L} == "yes" >+# Option WITH_ESOUND >+.if defined(WITH_ESOUND) > ESOUNDCOMMENT= > USE_GNOME= esound > .else >@@ -217,44 +203,15 @@ > > # XXX Network support is *broken* in 0.85+, leave commented out for now > # Option WITH_NETWORK >-#.if ${MAMEMESS} == "mame" >-.if !defined(WITH_NETWORK) >-WITH_NETWORK= no >-.endif >- >-.if ${WITH_NETWORK:L} != "no" >+.if defined(WITH_NETWORK) > BROKEN= "Networking support is currently broken" > NETWORK= > .else > NETWORK=\# > .endif >-#.endif >- >-.include <bsd.port.pre.mk> >- >-# >-# Regular targets >-# >- >-options: >- @(${ECHO_MSG} "===> Build options for ${PKGNAME}:"; \ >- ${PERL} -ne '/^#/ || /^\s/ && print || \ >- print sprintf "* %s [%s]\n %s", split(/\|/)' ${PKGOPTS}) | \ >- $${PAGER:-/usr/bin/more} >- >-pre-everything:: >-.if !defined(BATCH) >- @${TEST} -r ${PKGOPTS} && \ >- (${ECHO_MSG} '-------------------------------------------------------------------------'; \ >- ${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \ >- ${ECHO_MSG} '-------------------------------------------------------------------------';) >-.endif > > # The large number of sed regexes here is intended to make this port a whole > # lot easier to maintain - please don't convert them into a patch. >-# >-# XXX: The -Imess part was added because of a conflict with cdparanoia-3.9.8_3 >-# which (imho bogusly) installs an 'utils.h' header in $LOCALBASE/include > do-configure: > ${REINPLACE_CMD} -e "s@= gcc@?= ${CC}@g" \ > -e "s@^TARGET.*@TARGET = ${MAMEMESS}@g" \ >@@ -263,7 +220,7 @@ > -e "s@^CFLAGS.*@CFLAGS ?= ${CFLAGS}@g" \ > -e "s@^INSTALL_GROUP.*@INSTALL_GROUP = wheel@g" \ > -e "s@# LIBS.*@LIBS = -L${LOCALBASE}/lib@g" \ >- -e "s@# INCLUDES.*@INCLUDES = -Imess -I${LOCALBASE}/include@g" \ >+ -e "s@# INCLUDES.*@INCLUDES = -I${LOCALBASE}/include@g" \ > -e "s@^PREFIX.*@PREFIX = ${PREFIX}@g" \ > -e "s@/share/man@/man@g" \ > -e "s@^MY_CPU.*@MY_CPU = ${ARCH}@g" \ >@@ -277,11 +234,11 @@ > -e "s@^SDL_CONFIG.*@SDL_CONFIG = ${SDL_CONFIG}@g" \ > -e "s@^GLLIBS += .*@GLLIBS += ${PTHREAD_LIBS}@g" \ > ${WRKSRC}/makefile.unix >-.if ${DISPLAY_TARGET:L} == "sdl" >+.if defined(WITH_SDL) > ${REINPLACE_CMD} -e "s@# JOY_SDL = 1@JOY_SDL = 1@g" ${WRKSRC}/makefile.unix > .endif > >-.if ${DISPLAY_TARGET:L} == "opengl" >+.if defined(WITH_OPENGL) > ${REINPLACE_CMD} -e "s@# X11_OPENGL = 1@X11_OPENGL = 1@g" ${WRKSRC}/makefile.unix > .endif > >@@ -341,7 +298,7 @@ > ${INSTALL_DATA} ${WRKDIR}/history.dat ${PREFIX}/share/xmame > ${INSTALL_DATA} ${WRKDIR}/cheat.dat ${PREFIX}/share/xmame > .endif >-.if ${DISPLAY_TARGET:L} == "opengl" >+.if defined(WITH_OPENGL) > @${ECHO_MSG} > @${ECHO_MSG} "**************************************************************" > @${ECHO_MSG} "* HEADSUP: The OpenGL code is now built on top of the X11" >diff -ruN xmame.old/distinfo xmame/distinfo >--- xmame.old/distinfo Wed Nov 24 18:45:31 2004 >+++ xmame/distinfo Thu Dec 30 13:08:41 2004 >@@ -1,5 +1,5 @@ >-MD5 (xmame/xmame-0.88.tar.bz2) = 5f247adfc80362101ff207a061e81516 >-SIZE (xmame/xmame-0.88.tar.bz2) = 14799683 >+MD5 (xmame/xmame-0.89.tar.bz2) = 76554475dec85223e01a5bf8c9c9158c >+SIZE (xmame/xmame-0.89.tar.bz2) = 14933673 > MD5 (xmame/uhsdat795.zip) = c30956e15cd8218f558f41013a47f22e > SIZE (xmame/uhsdat795.zip) = 43750 > MD5 (xmame/history.dat.zip) = 8c758537d5f5bc90fc3224b19421ae12 >diff -ruN xmame.old/files/pkg-opts xmame/files/pkg-opts >--- xmame.old/files/pkg-opts Sat Mar 23 12:03:36 2002 >+++ xmame/files/pkg-opts Thu Jan 1 01:00:00 1970 >@@ -1,30 +0,0 @@ >-# Variable|Default value|Short description >-# Multi-line/long description (optional). >-# Multi-line/long description lines must start with whitespace! >-# >-DISPLAY_TARGET|sdl|Set this to one of the following: >- sdl Uses the SDL library to be able to play fullscreen >- games without having to have root rights. >- opengl Uses OpenGL libraries for hardware accelerrated screen >- scaling. >- x11 Use the standard X11 libraries. Need to be root to >- play fullscreen games. >- svgalib Uses the svgalib library for console play. This >- target is not working yet; patches to make it work >- most warmly welcomed. >-WITH_ASM68K|no|If set to 'yes', this will enable the speedier but buggy >- assembler 68x00 CPU emulation cores. This will only work on x86. >- Note that some games are known to break with this option, among >- them pbobble2. >-WITH_OPTIMIZATION|no|If set to 'yes', this will enable maximum C compiler >- optimization. Due to the fact that these optimization levels >- sometimes uncover hidden GCC bugs, this is disabled by default. >- Enable at your own risk. >-WITH_ESOUND|no|If set to 'yes', compile with the esound libraries for >- nice behaviour in a GNOME environment. >-WITH_DATFILES|yes|If set to 'yes', this installs additional information >- with MAME, including cheats, history of games, and highscores. >- This is a MAME-only option. >-WITH_NETWORK|yes|If set to 'yes', include support for network play. >- This can be disabled because there might be a speed increase >- without it.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 75671
: 49568