From owner-svn-ports-head@FreeBSD.ORG Sun Mar 30 16:17:04 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B06E3C71; Sun, 30 Mar 2014 16:17:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BD5AE1F; Sun, 30 Mar 2014 16:17:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2UGH4sB057920; Sun, 30 Mar 2014 16:17:04 GMT (envelope-from dinoex@svn.freebsd.org) Received: (from dinoex@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2UGH3R7057916; Sun, 30 Mar 2014 16:17:03 GMT (envelope-from dinoex@svn.freebsd.org) Message-Id: <201403301617.s2UGH3R7057916@svn.freebsd.org> From: Dirk Meyer Date: Sun, 30 Mar 2014 16:17:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349645 - in head/games/xboing: . files X-SVN-Group: ports-head 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.17 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: Sun, 30 Mar 2014 16:17:04 -0000 Author: dinoex Date: Sun Mar 30 16:17:03 2014 New Revision: 349645 URL: http://svnweb.freebsd.org/changeset/ports/349645 QAT: https://qat.redports.org/buildarchive/r349645/ Log: - make -usedefcmap and sound default now desktops do not need to pass this arguments Obtained from: OpenBSD Added: head/games/xboing/files/patch-init.c (contents, props changed) head/games/xboing/files/patch-xboing.man (contents, props changed) Modified: head/games/xboing/Makefile head/games/xboing/files/patch-debian Modified: head/games/xboing/Makefile ============================================================================== --- head/games/xboing/Makefile Sun Mar 30 16:11:58 2014 (r349644) +++ head/games/xboing/Makefile Sun Mar 30 16:17:03 2014 (r349645) @@ -3,7 +3,7 @@ PORTNAME= xboing PORTVERSION= 2.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_XCONTRIB} MASTER_SITE_SUBDIR= games Modified: head/games/xboing/files/patch-debian ============================================================================== --- head/games/xboing/files/patch-debian Sun Mar 30 16:11:58 2014 (r349644) +++ head/games/xboing/files/patch-debian Sun Mar 30 16:17:03 2014 (r349645) @@ -120,17 +120,6 @@ else strcpy(filename, HIGH_SCORE_FILE); ---- init.c -+++ init.c -@@ -438,7 +438,7 @@ - WarningMessage("Your X Window system display variable is not set."); - else - { -- sprintf(string, "Cannot connect to display called <%s>.", displayName); -+ snprintf(string, sizeof(string) - 1, "Cannot connect to display called <%s>.", displayName); - WarningMessage(string); - } - } --- misc.c +++ misc.c @@ -427,7 +431,7 @@ Added: head/games/xboing/files/patch-init.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xboing/files/patch-init.c Sun Mar 30 16:17:03 2014 (r349645) @@ -0,0 +1,82 @@ +--- init.c.orig 1996-11-22 02:28:46.000000000 +0100 ++++ init.c 2014-03-30 18:05:40.000000000 +0200 +@@ -438,7 +438,7 @@ + WarningMessage("Your X Window system display variable is not set."); + else + { +- sprintf(string, "Cannot connect to display called <%s>.", displayName); ++ snprintf(string, sizeof(string), "Cannot connect to display called <%s>.", displayName); + WarningMessage(string); + } + } +@@ -471,10 +471,10 @@ + "Usage: XBoing [-version] [-usage] [-help] [-sync] ", + "[-display ]\n"); + fprintf(stdout, "%s%s\n%s%s\n%s\n", +- " [-speed <1-9>] [-scores] [-keys] [-sound] [-setup]", ++ " [-speed <1-9>] [-scores] [-keys] [-no-sound] [-setup]", + " [-nosfx]", + " [-grab] [-maxvol <1-100>] [-startlevel <1-MAX>]", +- " [-usedefcmap]", ++ " [-no-usedefcmap]", + " [-nickname ] [-noicon]"); + + /* Exit now */ +@@ -548,10 +548,11 @@ + " -scores - Print out the current highscores.\n", + " -keys - Use keys instead of mouse control.\n", + " -sound - Turn audio ON for game.\n", ++ " -no-sound - Turn audio OFF for game.\n", + " -setup - Print setup information.\n", + " -nosfx - Do not use some special effects.\n", + " -grab - Turn ON pointer grab.\n", +- " -usedefcmap - Use the default colourmap.\n", ++ " -no-usedefcmap - Don't use the default colourmap.\n", + " -nickname - Use nickname instead of real name.\n", + " -noicon - Do not create a custom icon.\n", + " -display - Set the display for the game.\n"); +@@ -599,13 +600,13 @@ + syncOn = False; + debug = False; + grabPointer = False; +- useDefaultColourmap = False; ++ useDefaultColourmap = True; + + /* This will force the use of the users real name */ + SetNickName(""); + +- /* The audio is off by default */ +- noSound = True; ++ /* The audio is on by default */ ++ noSound = False; + noicon = False; + + /* So the audio code will use system default */ +@@ -687,6 +688,13 @@ + /* Print out the version information and quit */ + PrintVersion(); + ++ } else if (!compareArgument(argv[i], "-no-sound", 8)) ++ { ++ /* Enable the sound in the game */ ++ noSound = True; ++ ++ DEBUG("Sound turned off.") ++ + } else if (!compareArgument(argv[i], "-sound", 5)) + { + /* Enable the sound in the game */ +@@ -751,6 +759,13 @@ + + DEBUG("Using default colourmap please.") + ++ } else if (!compareArgument(argv[i], "-no-usedefcmap", 13)) ++ { ++ /* Try to use the default colourmap */ ++ useDefaultColourmap = False; ++ ++ DEBUG("Not using default colourmap.") ++ + } else if (!compareArgument(argv[i], "-speed", 5)) + { + /* Set the speed for the game */ Added: head/games/xboing/files/patch-xboing.man ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xboing/files/patch-xboing.man Sun Mar 30 16:17:03 2014 (r349645) @@ -0,0 +1,29 @@ +--- xboing.man.orig 1996-11-22 02:28:46.000000000 +0100 ++++ xboing.man 2014-03-30 18:01:26.000000000 +0200 +@@ -45,7 +45,7 @@ + xboing \- An X Window System based blockout clone. V2.4 + .SH SYNOPSIS + .B xboing +-[-version] [-usage] [-help] [-sync] [-display ] [-speed <1-10>] [-scores] [-keys] [-sound] [-setup] [-nosfx] [-grab] [-maxvol <1-100>] [-startlevel <1-MAXLEVELS>] [-usedefcmap] [-nickname ] [-noicon] ++[-version] [-usage] [-help] [-sync] [-display ] [-speed <1-10>] [-scores] [-keys] [-no-sound] [-setup] [-nosfx] [-grab] [-maxvol <1-100>] [-startlevel <1-MAXLEVELS>] [-no-usedefcmap] [-nickname ] [-noicon] + .IP + -speed - The game speed, 1 - 9. 9=Fast + .br +@@ -67,6 +67,8 @@ + .br + -sound - Turn audio ON for game + .br ++-no-sound - Turn audio OFF for game ++.br + -setup - Print setup information + .br + -nosfx - Turn off special effects +@@ -75,6 +77,8 @@ + .br + -usedefcmap - Use the default colourmap + .br ++-no-usedefcmap - Do not use the default colourmap ++.br + -nickname - Use nickname instead of real one + .br + -noicon - Do not create a custom icon