From owner-svn-ports-all@freebsd.org Sat Sep 26 10:18:34 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 257653FA791; Sat, 26 Sep 2020 10:18:34 +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 4Bz4Vy03ksz4QNL; Sat, 26 Sep 2020 10:18:34 +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 BF0712256F; Sat, 26 Sep 2020 10:18:33 +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 08QAIXTl000367; Sat, 26 Sep 2020 10:18:33 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08QAIXMT000362; Sat, 26 Sep 2020 10:18:33 GMT (envelope-from se@FreeBSD.org) Message-Id: <202009261018.08QAIXMT000362@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 10:18:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550155 - in head/games/netwalk: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/games/netwalk: . files X-SVN-Commit-Revision: 550155 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: Sat, 26 Sep 2020 10:18:34 -0000 Author: se Date: Sat Sep 26 10:18:32 2020 New Revision: 550155 URL: https://svnweb.freebsd.org/changeset/ports/550155 Log: Fix build with -fno-common While here fix complaints from portlint and portclippy Added: head/games/netwalk/files/patch-main.c (contents, props changed) Modified: head/games/netwalk/Makefile head/games/netwalk/files/patch-Makefile Modified: head/games/netwalk/Makefile ============================================================================== --- head/games/netwalk/Makefile Sat Sep 26 10:16:24 2020 (r550154) +++ head/games/netwalk/Makefile Sat Sep 26 10:18:32 2020 (r550155) @@ -3,7 +3,7 @@ PORTNAME= netwalk PORTVERSION= 0.4.11 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= games MAINTAINER= ports@FreeBSD.org @@ -12,26 +12,25 @@ COMMENT= Game where the object is to connect every ter LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/LICENSE +USES= gmake gnome iconv sdl xorg USE_GITHUB= yes GH_ACCOUNT= blynn GH_TAGNAME= cb6b089 - -USES= gmake gnome iconv sdl xorg +INSTALLS_ICONS= yes USE_SDL= sdl ttf USE_XORG= x11 xau xdmcp + MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} ALL_TARGET= +DESKTOP_ENTRIES="NetWalk" "" "${PORTNAME}" "${PORTNAME}" "Game;LogicGame;" "" + PORTDOCS= README OPTIONS_DEFINE= DOCS -INSTALLS_ICONS= yes ICON_SIZES= 32x32 48x48 64x64 96x96 128x128 -DESKTOP_ENTRIES="NetWalk" "" "${PORTNAME}" \ - "${PORTNAME}" "Game;LogicGame;" "" - -post-patch: +pre-build: @${REINPLACE_CMD} -e \ 's|CC = gcc|CC = ${CC}|; \ s|CFLAGS=-Wall -O2 -fomit-frame-pointer|CFLAGS+= -fomit-frame-pointer|; \ Modified: head/games/netwalk/files/patch-Makefile ============================================================================== --- head/games/netwalk/files/patch-Makefile Sat Sep 26 10:16:24 2020 (r550154) +++ head/games/netwalk/files/patch-Makefile Sat Sep 26 10:18:32 2020 (r550155) @@ -1,6 +1,6 @@ ---- ./Makefile.orig 2013-09-24 07:25:27.000000000 +0200 -+++ ./Makefile 2014-05-12 21:10:05.000000000 +0200 -@@ -24,7 +24,7 @@ +--- Makefile.orig 2013-09-24 05:25:27 UTC ++++ Makefile +@@ -24,7 +24,7 @@ sharedir.h : ./Makefile ifeq ("$(OS)", "win32") echo '#define NETWALK_SHARE_DIR "."' > sharedir.h else Added: head/games/netwalk/files/patch-main.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/netwalk/files/patch-main.c Sat Sep 26 10:18:32 2020 (r550155) @@ -0,0 +1,11 @@ +--- main.c.orig 2013-09-24 05:25:27 UTC ++++ main.c +@@ -107,7 +107,7 @@ SDL_Surface *screen; + TTF_Font *font; + int lastmousex, lastmousey; + char *player_name; +-int game_won; ++extern int game_won; + int state; + + struct button_s {