summaryrefslogtreecommitdiff
path: root/games/ltris/Makefile
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-10-19 16:15:35 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-10-19 16:15:35 +0000
commitc7b32248010b45e483dfffb6348225713d0c4210 (patch)
tree9c0d9bccb6ce04263dc10157a8f1e253550f6016 /games/ltris/Makefile
parentChange default pager from /usr/bin/pg to /usr/bin/more. As before, (diff)
Add ltris - a SDL-based cool tetris clone.
Notes
Notes: svn path=/head/; revision=34005
Diffstat (limited to 'games/ltris/Makefile')
-rw-r--r--games/ltris/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/games/ltris/Makefile b/games/ltris/Makefile
new file mode 100644
index 000000000000..c29cc9cb8042
--- /dev/null
+++ b/games/ltris/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: ltris
+# Date created: 19 October 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ltris
+PORTVERSION= 001017
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= lgames
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= SDL-1.0.2:${PORTSDIR}/devel/sdl
+
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl-config
+
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags`" \
+ LIBS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib -lcompat"
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
+ @find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
+ xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
+
+post-install:
+ ${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
+ ${CHMOD} 2755 ${PREFIX}/bin/${PORTNAME}
+.for N in 0 1 2
+ ${CHMOD} 664 /var/games/${PORTNAME}/highscore.${N}
+ ${CHOWN} root:games /var/games/${PORTNAME}/highscore.${N}
+.endfor
+
+.include <bsd.port.mk>