1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

- Add second MASTER_SITE

- changed LICENSE (GPLv2)
- changed to OptionsNG
- Use PLIST_FILES instead of pkg_plist due to short package list
- Give maintainership to submitter

PR:		ports/170995
Submitted by:	nemysis <nemysis@gmx.ch>
This commit is contained in:
Steve Wills 2012-09-09 22:08:43 +00:00
parent 87de998a14
commit 8e9facf25e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=304004
5 changed files with 53 additions and 38 deletions

View File

@ -7,37 +7,52 @@
PORTNAME= ttt
PORTVERSION= 2011.04
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/ttt/
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/ttt/ \
ftp://ftp.billsgames.com/unix/x/ttt/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= nemysis@gmx.ch
COMMENT= Simple one or two player Tic Tac Toe game
# net/ttt
CONFLICTS= ttt-1*
NO_LATEST_LINK= yes
LICENSE= GPLv2
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
USE_SDL= sdl
USE_GMAKE= yes
USE_AUTOTOOLS= aclocal automake autoheader autoconf
AUTOMAKE_ARGS= --add-missing --force
MAKE_JOBS_SAFE= yes
ALL_TARGET= ${PORTNAME}
USE_SDL= mixer sdl
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e \
'/SDL_mixer/d' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e \
's|\./images|${DATADIR}/images|g' ${WRKSRC}/src/init.c
PLIST_FILES= bin/${PORTNAME} \
share/pixmaps/${PORTNAME}.bmp
post-install:
@${MKDIR} ${DATADIR}/images
${INSTALL_DATA} ${WRKSRC}/images/*.bmp ${DATADIR}/images
PORTDATA= *
PORTDOCS= README
SUB_FILES= ${PORTNAME}
.include <bsd.port.options.mk>
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
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- configure.ac.orig 2011-04-05 05:43:45.000000000 +0200
+++ configure.ac 2012-09-09 04:55:17.000000000 +0200
@@ -44,6 +44,7 @@
AC_PROG_MKDIR_P
AC_PROG_SED
LT_INIT
+AC_SUBST([LIBTOOL_DEPS])
dnl AC_CHECK_LIB([duma], [_duma_malloc] ,,AC_MSG_ERROR(missing library))
AC_CHECK_LIB([SDL], [SDL_Init] ,,AC_MSG_ERROR(missing library))

7
games/ttt/files/ttt.in Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
#
# $FreeBSD$
echo "Tic Tac Toe: Starting up..."
cd "%%DATADIR%%"
./ttt

View File

@ -1,6 +1,3 @@
TTT (Tic-Tac-Toe)
"ttt" is a very simple one - or two - player Tic Tac Toe game played using a
mouse.
ttt is a very simple one- or two-player Tic Tac Toe game played using a mouse.
WWW: http://www.newbreedsoftware.com/ttt/

View File

@ -1,14 +0,0 @@
bin/ttt
%%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
@dirrm %%DATADIR%%/images
@dirrm %%DATADIR%%