Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2012 02:34:46 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r304014 - head/games/3dpong
Message-ID:  <201209100234.q8A2Yk72077046@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Mon Sep 10 02:34:46 2012
New Revision: 304014
URL: http://svn.freebsd.org/changeset/ports/304014

Log:
  - Add second MASTER_SITES entry
  - Convert to OptionsNG
  - Use PLIST_FILES instead of pkg-plist
  - Give maintainership to submitter
  
  PR:		ports/171261
  Submitted by:	nemysis <nemysis@gmx.ch>

Deleted:
  head/games/3dpong/pkg-plist
Modified:
  head/games/3dpong/Makefile   (contents, props changed)
  head/games/3dpong/distinfo   (contents, props changed)

Modified: head/games/3dpong/Makefile
==============================================================================
--- head/games/3dpong/Makefile	Mon Sep 10 02:03:04 2012	(r304013)
+++ head/games/3dpong/Makefile	Mon Sep 10 02:34:46 2012	(r304014)
@@ -7,12 +7,17 @@
 
 PORTNAME=	3dpong
 PORTVERSION=	0.5
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games
-MASTER_SITES=	ftp://ftp.billsgames.com/unix/x/3dpong/src/
+MASTER_SITES=	ftp://ftp.tuxpaint.org/unix/x/3dpong/src/ \
+		ftp://ftp.billsgames.com/unix/x/3dpong/src/ \
+		http://www.newbreedsoftware.com/images/prodicons/:icons
+DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+		${PORTNAME}.gif:icons
+EXTRACT_ONLY=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	X Window 3D Pong game for 1 or 2 players with a ball and paddles
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	X Window 3D Pong game for 1 or 2 players
 
 LICENSE=	GPLv2
 
@@ -21,19 +26,43 @@ USE_GMAKE=	yes
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
 		XLIB="-L${LOCALBASE}/lib -lX11"
 
+MAN6=		${PORTNAME}.6
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.gif \
+		share/examples/${PORTNAME}/${PORTNAME}-handball.sh \
+		share/examples/${PORTNAME}/${PORTNAME}-vs-computer.sh
+PLIST_DIRS=	share/examples/${PORTNAME}
+
+PORTDATA=	*
+PORTDOCS=	AUTHORS.txt CHANGES.txt README.txt TODO.txt
+
+.include <bsd.port.options.mk>
+
 post-patch:
-	@${REINPLACE_CMD} -e \
-		's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c
+	@${REINPLACE_CMD} -e 's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/3dpong ${PREFIX}/bin
-	@${MKDIR} ${DATADIR}
+# Executable
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+
+# Data
+	${MKDIR} ${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${DATADIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS.txt CHANGES.txt INSTALL.txt README.txt TODO.txt
-	${INSTALL_DATA} ${WRKSRC}/docs/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_MAN} ${WRKSRC}/src/${MAN6} ${MAN1PREFIX}/man/man6
+
+# Pixmaps
+	${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.gif ${PREFIX}/share/pixmaps/
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
+	${MKDIR} ${DOCSDIR}
+.  for f in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
+.  endfor
 .endif
 
+# Examples
+	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+
 .include <bsd.port.mk>

Modified: head/games/3dpong/distinfo
==============================================================================
--- head/games/3dpong/distinfo	Mon Sep 10 02:03:04 2012	(r304013)
+++ head/games/3dpong/distinfo	Mon Sep 10 02:34:46 2012	(r304014)
@@ -1,2 +1,4 @@
 SHA256 (3dpong-0.5.tar.gz) = b1557818319f482c1e0795192f013ecf998c9f1013033b542676d1bf743a6bc5
 SIZE (3dpong-0.5.tar.gz) = 37004
+SHA256 (3dpong.gif) = 52524304fd79bb31740ac59a6ce249cc8461112adca0e4f3ab57ff4ab5623a1f
+SIZE (3dpong.gif) = 321



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