FreeBSD Bugzilla – Attachment 135573 Details for
Bug 180511
emulators/generator-cbiere: Fix build with clang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 5.01 KB, created by
tkato432
on 2013-07-12 19:10:04 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2013-07-12 19:10:04 UTC
Size:
5.01 KB
patch
obsolete
>diff -urN /usr/ports/emulators/generator-cbiere/Makefile emulators/generator-cbiere/Makefile >--- /usr/ports/emulators/generator-cbiere/Makefile 2013-06-21 03:54:08.000000000 +0900 >+++ emulators/generator-cbiere/Makefile 2013-07-13 00:00:00.000000000 +0900 >@@ -13,23 +13,24 @@ > MAINTAINER= ports@FreeBSD.org > COMMENT= SEGA Genesis emulator > >-LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg >- > LICENSE= GPLv2 > >-USE_BZIP2= yes >-USE_SDL= sdl >-USE_GMAKE= yes >-USE_GNOME= gtk12 >-MAKE_JOBS_UNSAFE= yes >+LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg > >-OPTIONS_DEFINE= OPTIMIZED_CFLAGS RAZE SDL >+OPTIONS_DEFINE= OPTIMIZED_CFLAGS SDL >+OPTIONS_DEFINE_i386= RAZE > RAZE_DESC= Use RAZE z80 emulation (only for i386) > SDL_DESC= Use SDL for audio > >+USE_BZIP2= yes >+USE_GNOME= gtk12 >+USE_SDL= sdl >+USE_GMAKE= yes > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/ > CONFIGURE_ARGS+=--with-gtk >+MAKE_JOBS_UNSAFE= yes >+ > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >@@ -37,13 +38,13 @@ > > LATEST_LINK= ${PORTNAME}${PKGNAMESUFFIX} > >-.include <bsd.port.pre.mk> >+.include <bsd.port.options.mk> > > .if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS) > CONFIGURE_ARGS+= --without-gcc > .endif > >-.if ${PORT_OPTIONS:MRAZE} && ${ARCH} == "i386" >+.if ${PORT_OPTIONS:MRAZE} > BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm > CONFIGURE_ARGS+=--with-raze > .else >@@ -63,4 +64,4 @@ > @${CAT} ${PKGMESSAGE} > @${ECHO_CMD} > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff -urN /usr/ports/emulators/generator-cbiere/files/patch-configure emulators/generator-cbiere/files/patch-configure >--- /usr/ports/emulators/generator-cbiere/files/patch-configure 1970-01-01 09:00:00.000000000 +0900 >+++ emulators/generator-cbiere/files/patch-configure 2013-07-13 00:00:00.000000000 +0900 >@@ -0,0 +1,44 @@ >+--- configure.orig >++++ configure >+@@ -3968,10 +3968,6 @@ >+ #endif >+ #endif >+ >+-int >+-main () >+-{ >+- >+ int main(int argc, char *argv[]) >+ { >+ int fd = 0; >+@@ -3979,9 +3975,6 @@ >+ ioctl(fd, SNDCTL_DSP_SETFRAGMENT, (char *)0); >+ return 0; >+ } >+- ; >+- return 0; >+-} >+ _ACEOF >+ rm -f conftest.$ac_objext conftest$ac_exeext >+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >+@@ -4026,10 +4019,6 @@ >+ #endif >+ #endif >+ >+-int >+-main () >+-{ >+- >+ int main(int argc, char *argv[]) >+ { >+ int fd = 0; >+@@ -4037,9 +4026,6 @@ >+ ioctl(fd, SNDCTL_DSP_SETFRAGMENT, (char *)0); >+ return 0; >+ } >+- ; >+- return 0; >+-} >+ _ACEOF >+ rm -f conftest.$ac_objext conftest$ac_exeext >+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 >diff -urN /usr/ports/emulators/generator-cbiere/files/patch-main__event.c emulators/generator-cbiere/files/patch-main__event.c >--- /usr/ports/emulators/generator-cbiere/files/patch-main__event.c 1970-01-01 09:00:00.000000000 +0900 >+++ emulators/generator-cbiere/files/patch-main__event.c 2013-07-13 00:00:00.000000000 +0900 >@@ -0,0 +1,11 @@ >+--- main/event.c.orig >++++ main/event.c >+@@ -15,7 +15,7 @@ >+ >+ /* time for next event - update vdp_event - return when to call again */ >+ >+-inline void event_nextevent(void) >++static inline void event_nextevent(void) >+ { >+ /* call this when it *is* time for the next event as dictated by vdp_event, >+ so we switch on it and update vdp_event at the same time */ >diff -urN /usr/ports/emulators/generator-cbiere/files/patch-main__vdp.c emulators/generator-cbiere/files/patch-main__vdp.c >--- /usr/ports/emulators/generator-cbiere/files/patch-main__vdp.c 1970-01-01 09:00:00.000000000 +0900 >+++ emulators/generator-cbiere/files/patch-main__vdp.c 2013-07-13 00:00:00.000000000 +0900 >@@ -0,0 +1,20 @@ >+--- main/vdp.c.orig >++++ main/vdp.c >+@@ -87,7 +87,7 @@ void vdp_describe(void); >+ void vdp_eventinit(void); >+ void vdp_layer_simple(unsigned int layer, unsigned int priority, >+ uint8 *fielddata, unsigned int lineoffset); >+-inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, >++static inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, >+ uint8 *cellloc, unsigned int lineoffset); >+ void vdp_sprites(unsigned int line, uint8 *pridata, uint8 *outdata); >+ int vdp_sprite_simple(unsigned int priority, uint8 *framedata, >+@@ -1733,7 +1733,7 @@ void vdp_endfield(void) >+ vdp_event_endline); */ >+ } >+ >+-inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, >++static inline void vdp_plotcell(uint8 *patloc, uint8 palette, uint8 flags, >+ uint8 *cellloc, unsigned int lineoffset) >+ { >+ int y, x; >diff -urN /usr/ports/emulators/generator-cbiere/files/patch-ym2612__support.h emulators/generator-cbiere/files/patch-ym2612__support.h >--- /usr/ports/emulators/generator-cbiere/files/patch-ym2612__support.h 1970-01-01 09:00:00.000000000 +0900 >+++ emulators/generator-cbiere/files/patch-ym2612__support.h 2013-07-13 00:00:00.000000000 +0900 >@@ -0,0 +1,11 @@ >+--- ym2612/support.h.orig >++++ ym2612/support.h >+@@ -3,7 +3,7 @@ >+ #include "config.h" >+ >+ #define errorlog 0 >+-#define INLINE inline >++#define INLINE static inline >+ #define HAS_YM2612 1 >+ #define YM2612UpdateRequest(x) >+ #define AY8910_set_clock(chip,clock)
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 180511
: 135573