Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2012 21:28:41 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/168177: [NEW PORT] games/asteroids3d: First-person shooter blowing up asteroids in 3D space
Message-ID:  <20120520192844.8A8421065730@hub.freebsd.org>
Resent-Message-ID: <201205201930.q4KJU1Q6038425@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         168177
>Category:       ports
>Synopsis:       [NEW PORT] games/asteroids3d: First-person shooter blowing up asteroids in 3D space
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 19:30:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
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/


Generated and tested manually, tested with port test and with RedPorts (all RELEASES), sent with FreeBSD Port Tools 0.99_6 (mode: new)
>How-To-Repeat:
>Fix:

--- .shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	asteroids3d
#	asteroids3d/Makefile
#	asteroids3d/pkg-descr
#	asteroids3d/distinfo
#	asteroids3d/files
#	asteroids3d/files/patch-src-texture.c
#
echo c - asteroids3d
mkdir -p asteroids3d > /dev/null 2>&1
echo x - asteroids3d/Makefile
sed 's/^X//' >asteroids3d/Makefile << 'f294b1dd90e8aca37c674fffe7e73918'
X# New Ports collection makefile for:	Asteroids3D
X# Date created:		2012-05-20
X# Whom:			nemysis@gmx.ch
X#
X# $FreeBSD$
X#
X
XPORTNAME=	asteroids3d
XPORTVERSION=	0.5.1
XCATEGORIES=	games
XMASTER_SITES=	SF/a3d/${PORTVERSION}/
XDISTNAME=	${PORTNAME:S/3d/3D/}-${DISTVERSION}
X
XMAINTAINER=	nemysis@gmx.ch
XCOMMENT=	First-person shooter blowing up asteroids in 3D space
X
XLICENSE=		GPLv2
X
XWRKSRC=		${WRKDIR}/${PORTNAME:S/3d/3D/}-${PORTVERSION}
X
XUSE_BZIP2=	yes
XUSE_AUTOTOOLS=	aclocal autoheader
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	with_gamesdir="${PREFIX}/bin" with_gamedatadir="${DATADIR}"
XALL_TARGET=
XUSE_GL=		glut glu
XMAKE_JOBS_SAFE=	yes
X
XCFLAGS+=	-I${LOCALBASE}/include
XLDFLAGS+=	-L${LOCALBASE}/lib
X
XPLIST_FILES=	bin/${PORTNAME} \
X		share/pixmaps/${PORTNAME}_128.png \
X		share/pixmaps/${PORTNAME}_48.png
X
XPORTDATA=	*
XPORTDOCS=	README.html
X
Xpre-configure:
X	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh)
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' ${WRKSRC}/autogen.sh
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/3d/3D/} ${PREFIX}/bin/${PORTNAME}
X
X# Pixmaps
X	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps
X
X# Data
X.if !defined(NOPORTDATA)
X	${MKDIR} ${DATADIR}
X	@(cd ${WRKSRC}/src && ${COPYTREE_SHARE}  "*.ub *.ppm" ${DATADIR})
X.endif
X
X# Documentation
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
f294b1dd90e8aca37c674fffe7e73918
echo x - asteroids3d/pkg-descr
sed 's/^X//' >asteroids3d/pkg-descr << 'c19191c75f62df4e20e43036f4e5b4f4'
XA simple first person shooter of blowing up asteroids in 3D space.
XThe codebase also serves as an introduction to trigonometry and OpenGL.
X
XWWW: http://sourceforge.net/projects/a3d/
X     http://staff.psc.edu/smp/a3d/
c19191c75f62df4e20e43036f4e5b4f4
echo x - asteroids3d/distinfo
sed 's/^X//' >asteroids3d/distinfo << 'e5694696bfa1a653af10b0f8be999b3b'
XSHA256 (asteroids3D-0.5.1.tar.bz2) = 68a07541198591c7a010324d870d120932c2dc015981f9197fe2268964a45087
XSIZE (asteroids3D-0.5.1.tar.bz2) = 584201
e5694696bfa1a653af10b0f8be999b3b
echo c - asteroids3d/files
mkdir -p asteroids3d/files > /dev/null 2>&1
echo x - asteroids3d/files/patch-src-texture.c
sed 's/^X//' >asteroids3d/files/patch-src-texture.c << '4e22d718fff06961ce01713ea5351430'
X--- src/texture.c.orig	2008-04-06 16:37:29.000000000 +0200
X+++ src/texture.c	2012-05-20 11:27:24.000000000 +0200
X@@ -99,19 +99,19 @@
X static void average_RGBA_alpha_and_floor(unsigned char *image,
X     int x, int y, int flr)
X {
X-	int ir, ig, ib, ia, i, new_alpha;
X+	int ir, ig, ib, ia, i;
X 
X 	for (i = 0; i < x * y * 4; i += 4) {
X 		ir = image[i];
X 		ig = image[i+1];
X 		ib = image[i+2];
X-		ia = image[i+3];
X+		/* ia = image[i+3]; */
X 
X-		new_alpha = (ir + ig + ib) / 3;
X-		if (new_alpha < flr)
X-			new_alpha = 0;
X+		ia = (ir + ig + ib) / 3;
X+		if (ia < flr)
X+			ia = 0;
X 
X-		image[i+3] = new_alpha;
X+		image[i+3] = ia;
X 	}
X 
X 	return;
4e22d718fff06961ce01713ea5351430
exit
--- .shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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