Lines 1-56
Link Here
|
1 |
# Created by: Roland Smith <rsmith@xs4all.nl> |
1 |
# Created by: R.F. Smith <rsmith@xs4all.nl> |
2 |
# $FreeBSD: head/graphics/py-stl/Makefile 347760 2014-03-10 14:49:26Z bapt $ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= stl |
4 |
PORTNAME= stltools |
5 |
PORTVERSION= 3.1 |
5 |
PORTVERSION= 3.2 |
6 |
CATEGORIES= graphics python |
6 |
CATEGORIES= graphics python |
7 |
MASTER_SITES= http://rsmith.home.xs4all.nl/software/ |
7 |
MASTER_SITES= http://rsmith.home.xs4all.nl/files/ |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
DISTNAME= py-${PORTNAME}-${PORTVERSION} |
|
|
10 |
|
9 |
|
11 |
MAINTAINER= rsmith@xs4all.nl |
10 |
MAINTAINER= rsmith@xs4all.nl |
12 |
COMMENT= Converts STL models to POV-Ray meshes or PostScript/PDF images |
11 |
COMMENT= Converts STL models to POV-Ray meshes or PostScript/PDF images |
13 |
|
12 |
|
14 |
LICENSE= BSD |
13 |
LICENSE= BSD2CLAUSE |
15 |
|
14 |
|
16 |
# bypass infrastructure bug |
15 |
RUN_DEPENDS= ${PYNUMPY} |
17 |
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options |
|
|
18 |
|
16 |
|
19 |
USES= zip |
17 |
USES= zip |
20 |
USE_PYTHON= yes |
18 |
USE_PYTHON= YES |
|
|
19 |
PYTHON_VERSION= python2.7 |
21 |
USE_PYDISTUTILS= YES |
20 |
USE_PYDISTUTILS= YES |
22 |
PYDISTUTILS_EGGINFO= py_stl-${PORTVERSION}-py${PYTHON_VER}.egg-info |
|
|
23 |
|
21 |
|
24 |
CONFLICTS= stl2pov-[0-9]* |
22 |
DOCS= README.txt |
25 |
|
23 |
EXAMPLES= test/cube.stl test/cube_bin.stl |
26 |
MAN1= stl2ps.1 stlinfo.1 stl2pov.1 |
|
|
27 |
|
24 |
|
28 |
OPTIONS_DEFINE= PYCAIRO |
25 |
OPTIONS_DEFINE= PYCAIRO |
29 |
PYCAIRO_DESC= Use (py)Cairo to enable stl2pdf |
26 |
PYCAIRO_DESC= Use (py)Cairo to enable stl2pdf to function. |
30 |
|
27 |
|
31 |
NO_STAGE= yes |
|
|
32 |
.include <bsd.port.options.mk> |
28 |
.include <bsd.port.options.mk> |
33 |
|
29 |
|
34 |
STL_SCRIPTS= stl2pov stl2ps stlinfo |
|
|
35 |
|
36 |
.if ${PORT_OPTIONS:MPYCAIRO} |
30 |
.if ${PORT_OPTIONS:MPYCAIRO} |
37 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py-cairo |
31 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cairo>1.8:${PORTSDIR}/graphics/py-cairo |
38 |
MAN1+= stl2pdf.1 |
|
|
39 |
PLIST_SUB= STL2PDF="" |
40 |
STL_SCRIPTS+= stl2pdf |
41 |
.else |
42 |
PLIST_SUB= STL2PDF="@comment " |
43 |
.endif |
32 |
.endif |
44 |
|
33 |
|
45 |
NO_BUILD= YES |
|
|
46 |
|
47 |
post-install: |
34 |
post-install: |
48 |
.if empty(PORT_OPTIONS:MPYCAIRO) |
35 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
49 |
@${RM} -f ${PREFIX}/bin/stl2pdf.py |
36 |
.for i in ${DOCS} |
50 |
.endif |
37 |
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
51 |
.for s in ${STL_SCRIPTS} |
38 |
.endfor |
52 |
${INSTALL_MAN} ${WRKSRC}/${s}.1 ${MANPREFIX}/man/man1 |
39 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
53 |
@${MV} ${PREFIX}/bin/${s}.py ${PREFIX}/bin/${s} |
40 |
.for i in ${EXAMPLES} |
|
|
41 |
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR} |
54 |
.endfor |
42 |
.endfor |
55 |
|
43 |
|
56 |
.include <bsd.port.mk> |
44 |
.include <bsd.port.mk> |