1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/games/ttt/Makefile
Stanislav Sedov 0d2725682b - Update devel/sdl12 to version 1.2.11. Now we employ stock SDL directory
structure (i.e. include/SDL for includes and sdl-config for configuration
   binary)
 - Update graphics/sdl_ttf to version 2.0.8
 - Update graphics/sdl_image to version 1.2.5
 - Update audio/sdl_mixer to version 1.2.7
 - Update net/sdl_net to version 1.2.6
 - Update Mk/bsd.sdl.mk accordingly
 - Fix dependent ports to fit the new directory structure and avoid several
   API breakages
 - Bump up portrevisions for all dependent ports to allow them to be upgraded
   by portupgrade/portmaster etc tools

Approved by:    kris (portmgr), sem (mentor)
2006-09-20 11:21:59 +00:00

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= 2
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>