From owner-svn-ports-all@freebsd.org Mon Nov 14 15:07:26 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7FF2EC4125F; Mon, 14 Nov 2016 15:07:26 +0000 (UTC) (envelope-from amdmi3@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 mx1.freebsd.org (Postfix) with ESMTPS id 5A5871E10; Mon, 14 Nov 2016 15:07:26 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uAEF7PAO033350; Mon, 14 Nov 2016 15:07:25 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uAEF7O2o033341; Mon, 14 Nov 2016 15:07:24 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201611141507.uAEF7O2o033341@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 14 Nov 2016 15:07:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426109 - in head/games: . brumbrumrally brumbrumrally/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-all@freebsd.org X-Mailman-Version: 2.1.23 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: Mon, 14 Nov 2016 15:07:26 -0000 Author: amdmi3 Date: Mon Nov 14 15:07:24 2016 New Revision: 426109 URL: https://svnweb.freebsd.org/changeset/ports/426109 Log: - Add games/brumbrumrally Brum Brum Rally is a 2D racing game with a new track each time you play and support for up to 8 players. The cars can be controlled using keyboard, mouse or game controllers. The tracks are autogenerated on the fly which means you never have to be bored playing the same tracks over and over again. There are three game modes to choose from: - Single Race and Tournament can be played against the computer or with other human players, on the same computer or over the network (LAN or Internet). - The Time Trial mode on the other hand is played by one player at a time. The task is to finish the race as fast as possible in order to beat your own best time or end up on the overall top list. WWW: http://dataapa.net/brumbrumrally/ Added: head/games/brumbrumrally/ head/games/brumbrumrally/Makefile (contents, props changed) head/games/brumbrumrally/distinfo (contents, props changed) head/games/brumbrumrally/files/ head/games/brumbrumrally/files/patch-Makefile (contents, props changed) head/games/brumbrumrally/files/patch-src_Menu.cpp (contents, props changed) head/games/brumbrumrally/files/patch-src_hqx_common.h (contents, props changed) head/games/brumbrumrally/pkg-descr (contents, props changed) head/games/brumbrumrally/pkg-plist (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Mon Nov 14 14:54:13 2016 (r426108) +++ head/games/Makefile Mon Nov 14 15:07:24 2016 (r426109) @@ -106,6 +106,7 @@ SUBDIR += brickshooter SUBDIR += brikx SUBDIR += briquolo + SUBDIR += brumbrumrally SUBDIR += brutalchess SUBDIR += bs SUBDIR += bsdgames Added: head/games/brumbrumrally/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/Makefile Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,33 @@ +# Created by: Dmitry Marakasov +# $FreeBSD$ + +PORTNAME= brumbrumrally +PORTVERSION= 0.6 +CATEGORIES= games +MASTER_SITES= http://dataapa.net/brumbrumrally/files/ + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Tacing game with randomized tracks + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= dos2unix gmake +DOS2UNIX_FILES= src/hqx/common.h +USE_SDL= sdl image net + +PORTDOCS= NEWS README +PORTDATA= * + +OPTIONS_DEFINE= DOCS + +post-build: + @${STRIP_CMD} ${WRKSRC}/${PORTNAME} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ +.endfor + +.include Added: head/games/brumbrumrally/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/distinfo Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,3 @@ +TIMESTAMP = 1478621231 +SHA256 (brumbrumrally-0.6.tar.gz) = 1315e9c5af96d45f413e5c6f0ceec51dc7104ec6d766e3f676c0b7e8952bbe7d +SIZE (brumbrumrally-0.6.tar.gz) = 150193 Added: head/games/brumbrumrally/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/files/patch-Makefile Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,23 @@ +--- Makefile.orig 2016-03-23 12:05:46 UTC ++++ Makefile +@@ -1,17 +1,14 @@ + OBJS := $(patsubst %.cpp,%.o,$(wildcard src/*.cpp src/hqx/*.cpp)) + +-DESTDIR = +-PREFIX = /usr/local ++PREFIX ?= /usr/local + DATADIR = $(PREFIX)/share + BINDIR = $(PREFIX)/bin + ICONDIR = $(DATADIR)/pixmaps + APPDIR = $(DATADIR)/applications + +-CXX = g++ ++CXX ?= g++ + +-CXXFLAGS = -Wall -std=c++98 -pedantic `sdl-config --cflags` -pipe +-all : CXXFLAGS += -O2 -s -DNDEBUG -fno-threadsafe-statics -march=native -fomit-frame-pointer -ffast-math -fno-exceptions -fno-rtti +-debug : CXXFLAGS += -O0 -g ++CXXFLAGS += -Wall -std=c++98 -pedantic `sdl-config --cflags` + + LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_net + Added: head/games/brumbrumrally/files/patch-src_Menu.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/files/patch-src_Menu.cpp Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,10 @@ +--- src/Menu.cpp.orig 2016-03-23 11:34:58 UTC ++++ src/Menu.cpp +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + Menu::Menu() + : selectedItem(0), Added: head/games/brumbrumrally/files/patch-src_hqx_common.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/files/patch-src_hqx_common.h Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,15 @@ +--- src/hqx/common.h.orig 2014-10-03 16:27:22 UTC ++++ src/hqx/common.h +@@ -50,9 +50,9 @@ static inline uint32_t rgb_to_yuv(uint32 + + /* Test if there is difference in color */ + static inline int yuv_diff(uint32_t yuv1, uint32_t yuv2) { +- return (( abs((yuv1 & Ymask) - (yuv2 & Ymask)) > trY ) || +- ( abs((yuv1 & Umask) - (yuv2 & Umask)) > trU ) || +- ( abs((yuv1 & Vmask) - (yuv2 & Vmask)) > trV ) ); ++ return (( abs((int)(yuv1 & Ymask) - (int)(yuv2 & Ymask)) > trY ) || ++ ( abs((int)(yuv1 & Umask) - (int)(yuv2 & Umask)) > trU ) || ++ ( abs((int)(yuv1 & Vmask) - (int)(yuv2 & Vmask)) > trV ) ); + } + + static inline int Diff(uint32_t c1, uint32_t c2) Added: head/games/brumbrumrally/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/pkg-descr Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,18 @@ +Brum Brum Rally is a 2D racing game with a new track each time you +play and support for up to 8 players. + +The cars can be controlled using keyboard, mouse or game controllers. +The tracks are autogenerated on the fly which means you never have +to be bored playing the same tracks over and over again. + +There are three game modes to choose from: + +- Single Race and Tournament can be played against the computer or + with other human players, on the same computer or over the network + (LAN or Internet). + +- The Time Trial mode on the other hand is played by one player at + a time. The task is to finish the race as fast as possible in order + to beat your own best time or end up on the overall top list. + +WWW: http://dataapa.net/brumbrumrally/ Added: head/games/brumbrumrally/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/brumbrumrally/pkg-plist Mon Nov 14 15:07:24 2016 (r426109) @@ -0,0 +1,3 @@ +bin/brumbrumrally +share/applications/brumbrumrally.desktop +share/pixmaps/brumbrumrally.png