freebsd-ports/misc/explosions/Makefile
Mathieu Arnold 88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$
PORTNAME= explosions
PORTVERSION= 0.2005.07.31
PORTREVISION= 16
CATEGORIES= misc
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/${PORTNAME}/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTNAME= ${PORTNAME}-${PORTVERSION:S/^0.//}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= 3D objects flying around resembling explosions with various effects
LICENSE= GPLv2
USES= gmake perl5
USE_PERL5= build
USE_SDL= sdl image
PORTDOCS= BUGS.txt CHANGES.txt README.txt
OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Explosions" "" "${PORTNAME}" \
"${PORTNAME}" "Game;Graphics;" ""
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS=-Wall -O2|CFLAGS+=-Wall|; \
s|sdl-config|${SDL_CONFIG}|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|spark%d.png|${DATADIR}/spark%d.png|' \
${WRKSRC}/explosions.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/spark?.png ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>