diff options
author | Will Andrews <will@FreeBSD.org> | 2003-06-03 03:29:55 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2003-06-03 03:29:55 +0000 |
commit | e7684d7ddb8318939223a63a77c0c257c8c72bdf (patch) | |
tree | f45cf5d5886903fd7503216c0c7b7be1f28da335 /graphics | |
parent | b65bbf6a151c92f425cb871711bdb52f67c0f2fb (diff) | |
download | ports-e7684d7ddb8318939223a63a77c0c257c8c72bdf.tar.gz ports-e7684d7ddb8318939223a63a77c0c257c8c72bdf.zip |
Add yafray 0.0.3, a fast XML based raytracer.
PR: 52405
Submitted by: David Yeske <dyeske@yahoo.com>
Notes
Notes:
svn path=/head/; revision=82123
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/yafaray/Makefile | 51 | ||||
-rw-r--r-- | graphics/yafaray/distinfo | 1 | ||||
-rw-r--r-- | graphics/yafaray/files/patch-src_loader_loader.cc | 12 | ||||
-rw-r--r-- | graphics/yafaray/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/yafaray/pkg-plist | 2 | ||||
-rw-r--r-- | graphics/yafray/Makefile | 51 | ||||
-rw-r--r-- | graphics/yafray/distinfo | 1 | ||||
-rw-r--r-- | graphics/yafray/files/patch-src_loader_loader.cc | 12 | ||||
-rw-r--r-- | graphics/yafray/pkg-descr | 6 | ||||
-rw-r--r-- | graphics/yafray/pkg-plist | 2 |
11 files changed, 145 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index d45ae0c315df..fedeb53cea76 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -421,6 +421,7 @@ SUBDIR += xv-m17n SUBDIR += xwpick SUBDIR += xzgv + SUBDIR += yafray SUBDIR += zimg SUBDIR += zphoto diff --git a/graphics/yafaray/Makefile b/graphics/yafaray/Makefile new file mode 100644 index 000000000000..a97bcb31f2a4 --- /dev/null +++ b/graphics/yafaray/Makefile @@ -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> diff --git a/graphics/yafaray/distinfo b/graphics/yafaray/distinfo new file mode 100644 index 000000000000..de160ca34627 --- /dev/null +++ b/graphics/yafaray/distinfo @@ -0,0 +1 @@ +MD5 (yafray-0.0.3.tar.gz) = dc2b45d8d1cd1e83aecdf01a3ad4232d diff --git a/graphics/yafaray/files/patch-src_loader_loader.cc b/graphics/yafaray/files/patch-src_loader_loader.cc new file mode 100644 index 000000000000..17ea8c9b40a0 --- /dev/null +++ b/graphics/yafaray/files/patch-src_loader_loader.cc @@ -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[]= diff --git a/graphics/yafaray/pkg-descr b/graphics/yafaray/pkg-descr new file mode 100644 index 000000000000..601143a1d6f8 --- /dev/null +++ b/graphics/yafaray/pkg-descr @@ -0,0 +1,6 @@ +This is an advanced raytracer that uses XML. + +WWW: http://www.yafray.org/ + +- David +dyeske@yahoo.com diff --git a/graphics/yafaray/pkg-plist b/graphics/yafaray/pkg-plist new file mode 100644 index 000000000000..c51812a9c7be --- /dev/null +++ b/graphics/yafaray/pkg-plist @@ -0,0 +1,2 @@ +bin/yafray +etc/gram.yafray diff --git a/graphics/yafray/Makefile b/graphics/yafray/Makefile new file mode 100644 index 000000000000..a97bcb31f2a4 --- /dev/null +++ b/graphics/yafray/Makefile @@ -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> diff --git a/graphics/yafray/distinfo b/graphics/yafray/distinfo new file mode 100644 index 000000000000..de160ca34627 --- /dev/null +++ b/graphics/yafray/distinfo @@ -0,0 +1 @@ +MD5 (yafray-0.0.3.tar.gz) = dc2b45d8d1cd1e83aecdf01a3ad4232d diff --git a/graphics/yafray/files/patch-src_loader_loader.cc b/graphics/yafray/files/patch-src_loader_loader.cc new file mode 100644 index 000000000000..17ea8c9b40a0 --- /dev/null +++ b/graphics/yafray/files/patch-src_loader_loader.cc @@ -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[]= diff --git a/graphics/yafray/pkg-descr b/graphics/yafray/pkg-descr new file mode 100644 index 000000000000..601143a1d6f8 --- /dev/null +++ b/graphics/yafray/pkg-descr @@ -0,0 +1,6 @@ +This is an advanced raytracer that uses XML. + +WWW: http://www.yafray.org/ + +- David +dyeske@yahoo.com diff --git a/graphics/yafray/pkg-plist b/graphics/yafray/pkg-plist new file mode 100644 index 000000000000..c51812a9c7be --- /dev/null +++ b/graphics/yafray/pkg-plist @@ -0,0 +1,2 @@ +bin/yafray +etc/gram.yafray |