From owner-svn-ports-all@FreeBSD.ORG Fri Oct 12 18:37:34 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C289D992; Fri, 12 Oct 2012 18:37:34 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id CD29D8FC0A; Fri, 12 Oct 2012 18:37:32 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id jf20so1656498bkc.13 for ; Fri, 12 Oct 2012 11:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=mp6xAKdebLrqekbJYDmF7S2QH0I68vZYxBy12a0pQpY=; b=rT1/wLDhH0AarBlO7vZFTlcDvQ/vy89R40jRKaymqUoFVLbJUHI4p/yZtGu+XYo+xL muxUpm4+bilwdTorcP/AgTqg7T3jd+WohRLT5qK5lYnNE15dnUoSuY4DluN9OLAj3fWu fgbsPTwVVJbL41wnJFbDFPxLnK/B0HqbN5YokK+HIN3iLAYUf1gqKEzptHFwHdd1zqGA EXR/lT6qRySNQW0b2ZjBJ/a1PsGZAOcuK1xuuoi0O6Y1sS7wYGlV+U9/FfmMaW7PRL9g +bArFgRAlafgnEvseswSlEuaHtMk0IPexSfAzbG/EWEPRnzIy/HC366RI0o6cWCmOfkz WOYw== Received: by 10.204.156.74 with SMTP id v10mr1615573bkw.39.1350067051305; Fri, 12 Oct 2012 11:37:31 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.50.197 with HTTP; Fri, 12 Oct 2012 11:37:01 -0700 (PDT) In-Reply-To: <201210110533.q9B5X4iW065476@svn.freebsd.org> References: <201210110533.q9B5X4iW065476@svn.freebsd.org> From: Chris Rees Date: Fri, 12 Oct 2012 19:37:01 +0100 X-Google-Sender-Auth: zUJfTFv5vnjXt3vo-1Sb-4tE9dI Message-ID: Subject: Re: svn commit: r305698 - in head/games: . smashbattle smashbattle/files To: Jason Helfman Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 12 Oct 2012 18:37:34 -0000 On 11 October 2012 06:33, Jason Helfman wrote: > XXX Ports RC script present > Author: jgh > Date: Thu Oct 11 05:33:04 2012 > New Revision: 305698 > URL: http://svn.freebsd.org/changeset/ports/305698 > > Log: > add new port: games/smashbattle > > Smash Battle is a cross platform, 8-bit style game where two, > three or four player face off against each other. > The game was inspired by the mario battle minigame from mario 3 > when we started developing, but changed a lot over time. > > WWW: http://smashbattle.condor.tv/ > > PR: 167855 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=167855 > Submitted by: nemysis@gmx.ch > Feature safe: yes > > Added: > head/games/smashbattle/ > head/games/smashbattle/Makefile (contents, props changed) > head/games/smashbattle/distinfo (contents, props changed) > head/games/smashbattle/files/ > head/games/smashbattle/files/patch-Makefile (contents, props changed) > head/games/smashbattle/files/smashbattle.in (contents, props changed) > head/games/smashbattle/pkg-descr (contents, props changed) > Modified: > head/games/Makefile > > Modified: head/games/Makefile > ============================================================================== > --- head/games/Makefile Thu Oct 11 01:40:59 2012 (r305697) > +++ head/games/Makefile Thu Oct 11 05:33:04 2012 (r305698) > @@ -847,6 +847,7 @@ > SUBDIR += slashem-tty > SUBDIR += slump > SUBDIR += slune > + SUBDIR += smashbattle > SUBDIR += smiley > SUBDIR += sokoban > SUBDIR += sol > > Added: head/games/smashbattle/Makefile > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/games/smashbattle/Makefile Thu Oct 11 05:33:04 2012 (r305698) > @@ -0,0 +1,54 @@ > +# Created by: nemysis@gmx.ch > +# > +# $FreeBSD$ > + > +PORTNAME= smashbattle > +PORTVERSION= 110224 > +CATEGORIES= games > +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/beta-${PORTVERSION} > +DISTNAME= ${PORTNAME}-${DISTVERSION}-src > + > +MAINTAINER= nemysis@gmx.ch > +COMMENT= 8-bit style platform battle game > + > +WRKSRC= ${WRKDIR}/${DISTNAME}/battle/Battle > + > +USE_ZIP= yes > +EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME} > +USE_GMAKE= yes > +USE_DOS2UNIX= *.cpp *.h *.ini Makefile > +ALL_TARGET= battle > +USE_SDL= sdl image mixer > +MAKE_JOBS_SAFE= yes > + > +pre-extract: > + @${MKDIR} ${WRKDIR}/${DISTNAME} > + > +PLIST_FILES= bin/${PORTNAME} \ > + share/applications/${PORTNAME}.desktop \ > + share/applications/${PORTNAME}fs.desktop \ > + share/pixmaps/${PORTNAME}.png > +PLIST_DIRSTRY= share/applications > + > +PORTDATA= * > + > +SUB_FILES= ${PORTNAME} > + > +.include > + > +post-patch: > + @${REINPLACE_CMD} -e 's|/usr/share/games/smashbattle/gfx/SB.png|${PORTNAME}|' \ > + -e 's|/usr/local/bin/smashbattle|${PORTNAME}|' \ > + ${WRKSRC}/linux/${PORTNAME}.desktop ${WRKSRC}/linux/${PORTNAME}fs.desktop > + > +do-install: > + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin > + ${MKDIR} ${DATADIR} > + ${INSTALL_PROGRAM} ${WRKSRC}/battle ${DATADIR}/${PORTNAME} > + @(cd ${WRKSRC} && ${COPYTREE_SHARE} "gfx music sfx stage" ${DATADIR}) > + ${INSTALL_DATA} ${WRKSRC}/gfx/SB.png ${PREFIX}/share/pixmaps/${PORTNAME}.png > + ${MKDIR} ${PREFIX}/share/applications > + ${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}.desktop ${PREFIX}/share/applications/ > + ${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}fs.desktop ${PREFIX}/share/applications/ > + > +.include > > Added: head/games/smashbattle/distinfo > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/games/smashbattle/distinfo Thu Oct 11 05:33:04 2012 (r305698) > @@ -0,0 +1,2 @@ > +SHA256 (smashbattle-110224-src.zip) = 3856d97bf09e63b203c997190299e0aacfb9f947e9529e634046e7596e1e8ad1 > +SIZE (smashbattle-110224-src.zip) = 12238568 > > Added: head/games/smashbattle/files/patch-Makefile > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/games/smashbattle/files/patch-Makefile Thu Oct 11 05:33:04 2012 (r305698) > @@ -0,0 +1,11 @@ > +--- Makefile.orig 2012-05-11 15:51:06.000000000 +0200 > ++++ Makefile 2012-05-11 16:34:16.000000000 +0200 > +@@ -1,6 +1,6 @@ > + CC=g++ > +-CFLAGS=-c -Wall > +-LDFLAGS=-lSDL -lSDL_mixer -lz -lstdc++ > ++CFLAGS += $(shell sdl-config --cflags) -c -Wall > ++LDFLAGS += $(shell sdl-config --libs) -lSDL -lSDL_mixer -lz -lstdc++ -lm > + SRCS=Airstrike.cpp\ > + AirstrikePowerUp.cpp\ > + AmmoPowerUp.cpp\ > > Added: head/games/smashbattle/files/smashbattle.in > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/games/smashbattle/files/smashbattle.in Thu Oct 11 05:33:04 2012 (r305698) > @@ -0,0 +1,6 @@ > +#!/bin/sh > +# > +# $FreeBSD$ > + > +cd "%%DATADIR%%" > +exec ./smashbattle "${@}" The idiomatic way to do this is ${1+"$@"}. Otherwise with no arguments you end up with "", which is probably not desirable. Chris