1994-12-29 01:10:57 +00:00
|
|
|
# New ports collection makefile for: POV-Ray
|
1996-12-05 12:45:59 +00:00
|
|
|
# Date created: 3 Dec 1996
|
|
|
|
# Whom: paulo@isr.uc.pt
|
1994-12-29 01:10:57 +00:00
|
|
|
#
|
1999-08-25 06:16:32 +00:00
|
|
|
# $FreeBSD$
|
1994-12-29 01:10:57 +00:00
|
|
|
#
|
1996-12-06 23:43:32 +00:00
|
|
|
|
2000-04-14 10:48:02 +00:00
|
|
|
PORTNAME= povray
|
2002-09-04 17:38:51 +00:00
|
|
|
PORTVERSION= 3.5
|
2004-02-04 05:21:48 +00:00
|
|
|
PORTREVISION= 3
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= graphics
|
2001-02-12 11:37:46 +00:00
|
|
|
MASTER_SITES= ftp://ftp.povray.org/pub/povray/%SUBDIR%/ \
|
|
|
|
ftp://ftp.gigabell.net/pub/unix/apps/graphics/povray/%SUBDIR%/ \
|
|
|
|
ftp://www.hensa.ac.uk/mirrors/povray/%SUBDIR%/ \
|
2002-09-04 17:38:51 +00:00
|
|
|
ftp://ftp.fh-aachen.de/pub/mirror/ftp.povray.org/povray/%SUBDIR%/ \
|
|
|
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/povray/%SUBDIR%,}
|
|
|
|
MASTER_SITE_SUBDIR= Official/Unix
|
|
|
|
DISTNAME= povuni_s
|
2004-05-06 19:49:54 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2002-09-04 17:38:51 +00:00
|
|
|
DIST_SUBDIR= povray35
|
1996-12-06 23:43:32 +00:00
|
|
|
|
2002-12-01 23:43:11 +00:00
|
|
|
MAINTAINER= maho@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Persistence of Vision Ray Tracer
|
1997-09-22 09:14:44 +00:00
|
|
|
|
2004-08-16 12:24:01 +00:00
|
|
|
.if defined(WITH_ICC)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
|
|
|
|
.endif
|
|
|
|
|
2002-09-04 17:38:51 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
2003-11-09 22:45:01 +00:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
|
|
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
|
|
|
|
.endif
|
1998-08-20 18:56:00 +00:00
|
|
|
|
2002-12-01 23:43:11 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-3.50c
|
1998-12-30 11:48:35 +00:00
|
|
|
USE_XLIB= yes
|
2004-05-06 19:49:54 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-09-04 17:38:51 +00:00
|
|
|
USE_GMAKE= yes
|
2004-05-06 19:49:54 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-04-03 23:53:10 +00:00
|
|
|
LATEST_LINK= ${PORTNAME}35
|
2002-12-01 23:43:11 +00:00
|
|
|
|
|
|
|
.if defined(WITH_OPTIMIZED_FLAGS)
|
2003-12-28 14:49:05 +00:00
|
|
|
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 (${MACHINE_ARCH} == "i386" && !${MACHINE_ARCH} == "amd64" )
|
|
|
|
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
|
|
|
|
CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
|
2002-12-01 23:43:11 +00:00
|
|
|
.endif # i386
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 12:24:01 +00:00
|
|
|
.if defined(WITH_ICC)
|
|
|
|
CC= ${LOCALBASE}/intel_cc_80/bin/icc
|
|
|
|
CXX= ${LOCALBASE}/intel_cc_80/bin/icpc
|
2004-08-17 06:22:05 +00:00
|
|
|
CFLAGS= -O3 -tpp7 -xN -Vaxlib
|
|
|
|
CXXFLAGS= -O3 -tpp7 -xN -Vaxlib
|
2004-08-16 12:24:01 +00:00
|
|
|
.endif
|
|
|
|
|
2004-05-06 19:49:54 +00:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-12-01 23:43:11 +00:00
|
|
|
CONFIGURE_ARGS= --x-includes=${X11BASE}/include
|
|
|
|
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include" \
|
|
|
|
CFLAGS="${CFLAGS} -L${LOCALBASE}/lib -I${LOCALBASE}/include"
|
1996-12-06 23:43:32 +00:00
|
|
|
|
2002-09-04 17:38:51 +00:00
|
|
|
MAN1= povray.1
|
1996-12-05 12:45:59 +00:00
|
|
|
|
2002-09-04 17:38:51 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's+@PREFIX@+${PREFIX}+g;' ${WRKSRC}/povray.ini
|
2002-12-01 23:43:11 +00:00
|
|
|
@${REINPLACE_CMD} -e 's+%INSTALLDIR%+${PREFIX}/share/${PORTNAME}-${PORTVERSION}+g;' ${WRKSRC}/povray.conf
|
|
|
|
.if !defined(WITH_OPTIMIZED_FLAGS)
|
|
|
|
@${ECHO} "You can optimize by setting WITH_OPTIMIZED_FLAGS=yes."
|
|
|
|
.endif
|
1994-12-29 01:10:57 +00:00
|
|
|
|
1996-12-05 12:45:59 +00:00
|
|
|
do-install:
|
2002-12-01 23:43:11 +00:00
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install-exec)
|
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install-data)
|
2002-09-04 17:38:51 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-12-01 23:43:11 +00:00
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install-docDATA)
|
|
|
|
@(cd ${WRKSRC}/doc ; ${GMAKE} install)
|
2002-09-04 17:38:51 +00:00
|
|
|
.endif
|
1996-12-06 23:43:32 +00:00
|
|
|
@${RM} -f ${PREFIX}/man/man1/povray.1*
|
2002-09-04 17:38:51 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/povray.1 ${PREFIX}/man/man1
|
1994-12-29 01:10:57 +00:00
|
|
|
|
2002-12-01 23:43:11 +00:00
|
|
|
post-install:
|
|
|
|
@${SED} -e 's,/usr/local,${PREFIX},g' ${DESCR}
|
|
|
|
|
1994-12-29 01:10:57 +00:00
|
|
|
.include <bsd.port.mk>
|