- Trim Header - Convert to OptionsNG - Prefer DISTNAME to DISTFILES - Reorder variables - Fix comments (don't include leading article) - @unexec rm must not cause failure - Tabs, not spaces - Single space for WWW - Pet portlint - etc. In a few cases the option DOCS was used to control installation into EXAMPLEDIR. I opted to keep the existing logic of the port in these cases. Reviewed by: koobs, ashish
39 lines
966 B
Makefile
39 lines
966 B
Makefile
# Created by: Pete Fritchman <petef@databits.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= explosions
|
|
PORTVERSION= 0.2005.07.31
|
|
PORTREVISION= 12
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ftp://ftp.billsgames.com/unix/x/explosions/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/^0.//}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= 3D objects flying around resembling explosions with various effects
|
|
|
|
USE_SDL= sdl image
|
|
USE_GMAKE= yes
|
|
USE_PERL5_BUILD=yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${PERL} -pi -e 's!CFLAGS=-Wall -O2!CFLAGS+=-Wall!; \
|
|
s!sdl-config!${SDL_CONFIG}!' \
|
|
${WRKSRC}/Makefile
|
|
@${PERL} -pi -e 's!spark%d.png!${DATADIR}/spark%d.png!' \
|
|
${WRKSRC}/explosions.c
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/explosions ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/spark?.png ${DATADIR}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in BUGS.txt CHANGES.txt README.txt
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|