aboutsummaryrefslogtreecommitdiff
path: root/games/anagramarama
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-04-24 21:00:09 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-04-24 21:00:09 +0000
commit8f251079f1435cf0d470fccef1db71f5d78b9a90 (patch)
tree9d9e49b0c4807d4f975d0711c09fd985b5d41b9b /games/anagramarama
parenta5373d644777debfaab96e52d6d10048f02ad6dc (diff)
downloadports-8f251079f1435cf0d470fccef1db71f5d78b9a90.tar.gz
ports-8f251079f1435cf0d470fccef1db71f5d78b9a90.zip
Notes
Diffstat (limited to 'games/anagramarama')
-rw-r--r--games/anagramarama/Makefile42
1 files changed, 20 insertions, 22 deletions
diff --git a/games/anagramarama/Makefile b/games/anagramarama/Makefile
index d2ddf861d6d3..e063fff6d9f6 100644
--- a/games/anagramarama/Makefile
+++ b/games/anagramarama/Makefile
@@ -7,6 +7,7 @@
PORTNAME= anagramarama
PORTVERSION= 0.2
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://www.omega.clara.net/anagramarama/dist/
@@ -15,43 +16,40 @@ 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
+MAKEFILE= makefile
+
.include <bsd.port.pre.mk>
post-patch:
-# Fix Makefile
+# Fix Makefile.
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}| ; \
- s|\(-Wall\)|${CFLAGS} \1|' \
- ${WRKSRC}/${MAKEFILE}
+ s|\(-Wall\)|${CFLAGS} \1|' \
+ ${WRKSRC}/${MAKEFILE}
-# Fix SDL include statement and path to ${DATADIR}
+# 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}
+ 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(WITHOUT_OPTIMIZED_CFLAGS)
+ @${REINPLACE_CMD} -e 's|$$(OPT)||' ${WRKSRC}/${MAKEFILE}
.endif
do-install:
-# Program
+# Program.
${INSTALL_PROGRAM} ${WRKSRC}/ag ${PREFIX}/bin
-# Data
+# Data.
${MKDIR} ${DATADIR}
-# Data: audio
+# 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
@@ -59,12 +57,12 @@ do-install:
${MKDIR} ${DATADIR}/images
.endfor
-# Data: images
+# Data: images.
.for f in background.bmp letterBank.bmp numberBank.bmp smallLetterBank.bmp
${INSTALL_DATA} ${WRKSRC}/images/${f} ${DATADIR}/images
.endfor
-# Data: wordlist.txt
+# Data: wordlist.txt.
${INSTALL_DATA} ${WRKSRC}/wordlist.txt ${DATADIR}
.include <bsd.port.post.mk>