1994-12-29 02:10:57 +01:00
|
|
|
# New ports collection makefile for: POV-Ray
|
1996-12-05 13:45:59 +01:00
|
|
|
# Date created: 3 Dec 1996
|
|
|
|
# Whom: paulo@isr.uc.pt
|
1994-12-29 02:10:57 +01:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1994-12-29 02:10:57 +01:00
|
|
|
#
|
1996-12-07 00:43:32 +01:00
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= povray
|
2002-09-04 19:38:51 +02:00
|
|
|
PORTVERSION= 3.5
|
2003-04-17 13:42:07 +02:00
|
|
|
PORTREVISION= 2
|
1996-11-18 12:44:27 +01:00
|
|
|
CATEGORIES= graphics
|
2001-02-12 12:37:46 +01: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 19:38:51 +02: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
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DIST_SUBDIR= povray35
|
1996-12-07 00:43:32 +01:00
|
|
|
|
2002-12-02 00:43:11 +01:00
|
|
|
MAINTAINER= maho@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Persistence of Vision Ray Tracer
|
1997-09-22 11:14:44 +02:00
|
|
|
|
2002-09-04 19:38:51 +02:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
|
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg \
|
|
|
|
vga:${PORTSDIR}/graphics/svgalib
|
1998-08-20 20:56:00 +02:00
|
|
|
|
2002-12-02 00:43:11 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-3.50c
|
1998-12-30 12:48:35 +01:00
|
|
|
USE_XLIB= yes
|
2002-09-04 19:38:51 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2002-12-02 00:43:11 +01:00
|
|
|
|
|
|
|
.if defined(WITH_OPTIMIZED_FLAGS)
|
|
|
|
CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double
|
|
|
|
CXXFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -Wno-multichar
|
|
|
|
.if (${MACHINE_ARCH} == "i386")
|
|
|
|
CFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387
|
|
|
|
CXXFLAGS+= -mcpu=i686 -march=i686 -mfancy-math-387
|
|
|
|
.endif # i386
|
|
|
|
.endif
|
|
|
|
|
2002-09-04 19:38:51 +02:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2002-12-02 00:43:11 +01: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-07 00:43:32 +01:00
|
|
|
|
2002-09-04 19:38:51 +02:00
|
|
|
MAN1= povray.1
|
1996-12-05 13:45:59 +01:00
|
|
|
|
2002-09-04 19:38:51 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's+@PREFIX@+${PREFIX}+g;' ${WRKSRC}/povray.ini
|
2002-12-02 00:43:11 +01: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 02:10:57 +01:00
|
|
|
|
1996-12-05 13:45:59 +01:00
|
|
|
do-install:
|
2002-12-02 00:43:11 +01:00
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install-exec)
|
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install-data)
|
2002-09-04 19:38:51 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-12-02 00:43:11 +01:00
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install-docDATA)
|
|
|
|
@(cd ${WRKSRC}/doc ; ${GMAKE} install)
|
2002-09-04 19:38:51 +02:00
|
|
|
.endif
|
1996-12-07 00:43:32 +01:00
|
|
|
@${RM} -f ${PREFIX}/man/man1/povray.1*
|
2002-09-04 19:38:51 +02:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/povray.1 ${PREFIX}/man/man1
|
1994-12-29 02:10:57 +01:00
|
|
|
|
2002-12-02 00:43:11 +01:00
|
|
|
post-install:
|
|
|
|
@${SED} -e 's,/usr/local,${PREFIX},g' ${DESCR}
|
|
|
|
|
1994-12-29 02:10:57 +01:00
|
|
|
.include <bsd.port.mk>
|