6506e45d69
- Update audio/sdl_mixer to version 1.2.11. - Update graphics/sdl_gfx to version 2.0.20. - Update graphics/sdl_image to version 1.2.10. - Bump portrevisions for all ports depending on audio/sdl_mixer and graphics/sdl_image. - Update Mk/bsd.sdl.mk accordingly for the new shared lib versions. PR: ports/142147 ports/142248 ports/142249 Approved by: miwi (mentor implicit)
62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
# New ports collection makefile for: ttt
|
|
# Date created: 11 July 2005
|
|
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ttt
|
|
PORTVERSION= 2003.03.14
|
|
PORTREVISION= 5
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://ftp.billsgames.com/unix/x/ttt/
|
|
|
|
MAINTAINER= alepulver@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>
|
|
|
|
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}
|
|
|
|
.include <bsd.port.post.mk>
|