aboutsummaryrefslogtreecommitdiffstats
path: root/games/3dpong/Makefile
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-11-19 04:37:33 +0800
committernemysis <nemysis@FreeBSD.org>2013-11-19 04:37:33 +0800
commit5b3d85ee88ac99b3bf09b1c2e430fb926e3e0f6e (patch)
tree097107d7dc3dbf177dc991001b5af93daa13929e /games/3dpong/Makefile
parent10cdfc4aa7871de3541deb175cd9bb929c10f589 (diff)
downloadfreebsd-ports-gnome-5b3d85ee88ac99b3bf09b1c2e430fb926e3e0f6e.tar.gz
freebsd-ports-gnome-5b3d85ee88ac99b3bf09b1c2e430fb926e3e0f6e.tar.zst
freebsd-ports-gnome-5b3d85ee88ac99b3bf09b1c2e430fb926e3e0f6e.zip
- Change master sites
- Change maintainer email to @FreeBSD.org - USES gmake instead of USE_GMAKE - Add DOCS and EXAMPLES Options - Support STAGEDIR - Use pkg-plist instead of PLIST_FILES and PLIST_DIRS Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'games/3dpong/Makefile')
-rw-r--r--games/3dpong/Makefile38
1 files changed, 12 insertions, 26 deletions
diff --git a/games/3dpong/Makefile b/games/3dpong/Makefile
index ca6f0c437f1c..31d6762b4a1d 100644
--- a/games/3dpong/Makefile
+++ b/games/3dpong/Makefile
@@ -6,58 +6,44 @@ PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/3dpong/src/ \
ftp://ftp.billsgames.com/unix/x/3dpong/src/ \
- SF/nemysisfreebsdp/:icons
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
-MAINTAINER= nemysis@gmx.ch
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= X Window 3D Pong game for 1 or 2 players
LICENSE= GPLv2
+USES= gmake
USE_XORG= x11
-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}.png \
- %%DATADIR%%/hit.au \
- %%DATADIR%%/score.au \
- %%DATADIR%%/wall.au
-PLIST_DIRS= %%DATADIR%%
-
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
PORTEXAMPLES= *
DESKTOP_ENTRIES="3D Pong" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" false
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|cat sounds/|cat ${DATADIR}/|g' ${WRKSRC}/src/3dpong.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/src/${MAN6} ${MAN6PREFIX}/man/man6
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/sounds/*.au ${STAGEDIR}${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/src/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
-.if ${PORT_OPTIONS:MEXAMPLES}
- @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
-.endif
+ @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>