From 8be024fff9f7ea35709875baf5ad6347997908d3 Mon Sep 17 00:00:00 2001 From: Rusmir Dusko Date: Sun, 29 Dec 2013 13:35:32 +0000 Subject: - 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) --- games/ttt/Makefile | 48 ++++++++++++++++++++---------------------------- games/ttt/distinfo | 2 ++ games/ttt/files/ttt.in | 4 ++-- games/ttt/pkg-plist | 24 ++++++++++++++++++++++++ 4 files changed, 48 insertions(+), 30 deletions(-) create mode 100644 games/ttt/pkg-plist (limited to 'games/ttt') diff --git a/games/ttt/Makefile b/games/ttt/Makefile index 8af048152d38..0865a269fe7a 100644 --- a/games/ttt/Makefile +++ b/games/ttt/Makefile @@ -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@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 +DESKTOP_ENTRIES="Tic-Tac-Toe" "" "${PORTNAME}" \ + "${PORTNAME}" "Game;LogicGame;" "" do-install: -# Scripts - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin - -# 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 + ${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/ + + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include diff --git a/games/ttt/distinfo b/games/ttt/distinfo index 7f8232ec9ef5..e73c45369efd 100644 --- a/games/ttt/distinfo +++ b/games/ttt/distinfo @@ -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 diff --git a/games/ttt/files/ttt.in b/games/ttt/files/ttt.in index 864232e7b98c..efb0bb4bd48c 100644 --- a/games/ttt/files/ttt.in +++ b/games/ttt/files/ttt.in @@ -1,7 +1,7 @@ #!/bin/sh # # $FreeBSD$ +# -echo "Tic Tac Toe: Starting up..." cd "%%DATADIR%%" -./ttt +exec ./ttt "${@}" diff --git a/games/ttt/pkg-plist b/games/ttt/pkg-plist new file mode 100644 index 000000000000..dca794e111b8 --- /dev/null +++ b/games/ttt/pkg-plist @@ -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 +@dirrm %%DATADIR%%/sounds +@dirrm %%DATADIR%%/images +@dirrm %%DATADIR%% -- cgit v1.2.3