FreeBSD Bugzilla – Attachment 160168 Details for
Bug 202544
[UPDATE]: update games/eduke32 to the newest rev and take maintainership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update to games/eduke32
eduke32.diff (text/plain), 7.78 KB, created by
Piotr Kubaj
on 2015-08-21 09:41:20 UTC
(
hide
)
Description:
update to games/eduke32
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2015-08-21 09:41:20 UTC
Size:
7.78 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 394909) >+++ Makefile (working copy) >@@ -2,27 +2,25 @@ > # $FreeBSD$ > > PORTNAME= eduke32 >-PORTVERSION= 20110627 >-PORTREVISION= 5 >+PORTVERSION= 20150818 > CATEGORIES= games > MASTER_SITES= http://dukeworld.duke4.net/eduke32/synthesis/${PORTVERSION}-${SVNREVISION}/ \ > http://dukeworld.duke4.net/eduke32/synthesis/old/${PORTVERSION}-${SVNREVISION}/ > DISTNAME= ${PORTNAME}_src_${PORTVERSION}-${SVNREVISION} > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= pkubaj@riseup.net > COMMENT= Duke Nukem 3D Port based on JFDuke and EDuke > > LICENSE= GPLv2 >-LICENSE_FILE= ${WRKSRC}/GNU.TXT >+LICENSE_FILE= ${WRKSRC}/source/gpl-2.0.txt > >-USES= execinfo gmake tar:bzip2 >+USES= execinfo gmake tar:xz > USE_GCC= any >-USE_CSTD= gnu89 > USE_GL= gl > USE_GNOME= gtk20 >-USE_SDL= mixer sdl >+USE_SDL= sdl2 mixer2 > WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}-${SVNREVISION} >-SVNREVISION= 1923 >+SVNREVISION= 5334 > > PLIST_FILES= bin/eduke32 bin/mapster32 > PORTDOCS= * >@@ -40,8 +38,11 @@ > TIMIDITY_RUN_DEPENDS= timidity:${PORTSDIR}/audio/timidity > TIMIDITYPLUS_DESC= Use Timidity++ for music support > TIMIDITYPLUS_RUN_DEPENDS= timidity:${PORTSDIR}/audio/timidity++ >-VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis > >+LIB_DEPENDS+= libFLAC.so:${PORTSDIR}/audio/flac >+LIB_DEPENDS+= libogg.so:${PORTSDIR}/audio/libogg >+LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis >+ > .include "${.CURDIR}/../duke3d-data/Makefile.include" > > .include <bsd.port.pre.mk> >@@ -51,36 +52,23 @@ > .endif > > post-patch: >-.if ! ${PORT_OPTIONS:MVORBIS} >- @${REINPLACE_CMD} '/+= -lvorbis/d' ${WRKSRC}/Makefile >-.endif > .if ${ARCH} != "i386" > @${REINPLACE_CMD} '/^NOASM =/s/0/1/' ${WRKSRC}/Makefile.common > .endif > @${REINPLACE_CMD} -e '/^CC=/s/gcc/${CC}/' -e '/^CXX=/s/g++/${CXX}/' \ > ${WRKSRC}/Makefile.common >- @${REINPLACE_CMD} 's/ \$$(ARCH)//' ${WRKSRC}/Makefile \ >- ${WRKSRC}/build/Makefile >- @${REINPLACE_CMD} -Ee '/^ifeq/s/LINUX/BSD/' \ >- -e 's/(\+= -lvorbisfile)/\1 -lexecinfo/' ${WRKSRC}/Makefile >- @${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|' -e 's/ -ldl//' \ >- ${WRKSRC}/build/Makefile >- @${REINPLACE_CMD} -E 's|(SDLCONFIG[[:space:]]*=).*|\1${SDL_CONFIG}|' \ >- ${WRKSRC}/build/Makefile.shared > @${REINPLACE_CMD} 's|/usr/share/games/eduke32|${DN3DDIR}|' \ > ${WRKSRC}/source/game.c ${WRKSRC}/source/astub.c >- @${REINPLACE_CMD} -E 's|(-DHAVE_VORBIS)|-I${LOCALBASE}/include \1|' \ >- ${WRKSRC}/source/jaudiolib/Makefile > > do-install: >-.for f in eduke32 mapster32 >- ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin >-.endfor >+ ${INSTALL_PROGRAM} ${WRKSRC}/eduke32 ${STAGEDIR}${PREFIX}/bin >+ ${INSTALL_PROGRAM} ${WRKSRC}/mapster32 ${STAGEDIR}${PREFIX}/bin > ${MKDIR} ${STAGEDIR}${DOCSDIR} >- ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/samples/*.sample ${STAGEDIR}${DOCSDIR} >+ ${INSTALL_DATA} ${WRKSRC}/package/sdk/samples/*.sample ${STAGEDIR}${DOCSDIR} > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >-. for f in cfg map m32 txt >- ${INSTALL_DATA} ${WRKSRC}/samples/*.${f} ${STAGEDIR}${EXAMPLESDIR} >-. endfor >+ ${INSTALL_DATA} ${WRKSRC}/package/sdk/samples/*.map ${STAGEDIR}${EXAMPLESDIR} >+ ${INSTALL_DATA} ${WRKSRC}/package/sdk/samples/*.m32 ${STAGEDIR}${EXAMPLESDIR} >+ ${INSTALL_DATA} ${WRKSRC}/package/sdk/*.cfg ${STAGEDIR}${EXAMPLESDIR} >+ ${INSTALL_DATA} ${WRKSRC}/package/sdk/samples/*.txt ${STAGEDIR}${EXAMPLESDIR} > > .include <bsd.port.post.mk> >Index: distinfo >=================================================================== >--- distinfo (revision 394909) >+++ distinfo (working copy) >@@ -1,2 +1,2 @@ >-SHA256 (eduke32_src_20110627-1923.tar.bz2) = 6ad33f7acf9cdd26ca49f7813fbe23b888b95fd2f587851c971f860b59185e4a >-SIZE (eduke32_src_20110627-1923.tar.bz2) = 2817419 >+SHA256 (eduke32_src_20150818-5334.tar.xz) = 4d22d5646960f954d2a82fa66941dedb64a6c78d3ced33f925ac161524406908 >+SIZE (eduke32_src_20150818-5334.tar.xz) = 14330976 >Index: files/patch-Makefile.common >=================================================================== >--- files/patch-Makefile.common (revision 0) >+++ files/patch-Makefile.common (working copy) >@@ -0,0 +1,21 @@ >+--- Makefile.common.orig 2015-08-20 23:44:29.198477457 +0200 >++++ Makefile.common 2015-08-20 23:44:51.721473726 +0200 >+@@ -258,7 +258,6 @@ >+ endif >+ endif >+ >+-COMMONFLAGS=$(ARCH) >+ COMPILERFLAGS= >+ >+ ifeq ($(PACKAGE_REPOSITORY),0) >+@@ -278,8 +277,8 @@ >+ OPTIMIZATIONS += $(DEBUGFLAG) >+ endif >+ >+-CONLYFLAGS=-std=gnu99 -Wimplicit -Werror-implicit-function-declaration >+-CPPONLYFLAGS= -fno-exceptions -fno-rtti -Wno-write-strings >++CONLYFLAGS=-std=gnu99 -Wimplicit >++CPPONLYFLAGS= -fno-exceptions -fno-rtti -fpermissive -Wno-write-strings >+ ASFORMAT=elf$(SYSBITS) >+ ASFLAGS=-s -f $(ASFORMAT) #-g >+ LINKERFLAGS= > >Property changes on: files/patch-Makefile.common >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Index: files/patch-build_src_baselayer.c >=================================================================== >--- files/patch-build_src_baselayer.c (revision 0) >+++ files/patch-build_src_baselayer.c (working copy) >@@ -0,0 +1,11 @@ >+--- build/src/baselayer.c.orig 2015-08-20 21:08:44.135119413 +0200 >++++ build/src/baselayer.c 2015-08-20 21:08:10.771123534 +0200 >+@@ -198,7 +198,7 @@ >+ { >+ Baligned_free(ylookup); >+ >+- ylookup = (intptr_t *)Xaligned_alloc(16, lastyidx * sizeof(intptr_t)); >++ posix_memalign(&ylookup, 16, lastyidx * sizeof(intptr_t)); >+ #if !defined(NOASM) && !defined(GEKKO) && !defined(__ANDROID__) >+ nx_unprotect((intptr_t)ylookup, (intptr_t)ylookup + (lastyidx * sizeof(intptr_t))); >+ #endif > >Property changes on: files/patch-build_src_baselayer.c >___________________________________________________________________ >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Index: files/patch-build_src_engine.c >=================================================================== >--- files/patch-build_src_engine.c (revision 0) >+++ files/patch-build_src_engine.c (working copy) >@@ -0,0 +1,30 @@ >+--- build/src/engine.c.orig 2015-08-20 21:04:23.844137433 +0200 >++++ build/src/engine.c 2015-08-20 21:05:16.166132901 +0200 >+@@ -5183,7 +5183,8 @@ >+ static char fn[32], tmpbuf[80]; >+ char purple = getclosestcol(63, 0, 63); >+ char yellow = getclosestcol(63, 63, 0); >+- char *bakframe = (char *)Xaligned_alloc(16, xdim*ydim); >++ char *bakframe; >++ posix_memalign(&bakframe, 16, xdim*ydim); >+ >+ begindrawing(); //{{{ >+ Bmemcpy(bakframe, (char *)frameplace, xdim*ydim); >+@@ -7951,7 +7952,7 @@ >+ EDUKE32_STATIC_ASSERT((uint64_t) MAXXDIM*(DISTRECIPSIZ-1) <= INT32_MAX); >+ >+ if (distrecip == NULL) >+- distrecip = (uint32_t *)Xaligned_alloc(16, DISTRECIPSIZ * sizeof(uint32_t)); >++ posix_memalign(&distrecip, 16, DISTRECIPSIZ * sizeof(uint32_t)); >+ >+ i = 1; >+ >+@@ -11420,7 +11421,7 @@ >+ if (*dynarray[i].ptr) >+ Baligned_free(*dynarray[i].ptr); >+ >+- *dynarray[i].ptr = Xaligned_alloc(16, dynarray[i].size); >++ posix_memalign(dynarray[i].ptr, 16, dynarray[i].size); >+ } >+ >+ ysavecnt = YSAVES; > >Property changes on: files/patch-build_src_engine.c >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 202544
: 160168 |
160169
|
160400
|
160565