ports/83282: New port: games/ttt - Simple one or two player Tic Tac Toe game
Alejandro Pulver
alejandro at varnet.biz
Mon Jul 11 19:00:33 UTC 2005
>Number: 83282
>Category: ports
>Synopsis: New port: games/ttt - Simple one or two player Tic Tac Toe game
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 11 19:00:31 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Alejandro Pulver
>Release: FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD 5.4-RELEASE #0: Sat May 21 12:14:47 ART 2005
root at phobos.mars.bsd:/usr/src/sys/i386/compile/ATHLON-ALE
>Description:
>How-To-Repeat:
>Fix:
--- ttt.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# ttt
# ttt/distinfo
# ttt/Makefile
# ttt/pkg-descr
# ttt/pkg-plist
#
echo c - ttt
mkdir -p ttt > /dev/null 2>&1
echo x - ttt/distinfo
sed 's/^X//' >ttt/distinfo << 'END-of-ttt/distinfo'
XMD5 (ttt-2003.03.14.tar.gz) = 25c00a720820614e75dd31a593b4aa3e
XSIZE (ttt-2003.03.14.tar.gz) = 130205
END-of-ttt/distinfo
echo x - ttt/Makefile
sed 's/^X//' >ttt/Makefile << 'END-of-ttt/Makefile'
X# New ports collection makefile for: ttt
X# Date created: 11 July 2005
X# Whom: Alejandro Pulver <alejandro at varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME= ttt
XPORTVERSION= 2003.03.14
XCATEGORIES= games
XMASTER_SITES= ftp://ftp.billsgames.com/unix/x/ttt/
X
XMAINTAINER= alejandro at varnet.biz
XCOMMENT= Simple one or two player Tic Tac Toe game
X
XUSE_GMAKE= yes
XUSE_SDL= mixer sdl
XUSE_REINPLACE= yes
X
XOPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
X
Xdo-install:
X# Program
X @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X
X# Data
X @${MKDIR} ${DATADIR}
X.for d in images sounds
X @${CP} -R ${WRKSRC}/${d} ${DATADIR}
X.endfor
X
X# Fix wrong permissions
X @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
X @${FIND} ${DATADIR} -type f -print0 | \
X ${XARGS} -0 ${CHMOD} ${SHAREMODE}
X @${FIND} ${DATADIR} -type d -print0 | \
X ${XARGS} -0 ${CHMOD} ${BINMODE}
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X# Fix Makefile
X @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
X s|\(-Wall\)|${CFLAGS} \1|' \
X ${WRKSRC}/${MAKEFILE}
X
X# Enable/disable compilation optimizations
X.if !defined(WITH_OPTIMIZED_CFLAGS)
X @${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/${MAKEFILE}
X.endif
X
X# Fix paths to ${DATADIR}
X @${REINPLACE_CMD} -e 's|\(images/\)|${DATADIR}/\1| ; \
X s|\(sounds/\)|${DATADIR}/\1|' \
X ${WRKSRC}/ttt.c
X
X.include <bsd.port.post.mk>
END-of-ttt/Makefile
echo x - ttt/pkg-descr
sed 's/^X//' >ttt/pkg-descr << 'END-of-ttt/pkg-descr'
XTTT (Tic-Tac-Toe)
X
X"ttt" is a very simple one - or two - player Tic Tac Toe game played using a
Xmouse.
X
XWWW: http://www.newbreedsoftware.com/ttt/
X
X- Alejandro Pulver
Xalejandro at varnet.biz
END-of-ttt/pkg-descr
echo x - ttt/pkg-plist
sed 's/^X//' >ttt/pkg-plist << 'END-of-ttt/pkg-plist'
Xbin/ttt
X%%DATADIR%%/images/grid.bmp
X%%DATADIR%%/images/o.bmp
X%%DATADIR%%/images/start_1ply.bmp
X%%DATADIR%%/images/start_2ply.bmp
X%%DATADIR%%/images/title.bmp
X%%DATADIR%%/images/turn_o.bmp
X%%DATADIR%%/images/turn_x.bmp
X%%DATADIR%%/images/win_draw.bmp
X%%DATADIR%%/images/win_o.bmp
X%%DATADIR%%/images/win_x.bmp
X%%DATADIR%%/images/x.bmp
X%%DATADIR%%/sounds/badspot.wav
X%%DATADIR%%/sounds/draw.wav
X%%DATADIR%%/sounds/intro.wav
X%%DATADIR%%/sounds/o.wav
X%%DATADIR%%/sounds/start.wav
X%%DATADIR%%/sounds/win.wav
X%%DATADIR%%/sounds/x.wav
X at dirrm %%DATADIR%%/sounds
X at dirrm %%DATADIR%%/images
X at dirrm %%DATADIR%%
END-of-ttt/pkg-plist
exit
--- ttt.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list