1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/games/lbreakout/Makefile

42 lines
1.0 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: lbreakout
# Date created: 19 October 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= lbreakout
2001-03-16 16:59:21 +00:00
PORTVERSION= 010315
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lgames
MAINTAINER= ports@FreeBSD.org
COMMENT= A nice clone of classical Breakout game
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12
2001-03-16 16:59:21 +00:00
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
USE_GMAKE= yes
USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
2001-03-16 16:59:21 +00:00
CONFIGURE_ENV= LIBS="-lcompat" \
SDL_CONFIG="${SDL_CONFIG}"
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${FIND} ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \
${XARGS} ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g'
pre-install:
${MKDIR} /var/games/${PORTNAME}
post-install:
${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
${CHMOD} 2755 ${PREFIX}/bin/${PORTNAME}
${CHMOD} 664 /var/games/${PORTNAME}/${PORTNAME}.hscr
${CHOWN} root:games /var/games/${PORTNAME}/${PORTNAME}.hscr
.include <bsd.port.mk>