Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 08:46:51 +0000 (UTC)
From:      =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547247 - in head/emulators/hugo: . files
Message-ID:  <202009010846.0818kpQi053038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: se
Date: Tue Sep  1 08:46:51 2020
New Revision: 547247
URL: https://svnweb.freebsd.org/changeset/ports/547247

Log:
  Fix build with clang11
  
  Reported by:	pkg-fallout
  Approved by:	antoine (implicit)

Added:
  head/emulators/hugo/files/patch-hard__pce.h   (contents, props changed)
  head/emulators/hugo/files/patch-mix.h   (contents, props changed)
  head/emulators/hugo/files/patch-osd__sdl__gfx.c   (contents, props changed)
  head/emulators/hugo/files/patch-sound.c   (contents, props changed)
Modified:
  head/emulators/hugo/Makefile

Modified: head/emulators/hugo/Makefile
==============================================================================
--- head/emulators/hugo/Makefile	Tue Sep  1 08:41:23 2020	(r547246)
+++ head/emulators/hugo/Makefile	Tue Sep  1 08:46:51 2020	(r547247)
@@ -3,7 +3,7 @@
 
 PORTNAME=	hugo
 PORTVERSION=	2.12
-PORTREVISION=	15
+PORTREVISION=	16
 CATEGORIES=	emulators
 MASTER_SITES=	http://www.zeograd.com/download/ \
 		http://www.sourcefiles.org/Emulators/Videogames/
@@ -38,8 +38,10 @@ IGNORE=	NETPLAY support requires GTK2 support
 .endif
 
 .if ${PORT_OPTIONS:MGTK2}
+LIB_DEPENDS+=	libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2
 USES+=		gnome
-USE_GNOME=	gtk20
+USE_GNOME=	gtk20 cairo gdkpixbuf2
 .else
 CONFIGURE_ARGS+=	--disable-gui --disable-gtktest
 .endif

Added: head/emulators/hugo/files/patch-hard__pce.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/hugo/files/patch-hard__pce.h	Tue Sep  1 08:46:51 2020	(r547247)
@@ -0,0 +1,13 @@
+--- hard_pce.h.orig	2004-05-26 20:54:15 UTC
++++ hard_pce.h
+@@ -64,8 +64,8 @@ void	IO_write (UInt16 A,UChar V);
+ UChar	IO_read  (UInt16 A);
+ void	bank_set (UChar P, UChar V);
+ 
+-void	(*write_memory_function)(UInt16,UChar);
+-UChar	(*read_memory_function)(UInt16);
++extern void	(*write_memory_function)(UInt16,UChar);
++extern UChar	(*read_memory_function)(UInt16);
+ 
+ #define Wr6502(A,V) ((*write_memory_function)((A),(V)))
+ 

Added: head/emulators/hugo/files/patch-mix.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/hugo/files/patch-mix.h	Tue Sep  1 08:46:51 2020	(r547247)
@@ -0,0 +1,11 @@
+--- mix.h.orig	2003-10-14 22:02:58 UTC
++++ mix.h
+@@ -4,7 +4,7 @@
+ #include "pce.h"
+ #include "sound.h"
+ 
+-void (*update_sound[4])();
++extern void (*update_sound[4])();
+ 
+ UInt32 WriteBufferAdpcm8(UChar *buf,
+                        UInt32 begin,

Added: head/emulators/hugo/files/patch-osd__sdl__gfx.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/hugo/files/patch-osd__sdl__gfx.c	Tue Sep  1 08:46:51 2020	(r547247)
@@ -0,0 +1,11 @@
+--- osd_sdl_gfx.c.orig	2005-04-05 19:53:14 UTC
++++ osd_sdl_gfx.c
+@@ -18,7 +18,7 @@ int blit_x,blit_y;
+ int screen_blit_x, screen_blit_y;
+ // where on the screen we must blit XBuf
+ 
+-UChar* XBuf;
++extern UChar* XBuf;
+ // buffer for video flipping
+ 
+ UChar index_to_RGB[256];

Added: head/emulators/hugo/files/patch-sound.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/hugo/files/patch-sound.c	Tue Sep  1 08:46:51 2020	(r547247)
@@ -0,0 +1,11 @@
+--- sound.c.orig	2004-05-26 20:54:16 UTC
++++ sound.c
+@@ -50,7 +50,7 @@ UInt32 CycleNew;
+ // indicates the last time music has been "released"
+ 
+ /* TODO */
+-int BaseClock=7170000;
++extern int BaseClock; // use value set in pce.c
+ // int BaseClock = 8992000;
+ // the freq of the internal PC Engine CPU
+ // the sound use a kind of "relative" frequency



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009010846.0818kpQi053038>