blob: ba2488946dad659d5c2bfb5c0015487794c918ce (
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
55
|
# 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_SUBDIR= Old-Versions/Official-3.62/Unix
PKGNAMESUFFIX= 36
DIST_SUBDIR= povray36
MAINTAINER= ports@FreeBSD.org
COMMENT= Persistence of Vision Ray Tracer
LIB_DEPENDS= libpng.so:graphics/png \
libtiff.so:graphics/tiff
BROKEN_powerpc64= Does not build: error: 64 bit CPU required
USE_XORG= x11
USES= gmake jpeg tar:bzip2
GNU_CONFIGURE= yes
USE_CXXSTD= gnu++98
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: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>
|