Fix build with clang11
Reported by: pkg-fallout Approved by: antoine (implicit)
This commit is contained in:
parent
e5622822e1
commit
9c2505d033
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547247
@ -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
|
||||
|
13
emulators/hugo/files/patch-hard__pce.h
Normal file
13
emulators/hugo/files/patch-hard__pce.h
Normal file
@ -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)))
|
||||
|
11
emulators/hugo/files/patch-mix.h
Normal file
11
emulators/hugo/files/patch-mix.h
Normal file
@ -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,
|
11
emulators/hugo/files/patch-osd__sdl__gfx.c
Normal file
11
emulators/hugo/files/patch-osd__sdl__gfx.c
Normal file
@ -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];
|
11
emulators/hugo/files/patch-sound.c
Normal file
11
emulators/hugo/files/patch-sound.c
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user