1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/games/anagramarama/Makefile
Pav Lucistnik 319b5d5fda Anagramarama - a FREE* word game for Linux, Windows and BeOS.
The aim is to find as many words as possible in the time available. Get the
longest word and you'll advance to the next level.

PR:		ports/83221
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
2005-07-13 13:59:44 +00:00

71 lines
1.7 KiB
Makefile

# New ports collection makefile for: games/anagramarama
# Date created: 10 Aug 2005
# Whom: Alejandro Pulver <alejandro@varnet.biz>
#
# $FreeBSD$
#
PORTNAME= anagramarama
PORTVERSION= 0.2
CATEGORIES= games
MASTER_SITES= http://www.omega.clara.net/anagramarama/dist/
MAINTAINER= alejandro@varnet.biz
COMMENT= Anagramarama - a word game for Linux, Windows and BeOS
USE_GMAKE= yes
USE_SDL= mixer sdl
USE_REINPLACE= yes
MAKEFILE= makefile
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS= OPTIMIZED_CFLAGS "Enable compilation optimizations" on
.include <bsd.port.pre.mk>
post-patch:
# Fix Makefile
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
s|\(-Wall\)|${CFLAGS} \1|' \
${WRKSRC}/${MAKEFILE}
# Fix SDL include statement and path to ${DATADIR}
@${REINPLACE_CMD} -e 's|\(#include.*\)SDL/\(SDL.*\)|\1\2| ; \
s|\(audio/\)|${DATADIR}/\1| ; \
s|\(images/\)|${DATADIR}/\1| ; \
s|\(wordlist.txt\)|${DATADIR}/\1|' \
${WRKSRC}/src/*.c ${WRKSRC}/src/*.h
# Enable/disable optimized CFLAGS
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's|$$(OPT)||' \
${WRKSRC}/${MAKEFILE}
.endif
do-install:
# Program
${INSTALL_PROGRAM} ${WRKSRC}/ag ${PREFIX}/bin
# Data
${MKDIR} ${DATADIR}
# Data: audio
${MKDIR} ${DATADIR}/audio
.for f in badword.wav clearword.wav click-answer.wav click-shuffle.wav \
clock-tick.wav duplicate.wav found.wav foundbig.wav shuffle.wav
${INSTALL_DATA} ${WRKSRC}/audio/${f} ${DATADIR}/audio
${MKDIR} ${DATADIR}/images
.endfor
# Data: images
.for f in background.bmp letterBank.bmp numberBank.bmp smallLetterBank.bmp
${INSTALL_DATA} ${WRKSRC}/images/${f} ${DATADIR}/images
.endfor
# Data: wordlist.txt
${INSTALL_DATA} ${WRKSRC}/wordlist.txt ${DATADIR}
.include <bsd.port.post.mk>