2000-10-19 16:15:35 +00:00
|
|
|
# New ports collection makefile for: ltris
|
|
|
|
# Date created: 19 October 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ltris
|
2004-01-23 14:47:37 +00:00
|
|
|
PORTVERSION= 1.0.6
|
2004-03-16 04:23:56 +00:00
|
|
|
PORTREVISION= 2
|
2002-01-15 07:31:43 +00:00
|
|
|
PORTEPOCH= 1
|
2000-10-19 16:15:35 +00:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= lgames
|
|
|
|
|
2003-07-29 09:12:37 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= An another tetris clone but a good one with bunch of cool features
|
2000-10-19 16:15:35 +00:00
|
|
|
|
2004-01-20 18:21:02 +00:00
|
|
|
USE_SDL= mixer sdl
|
2003-08-05 06:07:54 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-10-19 16:15:35 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2004-03-18 23:14:50 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 502103
|
|
|
|
BROKEN= "Does not install on FreeBSD >= 5.x"
|
|
|
|
.endif
|
|
|
|
|
2003-08-05 06:07:54 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
|
|
|
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|"SDL/SDL|"SDL|g ; \
|
|
|
|
s|<SDL/SDL|<SDL|g'
|
2000-10-19 16:15:35 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
|
|
|
|
${CHMOD} 2755 ${PREFIX}/bin/${PORTNAME}
|
2002-01-15 07:31:43 +00:00
|
|
|
${CHMOD} 664 /var/games/${PORTNAME}/ltris.hscr
|
|
|
|
${CHOWN} root:games /var/games/${PORTNAME}/ltris.hscr
|
2000-10-19 16:15:35 +00:00
|
|
|
|
2004-03-18 23:14:50 +00:00
|
|
|
.include <bsd.port.post.mk>
|