summaryrefslogtreecommitdiff
path: root/misc/explosions/Makefile
blob: 33a27511f9eab49673a39f1e178cc9a1a58a1c5d (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
42
43
44
# New ports collection makefile for:	explosions
# Date created:				8 August 2001
# Whom:					Pete Fritchman <petef@databits.net>
#
# $FreeBSD$
#

PORTNAME=	explosions
PORTVERSION=	0.2001.10.29
CATEGORIES=	misc
MASTER_SITES=	ftp://ftp.sonic.net/pub/users/nbs/unix/x/explosions/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/^0.//}

MAINTAINER=	petef@FreeBSD.org
COMMENT=	3D objects flying around resembling explosions with various effects

LIB_DEPENDS=	SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
		SDL_image.10:${PORTSDIR}/graphics/sdl_image

USE_GMAKE=	yes
USE_PERL=	yes
USE_X_PREFIX=	yes

SDL_CONFIG=	${LOCALBASE}/bin/sdl11-config

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 !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in BUGS.txt CHANGES.txt README.txt
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>