svn commit: r445990 - head/graphics/py-soya3d
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sun Jul 16 09:00:59 UTC 2017
Author: amdmi3
Date: Sun Jul 16 09:00:58 2017
New Revision: 445990
URL: https://svnweb.freebsd.org/changeset/ports/445990
Log:
- Switch to options helpers
- Unsilence installation commands
Modified:
head/graphics/py-soya3d/Makefile
Modified: head/graphics/py-soya3d/Makefile
==============================================================================
--- head/graphics/py-soya3d/Makefile Sun Jul 16 08:50:26 2017 (r445989)
+++ head/graphics/py-soya3d/Makefile Sun Jul 16 09:00:58 2017 (r445990)
@@ -31,39 +31,32 @@ LDFLAGS+= -L${LOCALBASE}/lib -lGLU
SOYATUTVER= 0.14
-OPTIONS_DEFINE= DOCS EXAMPLES
-
PLIST_FILES= man/man1/soya_editor.1.gz
PORTDOCS= *
PORTEXAMPLES= *
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS EXAMPLES
+EXAMPLES_DISTFILES= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
-.if ${PORT_OPTIONS:MEXAMPLES}
-DISTFILES+= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
-.endif
-
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e \
's|%%LOCALBASE%%|${LOCALBASE}|g' -e \
's|/usr/include|${LOCALBASE}/include|g' ${WRKSRC}/setup.py
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/soya/*.so
-.if ${PORT_OPTIONS:MEXAMPLES}
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/soya/*.so
+ ${INSTALL_MAN} ${WRKSRC}/manpage/man1/soya_editor.1 ${STAGEDIR}${PREFIX}/man/man1
+
+post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/tutorial/* ${STAGEDIR}${EXAMPLESDIR}
${FIND} ${STAGEDIR}${EXAMPLESDIR}/* -type f -print0 | \
${XARGS} -0 ${CHMOD} ${SHAREMODE}
-.endif
-.if ${PORT_OPTIONS:MDOCS}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-. for FILE in AUTHORS README
- @${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${STAGEDIR}${DOCSDIR}
-. endfor
-.endif
- ${INSTALL_MAN} ${WRKSRC}/manpage/man1/soya_editor.1 ${STAGEDIR}${PREFIX}/man/man1
+.for FILE in AUTHORS README
+ ${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${STAGEDIR}${DOCSDIR}
+.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list