Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2012 16:15:11 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308245 - head/games/asteroids3d
Message-ID:  <201212041615.qB4GFBZm030424@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Tue Dec  4 16:15:11 2012
New Revision: 308245
URL: http://svnweb.freebsd.org/changeset/ports/308245

Log:
  - Switch MASTER_SITES to maintainer's mirror (icons only) [1]
  - Add desktop entry file [1]
  - Add missing deps
  - Move WRKSRC to better place
  - Trim Makefile header
  
  PR:		ports/173272 [1]
  Submitted by:	nemysis <nemysis@gmx.ch> (maintainer) [1]
  Feature safe:	yes

Modified:
  head/games/asteroids3d/Makefile

Modified: head/games/asteroids3d/Makefile
==============================================================================
--- head/games/asteroids3d/Makefile	Tue Dec  4 15:42:35 2012	(r308244)
+++ head/games/asteroids3d/Makefile	Tue Dec  4 16:15:11 2012	(r308245)
@@ -1,16 +1,12 @@
-# New Ports collection makefile for:	Asteroids3D
-# Date created:		2012-05-20
-# Whom:			nemysis@gmx.ch
-#
+# Created by: nemysis@gmx.ch
 # $FreeBSD$
-#
 
 PORTNAME=	asteroids3d
 PORTVERSION=	0.5.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	SF/a3d/${PORTVERSION}/ \
-		LOCAL/madpilot/asteroids3d/:icons
+		SF/nemysisfreebsdp/:icons
 DISTNAME=	${PORTNAME:S/3d/3D/}-${DISTVERSION}
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
 		asteroids3d_icons.tbz:icons
@@ -20,18 +16,23 @@ COMMENT=	First-person shooter blowing up
 
 LICENSE=	GPLv2
 
-WRKSRC=		${WRKDIR}/${PORTNAME:S/3d/3D/}-${PORTVERSION}
+LIB_DEPENDS=	pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
+		drm:${PORTSDIR}/graphics/libdrm \
+		xcb:${PORTSDIR}/x11/libxcb
 
 USE_BZIP2=	yes
 USE_AUTOTOOLS=	aclocal autoheader
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	with_gamesdir="${PREFIX}/bin" with_gamedatadir="${DATADIR}"
+USE_XORG=	x11 xau xdamage xdmcp xext xfixes xi xrandr xrender xxf86vm
 USE_GL=		glut glu
 MAKE_JOBS_SAFE=	yes
 
 CFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
+WRKSRC=		${WRKDIR}/${PORTNAME:S/3d/3D/}-${PORTVERSION}
+
 PLIST_FILES=	bin/${PORTNAME} \
 		share/pixmaps/${PORTNAME}_128.png \
 		share/pixmaps/${PORTNAME}_48.png
@@ -39,6 +40,9 @@ PLIST_FILES=	bin/${PORTNAME} \
 PORTDATA=	*
 PORTDOCS=	README.html
 
+DESKTOP_ENTRIES="Asteroids3D" "${COMMENT}" "${PORTNAME}_48.png" \
+		"${PORTNAME}" "Game;ArcadeGame;" false
+
 pre-configure:
 	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh)
 
@@ -50,17 +54,14 @@ post-patch:
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME:S/3d/3D/} ${PREFIX}/bin/${PORTNAME}
 
-# Data
 	${MKDIR} ${DATADIR}
 	@(cd ${WRKSRC}/src && ${COPYTREE_SHARE}  "*.ub *.ppm" ${DATADIR})
 
-# Pixmaps
 	${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps
 
-# Documentation
 .if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>



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