aboutsummaryrefslogtreecommitdiffstats
path: root/misc/explosions/Makefile
blob: 9fc31ccc932890e8532b355c460b902c1f1c59ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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
USES=       perl5
USE_PERL5=  build

NO_STAGE=   yes
.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -i '' -e 's!CFLAGS=-Wall -O2!CFLAGS+=-Wall!; \
            s!sdl-config!${SDL_CONFIG}!' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -i '' -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>