Lines 20-26
USE_GITHUB= yes
Link Here
|
20 |
GH_ACCOUNT= POV-Ray |
20 |
GH_ACCOUNT= POV-Ray |
21 |
|
21 |
|
22 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
23 |
CONFIGURE_ARGS= COMPILED_BY=${MAINTAINER} \ |
23 |
CONFIGURE_ARGS= COMPILED_BY=${HOSTARCH}-portbld-${OPSYS:tl}-${OSREL:R} \ |
24 |
--program-transform-name='s/povray/${PKGBASE}/' \ |
24 |
--program-transform-name='s/povray/${PKGBASE}/' \ |
25 |
--disable-optimiz |
25 |
--disable-optimiz |
26 |
|
26 |
|
Lines 30-91
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${VERSION_BASE}
Link Here
|
30 |
ETCDIR= ${PREFIX}/etc/${PORTNAME}/${VERSION_BASE} |
30 |
ETCDIR= ${PREFIX}/etc/${PORTNAME}/${VERSION_BASE} |
31 |
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${VERSION_BASE} |
31 |
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${VERSION_BASE} |
32 |
|
32 |
|
33 |
OPTIONS_DEFINE= X11 PNG JPEG TIFF OPENEXR STATIC IO EXAMPLES DOCS |
33 |
OPTIONS_DEFINE= X11 PNG JPEG TIFF OPENEXR IO EXAMPLES DOCS |
34 |
OPTIONS_DEFAULT=PNG JPEG |
34 |
OPTIONS_DEFAULT=PNG JPEG |
35 |
OPTIONS_SUB= yes |
35 |
OPTIONS_SUB= yes |
36 |
|
36 |
|
37 |
DOCS_DESC= Install HTML documentation |
|
|
38 |
EXAMPLES_DESC= Install example scenes |
39 |
IO_DESC= Without I/O restrictions (security risk) |
37 |
IO_DESC= Without I/O restrictions (security risk) |
40 |
|
38 |
|
41 |
IO_CONFIGURE_ON= --disable-io-restrictions |
39 |
IO_CONFIGURE_ON= --disable-io-restrictions |
42 |
STATIC_CONFIGURE_ON= --enable-static |
|
|
43 |
X11_USES= sdl xorg |
44 |
X11_USE= XORG=xpm,sm,ice,x11 SDL=sdl |
45 |
X11_CONFIGURE_OFF= --without-x |
46 |
|
40 |
|
47 |
.include <bsd.port.options.mk> |
41 |
JPEG_USES= jpeg |
|
|
42 |
JPEG_CONFIGURE_OFF= --without-jpeg |
48 |
|
43 |
|
49 |
.if ${PORT_OPTIONS:MPNG} |
44 |
OPENEXR_LIB_DEPENDS= libImath.so:math/Imath \ |
50 |
.if ${PORT_OPTIONS:MSTATIC} |
45 |
libOpenEXR.so:graphics/openexr |
51 |
BUILD_DEPENDS+= png>=1.4:graphics/png |
46 |
OPENEXR_CONFIGURE_WITH= openexr |
52 |
.else |
|
|
53 |
LIB_DEPENDS+= libpng.so:graphics/png |
54 |
.endif |
55 |
.else |
56 |
CONFIGURE_ARGS+=--without-libpng |
57 |
.endif |
58 |
|
47 |
|
59 |
.if ${PORT_OPTIONS:MJPEG} |
48 |
PNG_LIB_DEPENDS= libpng.so:graphics/png |
60 |
.if ${PORT_OPTIONS:MSTATIC} |
49 |
PNG_CONFIGURE_WITH= libpng |
61 |
USES+= jpeg:build |
|
|
62 |
.else |
63 |
USES+= jpeg |
64 |
.endif |
65 |
.else |
66 |
CONFIGURE_ARGS+=--without-libjpeg |
67 |
.endif |
68 |
|
50 |
|
69 |
.if ${PORT_OPTIONS:MTIFF} |
51 |
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff |
70 |
.if ${PORT_OPTIONS:MSTATIC} |
52 |
TIFF_CONFIGURE_WITH= libtiff |
71 |
BUILD_DEPENDS+= tiff>=4:graphics/tiff |
|
|
72 |
.else |
73 |
LIB_DEPENDS+= libtiff.so:graphics/tiff |
74 |
.endif |
75 |
.else |
76 |
CONFIGURE_ARGS+=--without-libtiff |
77 |
.endif |
78 |
|
53 |
|
79 |
.if ${PORT_OPTIONS:MOPENEXR} |
54 |
X11_USES= sdl xorg |
80 |
.if ${PORT_OPTIONS:MSTATIC} |
55 |
X11_USE= XORG=xpm,sm,ice,x11 SDL=sdl |
81 |
BUILD_DEPENDS+= openexr>=1.6:graphics/openexr |
56 |
X11_CONFIGURE_OFF= --without-x |
82 |
.else |
57 |
|
83 |
LIB_DEPENDS+= libOpenEXR.so:graphics/openexr libImath.so:math/Imath |
58 |
.include <bsd.port.options.mk> |
84 |
CPPFLAGS+= -I${LOCALBASE}/include/OpenEXR -I${LOCALBASE}/include/Imath -DInt64=uint64_t |
|
|
85 |
.endif |
86 |
.else |
87 |
CONFIGURE_ARGS+=--without-openexr |
88 |
.endif |
89 |
|
59 |
|
90 |
.if !${PORT_OPTIONS:MPNG} || !${PORT_OPTIONS:MJPEG} || !${PORT_OPTIONS:MTIFF} |
60 |
.if !${PORT_OPTIONS:MPNG} || !${PORT_OPTIONS:MJPEG} || !${PORT_OPTIONS:MTIFF} |
91 |
CONFIGURE_ARGS+=NON_REDISTRIBUTABLE_BUILD=yes |
61 |
CONFIGURE_ARGS+=NON_REDISTRIBUTABLE_BUILD=yes |
Lines 102-113
post-patch:
Link Here
|
102 |
pre-configure: |
72 |
pre-configure: |
103 |
cd ${WRKSRC}/unix && ./prebuild.sh |
73 |
cd ${WRKSRC}/unix && ./prebuild.sh |
104 |
|
74 |
|
105 |
pre-build: |
|
|
106 |
.if ${PORT_OPTIONS:MSTATIC} && ${PORT_OPTIONS:MTIFF} |
107 |
# graphics/tiff adds dependencies on libjpeg, libjbig and liblzma |
108 |
@${REINPLACE_CMD} -e 's,^\(LIBS = .*\)-ltiff\(.*\),\1-ltiff -ljpeg -ljbig -llzma\2,' ${WRKSRC}/unix/Makefile |
109 |
.endif |
110 |
|
111 |
post-install: |
75 |
post-install: |
112 |
${MV} ${STAGEDIR}${DATADIR}/scenes ${STAGEDIR}${EXAMPLESDIR} |
76 |
${MV} ${STAGEDIR}${DATADIR}/scenes ${STAGEDIR}${EXAMPLESDIR} |
113 |
.for i in povray.conf povray.ini |
77 |
.for i in povray.conf povray.ini |