Bug 180511 - emulators/generator-cbiere: Fix build with clang
Summary: emulators/generator-cbiere: Fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-12 19:10 UTC by tkato432
Modified: 2013-07-15 16:10 UTC (History)
0 users

See Also:


Attachments
file.diff (5.01 KB, patch)
2013-07-12 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-07-12 19:10:04 UTC
- Fix build with clang
- Add MAKE_JOBS_UNSAFE

New file:
files/patch-configure
files/patch-main__event.c
files/patch-main__vdp.c
files/patch-ym2612__support.h
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-12 19:11:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-07-15 16:03:12 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-15 16:03:17 UTC
Author: miwi
Date: Mon Jul 15 15:03:09 2013
New Revision: 323057
URL: http://svnweb.freebsd.org/changeset/ports/323057

Log:
  - Unbreak build with clang
  
  PR:		180511
  Submitted by:	ports fury

Added:
  head/emulators/generator-cbiere/files/
  head/emulators/generator-cbiere/files/patch-configure   (contents, props changed)
  head/emulators/generator-cbiere/files/patch-main__event.c   (contents, props changed)
  head/emulators/generator-cbiere/files/patch-main__vdp.c   (contents, props changed)
  head/emulators/generator-cbiere/files/patch-ym2612__support.h   (contents, props changed)
Modified:
  head/emulators/generator-cbiere/Makefile   (contents, props changed)

Modified: head/emulators/generator-cbiere/Makefile
==============================================================================
--- head/emulators/generator-cbiere/Makefile	Mon Jul 15 14:59:14 2013	(r323056)
+++ head/emulators/generator-cbiere/Makefile	Mon Jul 15 15:03:09 2013	(r323057)
@@ -13,23 +13,24 @@ DISTNAME=	${PORTNAME}-0.35${PKGNAMESUFFI
 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 @@ PLIST_FILES=	bin/${PORTNAME}${PKGNAMESUF
 
 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 @@ post-install:
 	@${CAT} ${PKGMESSAGE}
 	@${ECHO_CMD}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: head/emulators/generator-cbiere/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/generator-cbiere/files/patch-configure	Mon Jul 15 15:03:09 2013	(r323057)
@@ -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

Added: head/emulators/generator-cbiere/files/patch-main__event.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/generator-cbiere/files/patch-main__event.c	Mon Jul 15 15:03:09 2013	(r323057)
@@ -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 */

Added: head/emulators/generator-cbiere/files/patch-main__vdp.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/generator-cbiere/files/patch-main__vdp.c	Mon Jul 15 15:03:09 2013	(r323057)
@@ -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;

Added: head/emulators/generator-cbiere/files/patch-ym2612__support.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/generator-cbiere/files/patch-ym2612__support.h	Mon Jul 15 15:03:09 2013	(r323057)
@@ -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)
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"