aboutsummaryrefslogtreecommitdiff
path: root/games/3dpong
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2013-04-28 22:30:41 +0000
committerBeech Rintoul <beech@FreeBSD.org>2013-04-28 22:30:41 +0000
commit40948a5e1058ca35c52bfaa703ee1a654ac4fa07 (patch)
treeaccd970f1acb2878a48338f7cb39b55894e0ae0c /games/3dpong
parent8cbdc4e1f80a5f4cfa98dbe8496167195429b9a9 (diff)
downloadports-40948a5e1058ca35c52bfaa703ee1a654ac4fa07.tar.gz
ports-40948a5e1058ca35c52bfaa703ee1a654ac4fa07.zip
- Changed Icons
- Fix desktop entry - Remove dependency for graphics/netpbm - Fix examples - Makefile tweaks - Bump portrevision PR: ports/177005 Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
Notes
Notes: svn path=/head/; revision=316762
Diffstat (limited to 'games/3dpong')
-rw-r--r--games/3dpong/Makefile30
-rw-r--r--games/3dpong/distinfo4
2 files changed, 15 insertions, 19 deletions
diff --git a/games/3dpong/Makefile b/games/3dpong/Makefile
index 512d0ff48d95..b28b94681611 100644
--- a/games/3dpong/Makefile
+++ b/games/3dpong/Makefile
@@ -2,13 +2,13 @@
PORTNAME= 3dpong
PORTVERSION= 0.5
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= games
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
+ SF/nemysisfreebsdp/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
- ${PORTNAME}.gif:icons
+ ${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
@@ -17,8 +17,6 @@ COMMENT= X Window 3D Pong game for 1 or 2 players
LICENSE= GPLv2
-BUILD_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm
-
USE_XORG= x11
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
@@ -28,39 +26,37 @@ MAN6= ${PORTNAME}.6
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.png \
- share/examples/${PORTNAME}/${PORTNAME}-handball.sh \
- share/examples/${PORTNAME}/${PORTNAME}-vs-computer.sh
-PLIST_DIRS= share/examples/${PORTNAME}
+ %%DATADIR%%/hit.au \
+ %%DATADIR%%/score.au \
+ %%DATADIR%%/wall.au
+PLIST_DIRS= %%DATADIR%%
-PORTDATA= *
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
+PORTEXAMPLES= *
DESKTOP_ENTRIES="3D Pong" "${COMMENT}" "${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+ "${PORTNAME}" "Game;ArcadeGame;" false
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c
-post-build:
- @(cd ${WRKSRC} && \
- ${LOCALBASE}/bin/giftopnm ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}.gif | \
- ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${DATADIR}
${INSTALL_MAN} ${WRKSRC}/src/${MAN6} ${MAN6PREFIX}/man/man6
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
.endif
- @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
+.endif
.include <bsd.port.mk>
diff --git a/games/3dpong/distinfo b/games/3dpong/distinfo
index 8e768a098b28..9cf71c4c3d0d 100644
--- a/games/3dpong/distinfo
+++ b/games/3dpong/distinfo
@@ -1,4 +1,4 @@
SHA256 (3dpong/3dpong-0.5.tar.gz) = b1557818319f482c1e0795192f013ecf998c9f1013033b542676d1bf743a6bc5
SIZE (3dpong/3dpong-0.5.tar.gz) = 37004
-SHA256 (3dpong/3dpong.gif) = 52524304fd79bb31740ac59a6ce249cc8461112adca0e4f3ab57ff4ab5623a1f
-SIZE (3dpong/3dpong.gif) = 321
+SHA256 (3dpong/3dpong.png) = fad29ba55c9d0c3fd3240b8b7add7350de4775a652d52e3bd8e9b4135e23941b
+SIZE (3dpong/3dpong.png) = 270