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
|
2004-11-23 04:23:46 +01:00
|
|
|
PORTVERSION= 3.6.1
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 7
|
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%/ \
|
2005-09-30 19:48:57 +02:00
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.povray.org/pub/povray/%SUBDIR%/ \
|
2002-09-04 19:38:51 +02:00
|
|
|
${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/povray/%SUBDIR%,}
|
|
|
|
MASTER_SITE_SUBDIR= Official/Unix
|
2004-11-23 04:23:46 +01:00
|
|
|
DIST_SUBDIR= povray36
|
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
|
|
|
|
2004-08-16 14:24:01 +02:00
|
|
|
.if defined(WITH_ICC)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/intel_cc_80/bin/icc:${PORTSDIR}/lang/icc
|
|
|
|
.endif
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
2002-09-04 19:38:51 +02:00
|
|
|
tiff:${PORTSDIR}/graphics/tiff \
|
2003-11-09 23:45:01 +01:00
|
|
|
jpeg:${PORTSDIR}/graphics/jpeg
|
1998-08-20 20:56:00 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2006-03-15 06:54:21 +01:00
|
|
|
USE_BZIP2= yes
|
2002-09-04 19:38:51 +02:00
|
|
|
USE_GMAKE= yes
|
2004-05-06 21:49:54 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262
|
2004-11-23 04:23:46 +01:00
|
|
|
LATEST_LINK= ${PORTNAME}36
|
2002-12-02 00:43:11 +01:00
|
|
|
|
2006-03-15 06:54:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if (${ARCH} == "i386")
|
|
|
|
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
|
|
|
|
.endif
|
|
|
|
|
2002-12-02 00:43:11 +01:00
|
|
|
.if defined(WITH_OPTIMIZED_FLAGS)
|
2003-12-28 15:49:05 +01: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
|
2006-03-15 06:54:21 +01:00
|
|
|
.if (${ARCH} == "i386" && !${ARCH} == "amd64" )
|
2003-12-28 15:49:05 +01:00
|
|
|
CFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
|
|
|
|
CXXFLAGS+= -mfancy-math-387 -mpreferred-stack-boundary=3 -malign-double
|
2002-12-02 00:43:11 +01:00
|
|
|
.endif # i386
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 14:24:01 +02:00
|
|
|
.if defined(WITH_ICC)
|
|
|
|
CC= ${LOCALBASE}/intel_cc_80/bin/icc
|
|
|
|
CXX= ${LOCALBASE}/intel_cc_80/bin/icpc
|
2004-08-17 09:06:19 +02:00
|
|
|
CFLAGS= -O3 -tpp7 -axN -Vaxlib
|
|
|
|
CXXFLAGS= -O3 -tpp7 -axN -Vaxlib
|
2004-08-16 14:24:01 +02:00
|
|
|
.endif
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS= --x-includes="${LOCALBASE}/include" --includedir=${LOCALBASE} \
|
|
|
|
CXXFLAGS="${CXXFLAGS} -L${LOCALBASE}/lib" \
|
|
|
|
CFLAGS="${CFLAGS} -L${LOCALBASE}/lib" \
|
2004-11-23 04:23:46 +01:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" COMPILED_BY=${MAINTAINER} \
|
|
|
|
--disable-optimiz
|
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:
|
2004-11-23 04:23:46 +01:00
|
|
|
#@${REINPLACE_CMD} -e 's+@PREFIX@+${PREFIX}+g;' ${WRKSRC}/povray.ini
|
|
|
|
#@${REINPLACE_CMD} -e 's+%INSTALLDIR%+${PREFIX}/share/${PORTNAME}-${PORTVERSION}+g;' ${WRKSRC}/povray.conf
|
2002-12-02 00:43:11 +01:00
|
|
|
.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:
|
2004-11-23 04:23:46 +01:00
|
|
|
@(cd ${WRKSRC} ; ${GMAKE} install)
|
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}
|
|
|
|
|
2004-11-18 09:23:04 +01:00
|
|
|
.include <bsd.port.post.mk>
|