# Created by: R.F. Smith # $FreeBSD: head/graphics/py-stltools/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= stltools PORTVERSION= 3.2 PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= http://rsmith.home.xs4all.nl/files/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= rsmith@xs4all.nl COMMENT= Converts STL models to POV-Ray meshes or PostScript/PDF images LICENSE= BSD2CLAUSE RUN_DEPENDS= ${PYNUMPY} USES= zip python:2.7 USE_PYTHON= distutils DOCS= README.txt EXAMPLES= test/cube.stl test/cube_bin.stl OPTIONS_DEFINE= PYCAIRO DOCS PYCAIRO_DESC= Use (py)Cairo to enable stl2pdf to function. .include .if ${PORT_OPTIONS:MPYCAIRO} RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cairo>1.8:graphics/py-cairo .endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCS} @${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for i in ${EXAMPLES} @${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR} .endfor .include