Date: Thu, 30 Jun 2011 03:03:59 +0900 From: KATO Tsuguru <tkato432@yahoo.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/158456: Update port: games/ttt to 2011.04 Message-ID: <20110630030359.df899c55.tkato432@yahoo.com> Resent-Message-ID: <201106291820.p5TIKAcp098746@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158456 >Category: ports >Synopsis: Update port: games/ttt to 2011.04 >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: Wed Jun 29 18:20:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 7.4-RELEASE-p2 i386 >Organization: >Environment: >Description: - Update to version 2011.04 >How-To-Repeat: >Fix: diff -urN /usr/ports/games/ttt/Makefile games/ttt/Makefile --- /usr/ports/games/ttt/Makefile 2011-02-27 16:38:25.000000000 +0900 +++ games/ttt/Makefile 2011-05-08 22:33:58.000000000 +0900 @@ -6,56 +6,38 @@ # PORTNAME= ttt -PORTVERSION= 2003.03.14 -PORTREVISION= 5 +PORTVERSION= 2011.04 CATEGORIES= games -MASTER_SITES= ftp://ftp.billsgames.com/unix/x/ttt/ +MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/ttt/ MAINTAINER= ports@FreeBSD.org COMMENT= Simple one or two player Tic Tac Toe game -USE_GMAKE= yes -USE_SDL= mixer sdl - -OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on - # net/ttt CONFLICTS= ttt-1* NO_LATEST_LINK= yes -.include <bsd.port.pre.mk> +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + +USE_SDL= sdl +USE_GMAKE= yes +USE_AUTOTOOLS= aclocal automake autoheader autoconf +AUTOMAKE_ARGS= --add-missing --force +CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" +MAKE_JOBS_SAFE= yes + +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib post-patch: -# Fix Makefile. - @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \ - s|\(-Wall\)|${CFLAGS} \1|' \ - ${WRKSRC}/${MAKEFILE} - -# Enable/disable compilation optimizations. -.if defined(WITHOUT_OPTIMIZED_CFLAGS) - @${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/${MAKEFILE} -.endif - -# Fix paths to ${DATADIR}. - @${REINPLACE_CMD} -e 's|\(images/\)|${DATADIR}/\1| ; \ - s|\(sounds/\)|${DATADIR}/\1|' \ - ${WRKSRC}/ttt.c - -do-install: -# Program. - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - -# Data. - ${MKDIR} ${DATADIR} -.for d in images sounds - ${CP} -R ${WRKSRC}/${d} ${DATADIR} -.endfor - -# Fix wrong permissions. - @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR} - @${FIND} ${DATADIR} -type f -print0 | \ - ${XARGS} -0 ${CHMOD} ${SHAREMODE} - @${FIND} ${DATADIR} -type d -print0 | \ - ${XARGS} -0 ${CHMOD} ${BINMODE} + @${REINPLACE_CMD} -e \ + '/SDL_mixer/d' ${WRKSRC}/configure.ac + @${REINPLACE_CMD} -e \ + 's|\./images|${DATADIR}/images|g' ${WRKSRC}/src/init.c + +post-install: + @${MKDIR} ${DATADIR}/images + ${INSTALL_DATA} ${WRKSRC}/images/*.bmp ${DATADIR}/images -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff -urN /usr/ports/games/ttt/distinfo games/ttt/distinfo --- /usr/ports/games/ttt/distinfo 2005-11-26 19:24:27.000000000 +0900 +++ games/ttt/distinfo 2011-05-08 20:51:42.000000000 +0900 @@ -1,3 +1,2 @@ -MD5 (ttt-2003.03.14.tar.gz) = 25c00a720820614e75dd31a593b4aa3e -SHA256 (ttt-2003.03.14.tar.gz) = 26061a321b48b31030cac7d4f2a2c66e0945e5bfb4f6f884fe082b4cb9ebd399 -SIZE (ttt-2003.03.14.tar.gz) = 130205 +SHA256 (ttt-2011.04.tar.gz) = 747e3ed66e37aae9ceb32599b209d36451e910899cdd36dbf44763e90213b81e +SIZE (ttt-2011.04.tar.gz) = 140666 diff -urN /usr/ports/games/ttt/pkg-plist games/ttt/pkg-plist --- /usr/ports/games/ttt/pkg-plist 2005-07-12 22:49:24.000000000 +0900 +++ games/ttt/pkg-plist 2011-05-08 22:30:52.000000000 +0900 @@ -1,22 +1,14 @@ bin/ttt -%%DATADIR%%/images/grid.bmp -%%DATADIR%%/images/o.bmp -%%DATADIR%%/images/start_1ply.bmp -%%DATADIR%%/images/start_2ply.bmp -%%DATADIR%%/images/title.bmp +%%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%%/images/win_draw.bmp -%%DATADIR%%/images/win_o.bmp -%%DATADIR%%/images/win_x.bmp -%%DATADIR%%/images/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 -@dirrm %%DATADIR%%/sounds @dirrm %%DATADIR%%/images @dirrm %%DATADIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110630030359.df899c55.tkato432>