Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Nov 2016 15:07:24 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
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
Message-ID:  <201611141507.uAEF7O2o033341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <amdmi3@FreeBSD.org>
+# $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 <bsd.port.mk>

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 <cassert>
+ #include <algorithm>
+ #include <cmath>
++#include <cstdlib>
+ 
+ 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611141507.uAEF7O2o033341>