FreeBSD Bugzilla – Attachment 251941 Details for
Bug 280195
emulators/zsnes: Fix build by using an older C++ standard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
zsnes-1.51.patch
zsnes-1.51.patch (text/plain), 3.67 KB, created by
Naram Qashat
on 2024-07-08 20:46:03 UTC
(
hide
)
Description:
zsnes-1.51.patch
Filename:
MIME Type:
Creator:
Naram Qashat
Created:
2024-07-08 20:46:03 UTC
Size:
3.67 KB
patch
obsolete
>diff --git a/emulators/zsnes/Makefile b/emulators/zsnes/Makefile >index fcf091b9dc40..61547a7bc574 100644 >--- a/emulators/zsnes/Makefile >+++ b/emulators/zsnes/Makefile >@@ -23,40 +23,44 @@ USES= gmake localbase sdl tar:bzip2 > USE_SDL= sdl > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --disable-cpucheck >+CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -std=gnu++03" > > WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/}/src > >-PLIST_FILES= bin/zsnes share/man/man1/zsnes.1.gz >+PLIST_FILES= bin/zsnes \ >+ share/man/man1/zsnes.1.gz > >-NO_OPTIONS_SORT=yes >-OPTIONS_DEFINE= X11 OPENGL DEBUGGER JMA AO >-OPTIONS_DEFAULT=X11 JMA >-DEBUGGER_DESC= ZSNES Debugger >-JMA_DESC= JMA support >+OPTIONS_DEFINE= AO DEBUGGER JMA OPENGL X11 >+OPTIONS_DEFAULT= JMA X11 >+DEBUGGER_DESC= ZSNES Debugger >+JMA_DESC= JMA support > >+AO_LIB_DEPENDS= libao.so:audio/libao >+AO_CONFIGURE_ENABLE= libao > DEBUGGER_CONFIGURE_ENABLE= debugger >-JMA_CONFIGURE_ENABLE= jma >-X11_CONFIGURE_WITH= x >+JMA_CONFIGURE_ENABLE= jma > OPENGL_CONFIGURE_ENABLE= opengl >- >-AO_LIB_DEPENDS= libao.so:audio/libao >-AO_CONFIGURE_ENABLE= libao >+X11_CONFIGURE_WITH= x > > post-patch: >- @${REINPLACE_CMD} -e \ >- 's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; \ >- s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \ >- ${WRKSRC}/Makefile.in >- @${REINPLACE_CMD} -i "" -e \ >- 's|-O3||g' ${WRKSRC}/${CONFIGURE_SCRIPT} >+ @${REINPLACE_CMD} -e 's|@CXX@ @CFLAGS@ -o|@CXX@ @CXXFLAGS@ @CPPFLAGS@ -o|g ; s|@CC@ @CFLAGS@ -o|@CC@ @CFLAGS@ @CPPFLAGS@ -o|g' \ >+ ${WRKSRC}/Makefile.in >+ @${REINPLACE_CMD} -i "" \ >+ -e 's|-O3||g' \ >+ ${WRKSRC}/${CONFIGURE_SCRIPT} > @${REINPLACE_CMD} -e 's|size_t argc|int argc|g' \ >- ${WRKSRC}/parsegen.cpp ${WRKSRC}/tools/depbuild.cpp \ >- ${WRKSRC}/tools/extraext.cpp ${WRKSRC}/tools/macroll.cpp \ >- ${WRKSRC}/tools/minwhite.cpp ${WRKSRC}/tools/nreplace.cpp \ >+ ${WRKSRC}/parsegen.cpp \ >+ ${WRKSRC}/tools/depbuild.cpp \ >+ ${WRKSRC}/tools/extraext.cpp \ >+ ${WRKSRC}/tools/macroll.cpp \ >+ ${WRKSRC}/tools/minwhite.cpp \ >+ ${WRKSRC}/tools/nreplace.cpp \ > ${WRKSRC}/tools/varrep.cpp > > do-install: >- ${INSTALL_PROGRAM} ${WRKSRC}/zsnes ${STAGEDIR}${PREFIX}/bin >- ${INSTALL_MAN} ${WRKSRC}/linux/zsnes.1 ${STAGEDIR}${PREFIX}/share/man/man1 >+ ${INSTALL_PROGRAM} ${WRKSRC}/zsnes \ >+ ${STAGEDIR}${PREFIX}/bin >+ ${INSTALL_MAN} ${WRKSRC}/linux/zsnes.1 \ >+ ${STAGEDIR}${PREFIX}/share/man/man1 > > .include <bsd.port.mk> >diff --git a/emulators/zsnes/files/patch-configure b/emulators/zsnes/files/patch-configure >index bfb9a54abebd..e0d94f34a551 100644 >--- a/emulators/zsnes/files/patch-configure >+++ b/emulators/zsnes/files/patch-configure >@@ -1,9 +1,11 @@ >---- configure.orig Thu Jan 25 23:44:43 2007 >-+++ configure Thu Jan 25 23:48:32 2007 >-@@ -5130,89 +5130,6 @@ >+--- configure.orig 2007-01-25 00:51:21 UTC >++++ configure >+@@ -5128,92 +5128,6 @@ else > >- { echo "$as_me:$LINENO: checking which cpu architecture to optimize for" >&5 >- echo $ECHO_N "checking which cpu architecture to optimize for... $ECHO_C" >&6; } >+ CFLAGSBAK="$CFLAGS" >+ >+- { echo "$as_me:$LINENO: checking which cpu architecture to optimize for" >&5 >+-echo $ECHO_N "checking which cpu architecture to optimize for... $ECHO_C" >&6; } > - if test x$force_arch != x; then > - CFLAGS="$CFLAGS -march=$force_arch" > - cat >conftest.$ac_ext <<_ACEOF >@@ -87,6 +89,16 @@ > - CFLAGS="$CFLAGS -march=$ARCH_INFO" > - fi > - fi >- >+- > # Check whether --enable-release was given. > if test "${enable_release+set}" = set; then >+ enableval=$enable_release; release=$enableval >+@@ -5237,7 +5151,7 @@ fi >+ NFLAGS="$NFLAGS -O1" >+ fi >+ fi >+-CXXFLAGS="$CFLAGS -fno-rtti" >++CXXFLAGS="$CXXFLAGS -fno-rtti" >+ >+ if test x$enable_jma != xno; then >+ JMA_FILES="\$(JMA_D)/7zlzma.o \$(JMA_D)/crc32.o \$(JMA_D)/iiostrm.o\
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
Flags:
cyberbotx
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 280195
: 251941 |
252035