From owner-svn-ports-head@freebsd.org Sat Sep 26 11:38:15 2020 Return-Path: Delivered-To: svn-ports-head@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 E86C23FBCE7; Sat, 26 Sep 2020 11:38:15 +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 4Bz6Gv5yFQz4VC2; Sat, 26 Sep 2020 11:38:15 +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 AF5F0230EA; Sat, 26 Sep 2020 11:38:15 +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 08QBcF1V051266; Sat, 26 Sep 2020 11:38:15 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08QBcEUN051259; Sat, 26 Sep 2020 11:38:14 GMT (envelope-from se@FreeBSD.org) Message-Id: <202009261138.08QBcEUN051259@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: Sat, 26 Sep 2020 11:38:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550169 - in head/games/opentyrian: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/games/opentyrian: . files X-SVN-Commit-Revision: 550169 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2020 11:38:16 -0000 Author: se Date: Sat Sep 26 11:38:14 2020 New Revision: 550169 URL: https://svnweb.freebsd.org/changeset/ports/550169 Log: Fix build with -fno-common While here address some complaints by portlint and portclippy Added: head/games/opentyrian/files/patch-src_opl.c (contents, props changed) head/games/opentyrian/files/patch-src_opl.h (contents, props changed) Modified: head/games/opentyrian/Makefile head/games/opentyrian/files/patch-Makefile Modified: head/games/opentyrian/Makefile ============================================================================== --- head/games/opentyrian/Makefile Sat Sep 26 11:29:06 2020 (r550168) +++ head/games/opentyrian/Makefile Sat Sep 26 11:38:14 2020 (r550169) @@ -3,7 +3,7 @@ PORTNAME= opentyrian PORTVERSION= 2.1.20130907 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= https://bitbucket.org/opentyrian/opentyrian/get/ \ http://mirror.amdmi3.ru/distfiles/${DIST_SUBDIR}/ @@ -16,15 +16,16 @@ COMMENT= Arcade-style vertical scrolling shooter LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-77a8715634e3 - USES= gmake sdl tar:bzip2 -MAKE_ENV= ALL_CFLAGS="${CFLAGS}" USE_SDL= sdl -SUB_FILES= pkg-message -DATADIR= ${PREFIX}/share/tyrian +MAKE_ENV= ALL_CFLAGS="${CFLAGS}" + +DATADIR= ${PREFIX}/share/tyrian PORTSCOUT= skipv:11402-phase-0.8 +SUB_FILES= pkg-message + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-77a8715634e3 PORTDOCS= CREDITS NEWS README Modified: head/games/opentyrian/files/patch-Makefile ============================================================================== --- head/games/opentyrian/files/patch-Makefile Sat Sep 26 11:29:06 2020 (r550168) +++ head/games/opentyrian/files/patch-Makefile Sat Sep 26 11:38:14 2020 (r550169) @@ -9,7 +9,7 @@ ############################################################ STRIP := strip -@@ -21,21 +19,11 @@ OBJS := $(SRCS:src/%.c=obj/%.o) +@@ -21,19 +19,9 @@ OBJS := $(SRCS:src/%.c=obj/%.o) # FLAGS #################################################### @@ -21,13 +21,11 @@ EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers ifeq ($(WITH_NETWORK), true) EXTRA_CFLAGS += -DWITH_NETWORK - endif - +-endif +- -HG_REV := $(shell hg id -ib && touch src/hg_revision.h) -ifneq ($(HG_REV), ) - EXTRA_CFLAGS += '-DHG_REV="$(HG_REV)"' --endif -- - EXTRA_LDLIBS += -lm + endif - SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags) + EXTRA_LDLIBS += -lm Added: head/games/opentyrian/files/patch-src_opl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/opentyrian/files/patch-src_opl.c Sat Sep 26 11:38:14 2020 (r550169) @@ -0,0 +1,32 @@ +--- src/opl.c.orig 2013-09-07 23:56:16 UTC ++++ src/opl.c +@@ -145,6 +145,29 @@ static fltype decrelconst[4] = { + (fltype)(1/22.44608) + }; + ++// per-chip variables ++Bitu chip_num; ++op_type op[MAXOPERATORS]; ++ ++Bits int_samplerate; ++ ++Bit8u status; ++Bit32u opl_index; ++#if defined(OPLTYPE_IS_OPL3) ++Bit8u adlibreg[512]; // adlib register set (including second set) ++Bit8u wave_sel[44]; // waveform selection ++#else ++Bit8u adlibreg[256]; // adlib register set ++Bit8u wave_sel[22]; // waveform selection ++#endif ++ ++ ++// vibrato/tremolo increment/counter ++Bit32u vibtab_pos; ++Bit32u vibtab_add; ++Bit32u tremtab_pos; ++Bit32u tremtab_add; ++ + + void operator_advance(op_type* op_pt, Bit32s vib) { + op_pt->wfpos = op_pt->tcount; // waveform position Added: head/games/opentyrian/files/patch-src_opl.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/opentyrian/files/patch-src_opl.h Sat Sep 26 11:38:14 2020 (r550169) @@ -0,0 +1,43 @@ +--- src/opl.h.orig 2013-09-07 23:56:16 UTC ++++ src/opl.h +@@ -149,27 +149,27 @@ typedef struct operator_struct { + } op_type; + + // per-chip variables +-Bitu chip_num; +-op_type op[MAXOPERATORS]; ++extern Bitu chip_num; ++extern op_type op[MAXOPERATORS]; + +-Bits int_samplerate; ++extern Bits int_samplerate; + +-Bit8u status; +-Bit32u opl_index; ++extern Bit8u status; ++extern Bit32u opl_index; + #if defined(OPLTYPE_IS_OPL3) +-Bit8u adlibreg[512]; // adlib register set (including second set) +-Bit8u wave_sel[44]; // waveform selection ++extern Bit8u adlibreg[512]; // adlib register set (including second set) ++extern Bit8u wave_sel[44]; // waveform selection + #else +-Bit8u adlibreg[256]; // adlib register set +-Bit8u wave_sel[22]; // waveform selection ++extern Bit8u adlibreg[256]; // adlib register set ++extern Bit8u wave_sel[22]; // waveform selection + #endif + + + // vibrato/tremolo increment/counter +-Bit32u vibtab_pos; +-Bit32u vibtab_add; +-Bit32u tremtab_pos; +-Bit32u tremtab_add; ++extern Bit32u vibtab_pos; ++extern Bit32u vibtab_add; ++extern Bit32u tremtab_pos; ++extern Bit32u tremtab_add; + + + // enable an operator