aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pyro
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-29 00:25:12 +0800
committerpawel <pawel@FreeBSD.org>2014-04-29 00:25:12 +0800
commit3efc7ba24584e3a05d9fdfaac5114b49967212bc (patch)
tree0e4ffb458fc727f2e2a59744be3c4a26d44fc806 /graphics/pyro
parentd3d59922eb8af74322aef3394c6d0211c100e66f (diff)
downloadfreebsd-ports-gnome-3efc7ba24584e3a05d9fdfaac5114b49967212bc.tar.gz
freebsd-ports-gnome-3efc7ba24584e3a05d9fdfaac5114b49967212bc.tar.zst
freebsd-ports-gnome-3efc7ba24584e3a05d9fdfaac5114b49967212bc.zip
- Add staging support
- Remove leading article from COMMENT - Convert to new LIB_DEPENDS format, options framework
Diffstat (limited to 'graphics/pyro')
-rw-r--r--graphics/pyro/Makefile21
1 files changed, 9 insertions, 12 deletions
diff --git a/graphics/pyro/Makefile b/graphics/pyro/Makefile
index 4dbf83d79383..316fbf87bc0e 100644
--- a/graphics/pyro/Makefile
+++ b/graphics/pyro/Makefile
@@ -9,9 +9,9 @@ MASTER_SITES= http://nostatic.org/pyro/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-COMMENT= A simple OpenGL-based firework simulator
+COMMENT= Simple OpenGL-based firework simulator
-LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
USE_GL= gl glut
USE_XORG= xi xmu xext
@@ -21,7 +21,8 @@ PLIST_FILES= bin/pyro ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
PLIST_DIRS= %%EXAMPLESDIR%%
PORTDOCS= README
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e 's|malloc\.h|stdlib.h|g' ${WRKSRC}/*.c
@@ -31,14 +32,10 @@ do-build:
-L${LOCALBASE}/lib -ljpeg -lm -lXmu -lXi -lXext -lGL -lGLU -lglut
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
-
-.ifndef (NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+ ${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>