1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/graphics/pyro/Makefile
Pawel Pekala b62e3f8513 - Add staging support
- Remove leading article from COMMENT
- Convert to new LIB_DEPENDS format, options framework
2014-04-28 16:25:12 +00:00

42 lines
1.1 KiB
Makefile

# Created by: Igor Pokrovsky <ip@doom.homeunix.org>
# $FreeBSD$
PORTNAME= pyro
PORTVERSION= 1.5
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= http://nostatic.org/pyro/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple OpenGL-based firework simulator
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
USE_GL= gl glut
USE_XORG= xi xmu xext
EXAMPLES= pyro.dsp water.jpg
PLIST_FILES= bin/pyro ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
PORTDOCS= README
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g' ${WRKSRC}/*.c
do-build:
${CC} ${CFLAGS} ${WRKSRC}/*.c -o ${WRKSRC}/${PORTNAME} \
-DAUXDIR=\"${EXAMPLESDIR}\" -I${WRKSRC} -I${LOCALBASE}/include \
-L${LOCALBASE}/lib -ljpeg -lm -lXmu -lXi -lXext -lGL -lGLU -lglut
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>