svn commit: r337982 - in head/games/ttt: . files
Rusmir Dusko
nemysis at FreeBSD.org
Sun Dec 29 13:35:33 UTC 2013
Author: nemysis
Date: Sun Dec 29 13:35:32 2013
New Revision: 337982
URL: http://svnweb.freebsd.org/changeset/ports/337982
Log:
- Bump PORTREVISION
- Add master sites, change icon
- Add missing USE_AUTOTOOLS items
- Use pkg-plist instead of PLIST_FILES and PORTDATA
- Add DOCS Option
- Support STAGEDIR
- Add Desktop entry file
- Change files/ttt.in
Approved by: pawel / wg (mentors, implicit)
Added:
head/games/ttt/pkg-plist (contents, props changed)
Modified:
head/games/ttt/Makefile
head/games/ttt/distinfo (contents, props changed)
head/games/ttt/files/ttt.in
Modified: head/games/ttt/Makefile
==============================================================================
--- head/games/ttt/Makefile Sun Dec 29 13:31:28 2013 (r337981)
+++ head/games/ttt/Makefile Sun Dec 29 13:35:32 2013 (r337982)
@@ -3,53 +3,45 @@
PORTNAME= ttt
PORTVERSION= 2011.04
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/ttt/ \
- ftp://ftp.billsgames.com/unix/x/ttt/
+ ftp://ftp.billsgames.com/unix/x/ttt/ \
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis at FreeBSD.org
COMMENT= Simple one or two player Tic Tac Toe game
LICENSE= GPLv2
-USE_AUTOTOOLS= aclocal automake autoheader autoconf
+USE_SDL= mixer sdl
+USE_AUTOTOOLS= aclocal automake autoheader autoconf libtoolize
AUTOMAKE_ARGS= --add-missing --force
ALL_TARGET= ${PORTNAME}
-USE_SDL= mixer sdl
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-PLIST_FILES= bin/${PORTNAME} \
- share/pixmaps/${PORTNAME}.bmp
-
-PORTDATA= *
PORTDOCS= README
+OPTIONS_DEFINE= DOCS
+
SUB_FILES= ${PORTNAME}
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="Tic-Tac-Toe" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;LogicGame;" ""
do-install:
-# Scripts
- ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images sounds" ${STAGEDIR}${DATADIR})
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
-# Executable
- ${MKDIR} ${DATADIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR}
-
-# Data
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} "images sounds" ${DATADIR})
-
-# Pixmaps
- ${INSTALL_DATA} ${WRKSRC}/images/program_logo.bmp ${PREFIX}/share/pixmaps/${PORTNAME}.bmp
-
-# Documentation
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/games/ttt/distinfo
==============================================================================
--- head/games/ttt/distinfo Sun Dec 29 13:31:28 2013 (r337981)
+++ head/games/ttt/distinfo Sun Dec 29 13:35:32 2013 (r337982)
@@ -1,2 +1,4 @@
SHA256 (ttt-2011.04.tar.gz) = 747e3ed66e37aae9ceb32599b209d36451e910899cdd36dbf44763e90213b81e
SIZE (ttt-2011.04.tar.gz) = 140666
+SHA256 (ttt.png) = 32dd4cf8a6d03ddbc2fc90709f4567c542c240020af629722cb6f2c1841c12bd
+SIZE (ttt.png) = 2361
Modified: head/games/ttt/files/ttt.in
==============================================================================
--- head/games/ttt/files/ttt.in Sun Dec 29 13:31:28 2013 (r337981)
+++ head/games/ttt/files/ttt.in Sun Dec 29 13:35:32 2013 (r337982)
@@ -1,7 +1,7 @@
#!/bin/sh
#
# $FreeBSD$
+#
-echo "Tic Tac Toe: Starting up..."
cd "%%DATADIR%%"
-./ttt
+exec ./ttt "${@}"
Added: head/games/ttt/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/ttt/pkg-plist Sun Dec 29 13:35:32 2013 (r337982)
@@ -0,0 +1,24 @@
+bin/ttt
+share/pixmaps/ttt.png
+%%DATADIR%%/images/game_board.bmp
+%%DATADIR%%/images/human_vs_computer.bmp
+%%DATADIR%%/images/human_vs_human.bmp
+%%DATADIR%%/images/mark_o.bmp
+%%DATADIR%%/images/mark_x.bmp
+%%DATADIR%%/images/program_logo.bmp
+%%DATADIR%%/images/status_draw.bmp
+%%DATADIR%%/images/status_win_o.bmp
+%%DATADIR%%/images/status_win_x.bmp
+%%DATADIR%%/images/turn_o.bmp
+%%DATADIR%%/images/turn_x.bmp
+%%DATADIR%%/sounds/badspot.wav
+%%DATADIR%%/sounds/draw.wav
+%%DATADIR%%/sounds/intro.wav
+%%DATADIR%%/sounds/o.wav
+%%DATADIR%%/sounds/start.wav
+%%DATADIR%%/sounds/win.wav
+%%DATADIR%%/sounds/x.wav
+%%DATADIR%%/ttt
+ at dirrm %%DATADIR%%/sounds
+ at dirrm %%DATADIR%%/images
+ at dirrm %%DATADIR%%
More information about the svn-ports-all
mailing list