blob: f40f29c6105858d1855ca1d2f2d893ad473c9e78 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Created by: paulo@isr.uc.pt
# $FreeBSD$
PORTNAME= povray
PORTVERSION= 3.6.1
PORTREVISION= 13
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.povray.org/pub/povray/%SUBDIR%/ \
ftp://ftp.mirrorservice.org/sites/ftp.povray.org/pub/povray/%SUBDIR%/ \
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/povray/%SUBDIR%,}
MASTER_SITE_SUBDIR= Official/Unix
PKGNAMESUFFIX= 36
DIST_SUBDIR= povray36
MAINTAINER= ports@FreeBSD.org
COMMENT= Persistence of Vision Ray Tracer
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
libtiff.so:${PORTSDIR}/graphics/tiff \
libjpeg.so:${PORTSDIR}/graphics/jpeg
USE_XORG= x11
USES= gmake tar:bzip2
GNU_CONFIGURE= yes
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-3.6
DATADIR= ${PREFIX}/share/${PORTNAME}-3.6
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if (${ARCH} == "i386" || ${ARCH} == "amd64")
LIB_DEPENDS+= libvgagl.so:${PORTSDIR}/graphics/svgalib
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
.if (${ARCH} == "i386" && !${ARCH} == "amd64" )
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
.endif # i386
CONFIGURE_ARGS= --disable-optimiz
.endif
CONFIGURE_ARGS= --x-includes="${LOCALBASE}/include" --includedir=${LOCALBASE} \
CXXFLAGS="${CXXFLAGS} -L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS} -L${LOCALBASE}/lib" \
LDFLAGS="-L${LOCALBASE}/lib" COMPILED_BY=${MAINTAINER} \
--program-transform-name='s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/'
.include <bsd.port.post.mk>
|