Lines 1-10
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= povray |
3 |
PORTNAME= povray |
4 |
DISTVERSION= 3.7.0.RC6 |
4 |
DISTVERSIONPREFIX= v |
5 |
PORTREVISION= 12 |
5 |
DISTVERSION= 3.7.0.5 |
6 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
7 |
MASTER_SITES= http://www.povray.org/beta/source/ |
|
|
8 |
PKGNAMESUFFIX= 37 |
7 |
PKGNAMESUFFIX= 37 |
9 |
DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} |
8 |
DIST_SUBDIR= ${PORTNAME}${PKGNAMESUFFIX} |
10 |
|
9 |
|
Lines 15-20
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
Link Here
|
15 |
|
14 |
|
16 |
BROKEN_powerpc64= Does not build: c++: Internal error: Killed (program cc1plus) |
15 |
BROKEN_powerpc64= Does not build: c++: Internal error: Killed (program cc1plus) |
17 |
|
16 |
|
|
|
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= POV-Ray |
19 |
|
18 |
OPTIONS_DEFINE= X11 PNG JPEG TIFF OPENEXR STATIC IO EXAMPLES DOCS |
20 |
OPTIONS_DEFINE= X11 PNG JPEG TIFF OPENEXR STATIC IO EXAMPLES DOCS |
19 |
OPTIONS_DEFAULT=PNG JPEG |
21 |
OPTIONS_DEFAULT=PNG JPEG |
20 |
OPTIONS_SUB= yes |
22 |
OPTIONS_SUB= yes |
Lines 22-28
IO_DESC= Without I/O restrictions (security risk)
Link Here
|
22 |
EXAMPLES_DESC= Install example scenes |
24 |
EXAMPLES_DESC= Install example scenes |
23 |
DOCS_DESC= Install HTML documentation |
25 |
DOCS_DESC= Install HTML documentation |
24 |
|
26 |
|
25 |
USES= gmake |
27 |
USES= gmake autoreconf:build |
26 |
GNU_CONFIGURE= yes |
28 |
GNU_CONFIGURE= yes |
27 |
|
29 |
|
28 |
VERSION_BASE= ${PORTVERSION:C/([0-9]+\.[0-9]+).*/\1/} |
30 |
VERSION_BASE= ${PORTVERSION:C/([0-9]+\.[0-9]+).*/\1/} |
Lines 101-151
CONFIGURE_ARGS+=--without-openexr
Link Here
|
101 |
CONFIGURE_ARGS+=NON_REDISTRIBUTABLE_BUILD=yes |
103 |
CONFIGURE_ARGS+=NON_REDISTRIBUTABLE_BUILD=yes |
102 |
.endif |
104 |
.endif |
103 |
|
105 |
|
104 |
MAN1= ${PORTNAME}${PKGNAMESUFFIX}.1 |
|
|
105 |
|
106 |
DOC_FILES= AUTHORS ChangeLog NEWS |
107 |
PORTDOCS= * |
106 |
PORTDOCS= * |
108 |
PORTEXAMPLES= * |
107 |
PORTEXAMPLES= * |
109 |
|
108 |
|
110 |
post-patch: |
109 |
post-patch: |
111 |
# Fix with boost 1.52 and now boost 1.55 |
110 |
${REINPLACE_CMD} -e 's|@@EXAMPLESDIR@@|${EXAMPLESDIR}|' \ |
112 |
@${REINPLACE_CMD} -e 's/TIME_UTC/TIME_UTC_/g' ${WRKSRC}/source/backend/scene/view.cpp \ |
111 |
-e 's|@@ETCDIR@@|${ETCDIR}|' \ |
113 |
${WRKSRC}/source/base/timer.cpp \ |
112 |
${WRKSRC}/unix/povray.conf |
114 |
${WRKSRC}/vfe/vfepovms.cpp \ |
113 |
|
115 |
${WRKSRC}/vfe/unix/platformbase.cpp \ |
114 |
pre-configure: |
116 |
${WRKSRC}/vfe/vfesession.cpp |
115 |
cd ${WRKSRC}/unix && ./prebuild.sh |
117 |
${FIND} ${WRKSRC}/source/*end \( -name \*.h -o -name \*.cpp \) | \ |
|
|
118 |
${XARGS} ${GREP} -l shared_ptr | ${SED} '/shellout/d' | \ |
119 |
${XARGS} ${REINPLACE_CMD} -e 's|shared_ptr|boost::shared_ptr|g' |
120 |
|
116 |
|
121 |
pre-build: |
117 |
pre-build: |
122 |
.if ${PORT_OPTIONS:MSTATIC} && ${PORT_OPTIONS:MTIFF} |
118 |
.if ${PORT_OPTIONS:MSTATIC} && ${PORT_OPTIONS:MTIFF} |
123 |
# graphics/tiff adds dependencies on libjpeg and libjbig |
119 |
# graphics/tiff adds dependencies on libjpeg, libjbig and liblzma |
124 |
@${REINPLACE_CMD} -e 's,^\(LIBS = .*\)-ltiff\(.*\),\1-ltiff -ljpeg -ljbig\2,' ${WRKSRC}/unix/Makefile |
120 |
@${REINPLACE_CMD} -e 's,^\(LIBS = .*\)-ltiff\(.*\),\1-ltiff -ljpeg -ljbig -llzma\2,' ${WRKSRC}/unix/Makefile |
125 |
.endif |
121 |
.endif |
126 |
|
122 |
|
127 |
do-install: |
123 |
post-install: |
128 |
@${INSTALL_PROGRAM} ${WRKSRC}/unix/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX} |
124 |
${MV} ${STAGEDIR}${DATADIR}/scenes ${STAGEDIR}${EXAMPLESDIR} |
129 |
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${MAN1} |
125 |
.for i in povray.conf povray.ini |
130 |
@${MKDIR} ${STAGEDIR}${ETCDIR} |
126 |
${MV} ${STAGEDIR}${ETCDIR}/${i} ${STAGEDIR}${ETCDIR}/${i}.sample |
131 |
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR} |
|
|
132 |
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${STAGEDIR}${ETCDIR} |
133 |
.for i in include ini scripts |
134 |
${MKDIR} ${STAGEDIR}${DATADIR}/$i |
135 |
cd ${WRKSRC}/$i && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/$i |
136 |
.endfor |
127 |
.endfor |
137 |
.if ${PORT_OPTIONS:MX11} |
|
|
138 |
@${MKDIR} ${STAGEDIR}${DATADIR}/icons |
139 |
cd ${WRKSRC}/icons && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/icons |
140 |
.endif |
141 |
.if ${PORT_OPTIONS:MEXAMPLES} |
142 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
143 |
cd ${WRKSRC}/scenes && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} |
144 |
.endif |
145 |
.if ${PORT_OPTIONS:MDOCS} |
146 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
147 |
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${STAGEDIR}${DOCSDIR} |
148 |
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} |
149 |
.endif |
150 |
|
128 |
|
151 |
.include <bsd.port.mk> |
129 |
.include <bsd.port.mk> |