From owner-svn-ports-all@FreeBSD.ORG Wed Jul 18 11:27:01 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 ED222106566B; Wed, 18 Jul 2012 11:27:01 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CE6AF8FC0A; Wed, 18 Jul 2012 11:27:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6IBR1IU065428; Wed, 18 Jul 2012 11:27:01 GMT (envelope-from madpilot@svn.freebsd.org) Received: (from madpilot@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6IBR1fe065422; Wed, 18 Jul 2012 11:27:01 GMT (envelope-from madpilot@svn.freebsd.org) Message-Id: <201207181127.q6IBR1fe065422@svn.freebsd.org> From: Guido Falsi Date: Wed, 18 Jul 2012 11:27:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r301078 - in head/games: . asteroids3d asteroids3d/files X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 18 Jul 2012 11:27:02 -0000 Author: madpilot Date: Wed Jul 18 11:27:01 2012 New Revision: 301078 URL: http://svn.freebsd.org/changeset/ports/301078 Log: A simple first person shooter of blowing up asteroids in 3D space. The codebase also serves as an introduction to trigonometry and OpenGL. WWW: http://sourceforge.net/projects/a3d/ http://staff.psc.edu/smp/a3d/ PR: ports/168177 Submitted by: nemysis@gmx.ch Approved by: tabthorpe (mentor) Added: head/games/asteroids3d/ head/games/asteroids3d/Makefile (contents, props changed) head/games/asteroids3d/distinfo (contents, props changed) head/games/asteroids3d/files/ head/games/asteroids3d/files/patch-src-texture.c (contents, props changed) head/games/asteroids3d/pkg-descr (contents, props changed) Modified: head/games/Makefile Modified: head/games/Makefile ============================================================================== --- head/games/Makefile Wed Jul 18 11:22:26 2012 (r301077) +++ head/games/Makefile Wed Jul 18 11:27:01 2012 (r301078) @@ -48,6 +48,7 @@ SUBDIR += asc SUBDIR += asciiquarium SUBDIR += assaultcube + SUBDIR += asteroids3d SUBDIR += atanks SUBDIR += atitd SUBDIR += atlantikdesigner Added: head/games/asteroids3d/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asteroids3d/Makefile Wed Jul 18 11:27:01 2012 (r301078) @@ -0,0 +1,62 @@ +# New Ports collection makefile for: Asteroids3D +# Date created: 2012-05-20 +# Whom: nemysis@gmx.ch +# +# $FreeBSD$ +# + +PORTNAME= asteroids3d +PORTVERSION= 0.5.1 +CATEGORIES= games +MASTER_SITES= SF/a3d/${PORTVERSION}/ \ + LOCAL/madpilot/asteroids3d/:icons +DISTNAME= ${PORTNAME:S/3d/3D/}-${DISTVERSION} +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + asteroids3d_icons.tbz:icons + +MAINTAINER= nemysis@gmx.ch +COMMENT= First-person shooter blowing up asteroids in 3D space + +LICENSE= GPLv2 + +WRKSRC= ${WRKDIR}/${PORTNAME:S/3d/3D/}-${PORTVERSION} + +USE_BZIP2= yes +USE_AUTOTOOLS= aclocal autoheader +GNU_CONFIGURE= yes +CONFIGURE_ENV= with_gamesdir="${PREFIX}/bin" with_gamedatadir="${DATADIR}" +USE_GL= glut glu +MAKE_JOBS_SAFE= yes + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}_128.png \ + share/pixmaps/${PORTNAME}_48.png + +PORTDATA= * +PORTDOCS= README.html + +pre-configure: + @(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh) + +post-patch: + @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/autogen.sh + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/3d/3D/} ${PREFIX}/bin/${PORTNAME} +# Pixmaps + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps +# Data +.if !defined(NOPORTDATA) + ${MKDIR} ${DATADIR} + @(cd ${WRKSRC}/src && ${COPYTREE_SHARE} "*.ub *.ppm" ${DATADIR}) +.endif +# Documentation +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR} +.endif + +.include Added: head/games/asteroids3d/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asteroids3d/distinfo Wed Jul 18 11:27:01 2012 (r301078) @@ -0,0 +1,4 @@ +SHA256 (asteroids3D-0.5.1.tar.bz2) = 68a07541198591c7a010324d870d120932c2dc015981f9197fe2268964a45087 +SIZE (asteroids3D-0.5.1.tar.bz2) = 584201 +SHA256 (asteroids3d_icons.tbz) = e8ed4bd8119e19b6cb423cd00c9b305490edd0e30600c227786f8cbd5bd442a9 +SIZE (asteroids3d_icons.tbz) = 4023 Added: head/games/asteroids3d/files/patch-src-texture.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asteroids3d/files/patch-src-texture.c Wed Jul 18 11:27:01 2012 (r301078) @@ -0,0 +1,28 @@ +--- src/texture.c.orig 2008-04-06 16:37:29.000000000 +0200 ++++ src/texture.c 2012-05-20 11:27:24.000000000 +0200 +@@ -99,19 +99,19 @@ + static void average_RGBA_alpha_and_floor(unsigned char *image, + int x, int y, int flr) + { +- int ir, ig, ib, ia, i, new_alpha; ++ int ir, ig, ib, ia, i; + + for (i = 0; i < x * y * 4; i += 4) { + ir = image[i]; + ig = image[i+1]; + ib = image[i+2]; +- ia = image[i+3]; ++ /* ia = image[i+3]; */ + +- new_alpha = (ir + ig + ib) / 3; +- if (new_alpha < flr) +- new_alpha = 0; ++ ia = (ir + ig + ib) / 3; ++ if (ia < flr) ++ ia = 0; + +- image[i+3] = new_alpha; ++ image[i+3] = ia; + } + + return; Added: head/games/asteroids3d/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/asteroids3d/pkg-descr Wed Jul 18 11:27:01 2012 (r301078) @@ -0,0 +1,5 @@ +A simple first person shooter of blowing up asteroids in 3D space. +The codebase also serves as an introduction to trigonometry and OpenGL. + +WWW: http://sourceforge.net/projects/a3d/ + http://staff.psc.edu/smp/a3d/