aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-18 07:52:30 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-18 07:52:30 +0800
commit8a86f59e85df0564178057fab50ccf9ea2b0ac97 (patch)
tree555ea64040b41aee8df0beea8db5d881f01adaaf
parent6632afa1f5119eae9230da883975cd525d0b436c (diff)
downloadfreebsd-ports-gnome-8a86f59e85df0564178057fab50ccf9ea2b0ac97.tar.gz
freebsd-ports-gnome-8a86f59e85df0564178057fab50ccf9ea2b0ac97.tar.zst
freebsd-ports-gnome-8a86f59e85df0564178057fab50ccf9ea2b0ac97.zip
- Support staging
-rw-r--r--games/xtron/Makefile26
-rw-r--r--games/xtron/pkg-plist23
2 files changed, 14 insertions, 35 deletions
diff --git a/games/xtron/Makefile b/games/xtron/Makefile
index 2e2dd69993c8..b7ba299dce79 100644
--- a/games/xtron/Makefile
+++ b/games/xtron/Makefile
@@ -13,28 +13,30 @@ COMMENT= Avoid running into walls, your own tail, and that of your opponent
USE_XORG= x11 xpm
+PLIST_FILES= bin/${PORTNAME} lib/X11/app-defaults/Tron
+PORTDOCS= *
+PORTDATA= *
+
DESKTOP_ENTRIES="xtron" \
"Avoid running into walls, your own tail, and that of your opponent" \
"${DATADIR}/Xtron_icon.xpm" \
- "xtron" \
+ "${PORTNAME}" \
"Game;ArcadeGame;" \
false
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/xtronrc
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/xtron ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${DATADIR}/
- ${INSTALL_DATA} ${WRKSRC}/xtronrc ${PREFIX}/lib/X11/app-defaults/Tron
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/pixmaps/* ${STAGEDIR}${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/xtronrc ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/Tron
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/xtron/pkg-plist b/games/xtron/pkg-plist
deleted file mode 100644
index aa97d712e756..000000000000
--- a/games/xtron/pkg-plist
+++ /dev/null
@@ -1,23 +0,0 @@
-bin/xtron
-lib/X11/app-defaults/Tron
-%%PORTDOCS%%share/doc/xtron/CHANGES
-%%PORTDOCS%%share/doc/xtron/README
-share/xtron/Xtron_icon.xpm
-share/xtron/again.xpm
-share/xtron/againr.xpm
-share/xtron/back.xpm
-share/xtron/comprr.xpm
-share/xtron/computer.xpm
-share/xtron/human.xpm
-share/xtron/humanr.xpm
-share/xtron/p1.xpm
-share/xtron/p2.xpm
-share/xtron/p3.xpm
-share/xtron/pause.xpm
-share/xtron/pauser.xpm
-share/xtron/quit.xpm
-share/xtron/quitr.xpm
-share/xtron/score.xpm
-share/xtron/scorer.xpm
-@dirrm share/xtron
-%%PORTDOCS%%@dirrm share/doc/xtron