mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add yafray 0.0.3, a fast XML based raytracer.
PR: 52405 Submitted by: David Yeske <dyeske@yahoo.com>
This commit is contained in:
parent
b65bbf6a15
commit
e7684d7ddb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82123
11 changed files with 145 additions and 0 deletions
|
@ -421,6 +421,7 @@
|
|||
SUBDIR += xv-m17n
|
||||
SUBDIR += xwpick
|
||||
SUBDIR += xzgv
|
||||
SUBDIR += yafray
|
||||
SUBDIR += zimg
|
||||
SUBDIR += zphoto
|
||||
|
||||
|
|
51
graphics/yafaray/Makefile
Normal file
51
graphics/yafaray/Makefile
Normal file
|
@ -0,0 +1,51 @@
|
|||
# New ports collection makefile for: yafray
|
||||
# Date created: 18 May 2003
|
||||
# Whom: David Yeske <dyeske@yahoo.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= yafray
|
||||
PORTVERSION= 0.0.3
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.coala.uniovi.es/~jandro/noname/downloads/
|
||||
|
||||
MAINTAINER= dyeske@yahoo.com
|
||||
COMMENT= A fast XML based raytracer
|
||||
|
||||
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
||||
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib ${PTHREAD_CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
||||
|
||||
.if defined(WITH_OPTIMIZED_CFLAGS)
|
||||
CFLAGS+= -O3 -ffast-math
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@${ECHO_MSG} "You can enable additional compilation optimizations"
|
||||
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500041
|
||||
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|-lpthread|${PTHREAD_LIBS}|' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
@${REINPLACE_CMD} -E -e \
|
||||
's|^CXX =.+$$|CXX=${CXX}|; \
|
||||
s|-O3||; \
|
||||
s|-ffast-math||; \
|
||||
s|-Wall|${CXXFLAGS}|' \
|
||||
${WRKSRC}/src/Makefile.in
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
graphics/yafaray/distinfo
Normal file
1
graphics/yafaray/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (yafray-0.0.3.tar.gz) = dc2b45d8d1cd1e83aecdf01a3ad4232d
|
12
graphics/yafaray/files/patch-src_loader_loader.cc
Normal file
12
graphics/yafaray/files/patch-src_loader_loader.cc
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- src/loader/loader.cc.orig Sun May 18 13:41:35 2003
|
||||
+++ src/loader/loader.cc Sun May 18 13:42:24 2003
|
||||
@@ -32,6 +32,9 @@
|
||||
#include<zlib.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#define __GNU_LIBRARY__
|
||||
+#endif
|
||||
#include <getopt.h>
|
||||
|
||||
string path[]=
|
6
graphics/yafaray/pkg-descr
Normal file
6
graphics/yafaray/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
This is an advanced raytracer that uses XML.
|
||||
|
||||
WWW: http://www.yafray.org/
|
||||
|
||||
- David
|
||||
dyeske@yahoo.com
|
2
graphics/yafaray/pkg-plist
Normal file
2
graphics/yafaray/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
|||
bin/yafray
|
||||
etc/gram.yafray
|
51
graphics/yafray/Makefile
Normal file
51
graphics/yafray/Makefile
Normal file
|
@ -0,0 +1,51 @@
|
|||
# New ports collection makefile for: yafray
|
||||
# Date created: 18 May 2003
|
||||
# Whom: David Yeske <dyeske@yahoo.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= yafray
|
||||
PORTVERSION= 0.0.3
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.coala.uniovi.es/~jandro/noname/downloads/
|
||||
|
||||
MAINTAINER= dyeske@yahoo.com
|
||||
COMMENT= A fast XML based raytracer
|
||||
|
||||
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
|
||||
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib ${PTHREAD_CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
||||
|
||||
.if defined(WITH_OPTIMIZED_CFLAGS)
|
||||
CFLAGS+= -O3 -ffast-math
|
||||
.endif
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITH_OPTIMIZED_CFLAGS)
|
||||
@${ECHO_MSG} "You can enable additional compilation optimizations"
|
||||
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500041
|
||||
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|-lpthread|${PTHREAD_LIBS}|' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
@${REINPLACE_CMD} -E -e \
|
||||
's|^CXX =.+$$|CXX=${CXX}|; \
|
||||
s|-O3||; \
|
||||
s|-ffast-math||; \
|
||||
s|-Wall|${CXXFLAGS}|' \
|
||||
${WRKSRC}/src/Makefile.in
|
||||
|
||||
.include <bsd.port.post.mk>
|
1
graphics/yafray/distinfo
Normal file
1
graphics/yafray/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (yafray-0.0.3.tar.gz) = dc2b45d8d1cd1e83aecdf01a3ad4232d
|
12
graphics/yafray/files/patch-src_loader_loader.cc
Normal file
12
graphics/yafray/files/patch-src_loader_loader.cc
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- src/loader/loader.cc.orig Sun May 18 13:41:35 2003
|
||||
+++ src/loader/loader.cc Sun May 18 13:42:24 2003
|
||||
@@ -32,6 +32,9 @@
|
||||
#include<zlib.h>
|
||||
#endif
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#define __GNU_LIBRARY__
|
||||
+#endif
|
||||
#include <getopt.h>
|
||||
|
||||
string path[]=
|
6
graphics/yafray/pkg-descr
Normal file
6
graphics/yafray/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
This is an advanced raytracer that uses XML.
|
||||
|
||||
WWW: http://www.yafray.org/
|
||||
|
||||
- David
|
||||
dyeske@yahoo.com
|
2
graphics/yafray/pkg-plist
Normal file
2
graphics/yafray/pkg-plist
Normal file
|
@ -0,0 +1,2 @@
|
|||
bin/yafray
|
||||
etc/gram.yafray
|
Loading…
Add table
Reference in a new issue