summaryrefslogtreecommitdiff
path: root/games/atris/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-13 14:07:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-13 14:07:41 +0000
commit8455f0e8414df5bfef7e4af56ea37141335a3906 (patch)
tree37358f11069cfbc6dce1a9c46691b9a7bf0c3958 /games/atris/Makefile
parentAnagramarama - a FREE* word game for Linux, Windows and BeOS. (diff)
Alizarin Tetris is a Tetris-like game with a twist for Unix, Win32 and BeOS
systems. It includes multi-player support, user-extensible color, shape and sound styles, can use TCP/IP networking and features a few different AI opponents. It was written using the SDL Library. PR: ports/83202, ports/83207 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Notes
Notes: svn path=/head/; revision=139086
Diffstat (limited to 'games/atris/Makefile')
-rw-r--r--games/atris/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/games/atris/Makefile b/games/atris/Makefile
new file mode 100644
index 000000000000..171bf78e5c6a
--- /dev/null
+++ b/games/atris/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: games/atris
+# Date created: 9 Aug 2005
+# Whom: Alejandro Pulver <alejandro@varnet.biz>
+#
+# $FreeBSD$
+#
+
+PORTNAME= atris
+PORTVERSION= 1.0.7
+CATEGORIES= games
+MASTER_SITES= http://www.cs.berkeley.edu/~weimer/atris/
+
+MAINTAINER= alejandro@varnet.biz
+COMMENT= Atris: Alizarin Tetris
+
+USE_GMAKE= yes
+USE_SDL= sdl ttf
+USE_REINPLACE= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --program-transform-name=""
+
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
+ AUTOHEADER="${TRUE}"
+
+post-patch:
+# Fix path to ${DATADIR}
+ ${REINPLACE_CMD} -e 's|\(GAME_INSTALLDIR=\).*|\1"${DATADIR}"|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+
+# Fix SDL include statement
+.for f in *.c *.h
+ @${FIND} ${WRKSRC} -type f -name "${f}" -print0 | \
+ ${XARGS} -0 ${REINPLACE_CMD} -e \
+ 's|\(#include.*\)SDL/\(SDL.*\)|\1\2|'
+.endfor
+
+.if !defined(NOPORTDOCS)
+post-install:
+# Install documentation (optional)
+ @${MKDIR} ${DOCSDIR}
+ @${RM} -f ${WRKSRC}/Docs/Makefile*
+ @${CP} -R ${WRKSRC}/Docs/* ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>