|
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= 14 |
5 |
DISTVERSION= 3.7.0.8 |
| 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
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
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 localbase |
27 |
USES= gmake localbase 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 38-44
Link Here
|
| 38 |
--program-transform-name='s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/' \ |
40 |
--program-transform-name='s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/' \ |
| 39 |
--disable-optimiz |
41 |
--disable-optimiz |
| 40 |
|
42 |
|
| 41 |
X11_USE= XORG=xpm,sm,ice,x11 SDL=sdl |
43 |
X11_USE= XORG=xpm,sm,ice,x11 SDL=sdl |
| 42 |
X11_CONFIGURE_OFF= --without-x |
44 |
X11_CONFIGURE_OFF= --without-x |
| 43 |
STATIC_CONFIGURE_ON= --enable-static |
45 |
STATIC_CONFIGURE_ON= --enable-static |
| 44 |
IO_CONFIGURE_ON= --disable-io-restrictions |
46 |
IO_CONFIGURE_ON= --disable-io-restrictions |
|
Lines 90-138
Link Here
|
| 90 |
CONFIGURE_ARGS+=NON_REDISTRIBUTABLE_BUILD=yes |
92 |
CONFIGURE_ARGS+=NON_REDISTRIBUTABLE_BUILD=yes |
| 91 |
.endif |
93 |
.endif |
| 92 |
|
94 |
|
| 93 |
DOC_FILES= AUTHORS ChangeLog NEWS |
|
|
| 94 |
PORTDOCS= * |
95 |
PORTDOCS= * |
| 95 |
PORTEXAMPLES= * |
96 |
PORTEXAMPLES= * |
| 96 |
|
97 |
|
| 97 |
post-patch: |
98 |
post-patch: |
| 98 |
# Fix with boost 1.52 and now boost 1.55 |
99 |
${REINPLACE_CMD} -e 's|@@EXAMPLESDIR@@|${EXAMPLESDIR}|' \ |
| 99 |
@${REINPLACE_CMD} -e 's/TIME_UTC/TIME_UTC_/g' ${WRKSRC}/source/backend/scene/view.cpp \ |
100 |
-e 's|@@ETCDIR@@|${ETCDIR}|' \ |
| 100 |
${WRKSRC}/source/base/timer.cpp \ |
101 |
${WRKSRC}/unix/povray.conf |
| 101 |
${WRKSRC}/vfe/vfepovms.cpp \ |
|
|
| 102 |
${WRKSRC}/vfe/unix/platformbase.cpp \ |
| 103 |
${WRKSRC}/vfe/vfesession.cpp |
| 104 |
@${FIND} ${WRKSRC}/source/*end \( -name \*.h -o -name \*.cpp \) | \ |
| 105 |
${XARGS} ${GREP} -l shared_ptr | ${SED} '/shellout/d' | \ |
| 106 |
${XARGS} ${REINPLACE_CMD} -e 's|shared_ptr|boost::shared_ptr|g' |
| 107 |
|
102 |
|
|
|
103 |
pre-configure: |
| 104 |
cd ${WRKSRC}/unix && ./prebuild.sh |
| 105 |
|
| 108 |
pre-build: |
106 |
pre-build: |
| 109 |
.if ${PORT_OPTIONS:MSTATIC} && ${PORT_OPTIONS:MTIFF} |
107 |
.if ${PORT_OPTIONS:MSTATIC} && ${PORT_OPTIONS:MTIFF} |
| 110 |
# graphics/tiff adds dependencies on libjpeg and libjbig |
108 |
# graphics/tiff adds dependencies on libjpeg, libjbig and liblzma |
| 111 |
@${REINPLACE_CMD} -e 's,^\(LIBS = .*\)-ltiff\(.*\),\1-ltiff -ljpeg -ljbig\2,' ${WRKSRC}/unix/Makefile |
109 |
@${REINPLACE_CMD} -e 's,^\(LIBS = .*\)-ltiff\(.*\),\1-ltiff -ljpeg -ljbig -llzma\2,' ${WRKSRC}/unix/Makefile |
| 112 |
.endif |
110 |
.endif |
| 113 |
|
111 |
|
| 114 |
do-install: |
112 |
post-install: |
| 115 |
${INSTALL_PROGRAM} ${WRKSRC}/unix/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX} |
113 |
${MV} ${STAGEDIR}${DATADIR}/scenes ${STAGEDIR}${EXAMPLESDIR} |
| 116 |
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}${PKGNAMESUFFIX}.1 |
114 |
.for i in povray.conf povray.ini |
| 117 |
@${MKDIR} ${STAGEDIR}${ETCDIR} |
115 |
${MV} ${STAGEDIR}${ETCDIR}/${i} ${STAGEDIR}${ETCDIR}/${i}.sample |
| 118 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR} |
|
|
| 119 |
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.ini ${STAGEDIR}${ETCDIR} |
| 120 |
.for i in include ini scripts |
| 121 |
${MKDIR} ${STAGEDIR}${DATADIR}/$i |
| 122 |
cd ${WRKSRC}/$i && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/$i |
| 123 |
.endfor |
116 |
.endfor |
| 124 |
|
117 |
|
| 125 |
do-install-X11-on: |
|
|
| 126 |
@${MKDIR} ${STAGEDIR}${DATADIR}/icons |
| 127 |
cd ${WRKSRC}/icons && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/icons |
| 128 |
|
| 129 |
do-install-EXAMPLES-on: |
| 130 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
| 131 |
cd ${WRKSRC}/scenes && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} |
| 132 |
|
| 133 |
do-install-DOCS-on: |
| 134 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
| 135 |
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${STAGEDIR}${DOCSDIR} |
| 136 |
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} |
| 137 |
|
| 138 |
.include <bsd.port.mk> |
118 |
.include <bsd.port.mk> |