FreeBSD Bugzilla – Attachment 57272 Details for
Bug 86440
[UPDATE] games/deng: integrate with "doom-data", fix segmentation fault
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
deng.diff
deng.diff (text/plain), 4.67 KB, created by
Alejandro Pulver
on 2005-09-22 01:10:07 UTC
(
hide
)
Description:
deng.diff
Filename:
MIME Type:
Creator:
Alejandro Pulver
Created:
2005-09-22 01:10:07 UTC
Size:
4.67 KB
patch
obsolete
>diff -urN /usr/ports/games/deng/Makefile deng/Makefile >--- /usr/ports/games/deng/Makefile Wed Jul 27 18:15:20 2005 >+++ deng/Makefile Sat Sep 17 20:06:03 2005 >@@ -17,41 +17,32 @@ > LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png > RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity > >+ONLY_FOR_ARCHS= i386 >+ > USE_REINPLACE= yes > REINPLACE_ARGS= -i "" >+USE_GL= yes >+USE_SDL= sdl mixer net >+ > USE_LIBTOOL_VER= 15 > CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} > CONFIGURE_ENV= CFLAGS="${CFLAGS} `${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" \ > CPPFLAGS="`${SDL_CONFIG} --cflags` -I${LOCALBASE}/include -I${X11BASE}/include" >-USE_SDL= sdl mixer net >-USE_GL= yes >+ > INSTALLS_SHLIB= yes >-NOT_FOR_ARCHS= amd64 > >+SUB_FILES= pkg-message > PKGMESSAGE= ${WRKDIR}/pkg-message > >-.if exists(${LOCALBASE}/lib/libopenal.so.0) || defined(WITH_OPENAL) >-WITH_OPENAL= yes >-LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal >-.endif >- >-.if !defined(WITH_OPENAL) >-PLIST_SUB= WITH_OPENAL="@comment " >-.else >-PLIST_SUB= WITH_OPENAL="" >-.endif >+.include "${.CURDIR}/../doom-data/Makefile.include" > > .include <bsd.port.pre.mk> > >-.if ${ARCH} == "ia64" || ${ARCH} == "sparc64" || ${ARCH} == "alpha" >-BROKEN= "Does not build on ia64, sparc64 or alpha" >-.endif >- >-.ifndef (WITH_OPENAL) >-pre-everything:: >- @${ECHO_CMD} "" >- @${ECHO_CMD} "Optionally define WITH_OPENAL=yes to build OpenAL sound plugin" >- @${ECHO_CMD} "" >+.if defined(WITH_OPENAL) || exists(${LOCALBASE}/lib/libopenal.so.0) >+LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal >+PLIST_SUB= OPENAL="" >+.else >+PLIST_SUB= OPENAL="@comment " > .endif > > post-patch: >@@ -64,12 +55,13 @@ > .ifndef (NOPORTDOCS) > @${MKDIR} ${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/Doc/*.txt ${DOCSDIR} >-.for i in jDoom jHeretic jHexen >+. for i in jDoom jHeretic jHexen > @${MKDIR} ${DOCSDIR}/${i} > ${INSTALL_DATA} ${WRKSRC}/Doc/${i}/*.txt ${DOCSDIR}/${i} >-.endfor >+. endfor > .endif >- @(${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%DOCSDIR%%|${DOCSDIR}|' \ >- <pkg-message >${PKGMESSAGE} && ${CAT} ${PKGMESSAGE}) >+ @${ECHO_CMD} >+ @${CAT} ${PKGMESSAGE} >+ @${ECHO_CMD} > > .include <bsd.port.post.mk> >diff -urN /usr/ports/games/deng/files/patch-Src_dd__pinit.c deng/files/patch-Src_dd__pinit.c >--- /usr/ports/games/deng/files/patch-Src_dd__pinit.c Wed Dec 31 21:00:00 1969 >+++ deng/files/patch-Src_dd__pinit.c Wed Sep 21 16:58:01 2005 >@@ -0,0 +1,10 @@ >+--- Src/dd_pinit.c.orig Sun Jun 20 13:25:49 2004 >++++ Src/dd_pinit.c Wed Sep 21 16:57:42 2005 >+@@ -227,7 +227,6 @@ >+ FH_Clear(); >+ ArgShutdown(); >+ free(mainzone); >+- DD_ShutdownDGL(); >+ >+ // Close the message output file. >+ fclose(outFile); >diff -urN /usr/ports/games/deng/files/pkg-message.in deng/files/pkg-message.in >--- /usr/ports/games/deng/files/pkg-message.in Wed Dec 31 21:00:00 1969 >+++ deng/files/pkg-message.in Wed Sep 21 17:51:01 2005 >@@ -0,0 +1,22 @@ >+============================================================================== >+ >+Now you can start playing Doomsday! >+ >+All three games Doom, Heretic and Hexen could be launched with one executable. >+ >+A quick start command could be: >+ >+ %%PREFIX%%/bin/doomsday -g ${game} -f ${path_to_game_wad} >+ >+where >+ >+ game - could be jdoom, jheretic or jhexen; >+ path_to_game_wad - path to game main wad file. >+ >+Check documentation in %%DOCSDIR%% for other options. >+ >+NOTE: when you run Doomsday it will create about 7 files/dirs in the current >+directory (including temporary files, configuration, etc.) so it's preferable >+to run it in a separate directory. >+ >+============================================================================== >diff -urN /usr/ports/games/deng/pkg-message deng/pkg-message >--- /usr/ports/games/deng/pkg-message Fri Aug 27 12:18:35 2004 >+++ deng/pkg-message Wed Dec 31 21:00:00 1969 >@@ -1,10 +0,0 @@ >-****************************************************************************** >-Now you can start playing Doomsday! >-All three games Doom, Heretic and Hexen could be launched with one executable. >-A quick start command could be: >- %%PREFIX%%/bin/doomsday -g ${game} -f ${path_to_game_wad} >-where >- game - could be jdoom, jheretic or jhexen; >- path_to_game_wad - path to game main wad file. >-Check documentation in %%DOCSDIR%% for other options. >-****************************************************************************** >diff -urN /usr/ports/games/deng/pkg-plist deng/pkg-plist >--- /usr/ports/games/deng/pkg-plist Fri Sep 24 17:10:31 2004 >+++ deng/pkg-plist Sat Sep 17 19:54:09 2005 >@@ -7,8 +7,8 @@ > lib/libdpmapload.so.0 > lib/libdropengl.so > lib/libdropengl.so.0 >-%%WITH_OPENAL%%lib/libdsopenal.so >-%%WITH_OPENAL%%lib/libdsopenal.so.0 >+%%OPENAL%%lib/libdsopenal.so >+%%OPENAL%%lib/libdsopenal.so.0 > lib/libdssdlmixer.so > lib/libdssdlmixer.so.0 > lib/libjdoom.so
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 86440
: 57272