From owner-svn-ports-all@freebsd.org Tue Sep 1 08:46:53 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 179D73BE291; Tue, 1 Sep 2020 08:46:53 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bggfh6z5Cz49hJ; Tue, 1 Sep 2020 08:46:52 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D3A8B16A07; Tue, 1 Sep 2020 08:46:52 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0818kqqJ053043; Tue, 1 Sep 2020 08:46:52 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0818kpQi053038; Tue, 1 Sep 2020 08:46:51 GMT (envelope-from se@FreeBSD.org) Message-Id: <202009010846.0818kpQi053038@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: se set sender to se@FreeBSD.org using -f From: =?UTF-8?Q?Stefan_E=c3=9fer?= Date: Tue, 1 Sep 2020 08:46:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547247 - in head/emulators/hugo: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/emulators/hugo: . files X-SVN-Commit-Revision: 547247 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 08:46:53 -0000 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