aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/openshadinglanguage
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2013-01-20 05:13:17 +0800
committermva <mva@FreeBSD.org>2013-01-20 05:13:17 +0800
commit15f993b89af304cd0ef2c0caf49e1342a13c79a0 (patch)
treed00382cd39fe81c6927786d394a9ffa2d241a690 /graphics/openshadinglanguage
parent2fedf17888a3918903be34010554f3e7ae85a30b (diff)
downloadfreebsd-ports-gnome-15f993b89af304cd0ef2c0caf49e1342a13c79a0.tar.gz
freebsd-ports-gnome-15f993b89af304cd0ef2c0caf49e1342a13c79a0.tar.zst
freebsd-ports-gnome-15f993b89af304cd0ef2c0caf49e1342a13c79a0.zip
Open Shading Language (OSL) is a small but rich language for
programmable shading in advanced renderers and other applications, ideal for describing materials, lights, displacement, and pattern generation. OSL was developed by Sony Pictures Imageworks for use in its in-house renderer used for feature film animation and visual effects. The language specification was developed with input by other visual effects and animation studios who also wish to use it. WWW: http://code.google.com/p/openshadinglanguage/ PR: ports/173676 Submitted by: Shane Ambler <FreeBSD@Shaneware.biz>
Diffstat (limited to 'graphics/openshadinglanguage')
-rw-r--r--graphics/openshadinglanguage/Makefile54
-rw-r--r--graphics/openshadinglanguage/distinfo2
-rw-r--r--graphics/openshadinglanguage/pkg-descr10
-rw-r--r--graphics/openshadinglanguage/pkg-plist49
4 files changed, 115 insertions, 0 deletions
diff --git a/graphics/openshadinglanguage/Makefile b/graphics/openshadinglanguage/Makefile
new file mode 100644
index 000000000000..f1e813deec9b
--- /dev/null
+++ b/graphics/openshadinglanguage/Makefile
@@ -0,0 +1,54 @@
+# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
+# $FreeBSD$
+
+PORTNAME= openshadinglanguage
+PORTVERSION= 1.3.0
+CATEGORIES= graphics devel
+
+MAINTAINER= FreeBSD@Shaneware.biz
+COMMENT= Advanced shading language for production GI renderers
+
+LICENSE= BSD
+
+BUILD_DEPENDS= llvm>=3.1:${PORTSDIR}/devel/llvm \
+ flex>=2.5.37:${PORTSDIR}/textproc/flex
+LIB_DEPENDS= boost_thread:${PORTSDIR}/devel/boost-libs \
+ IlmImf:${PORTSDIR}/graphics/OpenEXR \
+ OpenImageIO:${PORTSDIR}/graphics/openimageio
+RUN_DEPENDS= llvm>=3.1:${PORTSDIR}/devel/llvm
+
+USE_GITHUB= yes
+GH_ACCOUNT= sambler
+GH_PROJECT= OpenShadingLanguage
+GH_TAGNAME= osl-20130106
+GH_COMMIT= 3c69652
+
+WRKSRC+= ${WRKDIR}/sambler-OpenShadingLanguage-${GH_COMMIT}/src
+
+USE_CMAKE= yes
+CMAKE_VERBOSE= yes
+CMAKE_OUTSOURCE= yes
+CMAKE_ARGS= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex \
+ -DUSE_TBB:BOOL=OFF
+CXXFLAGS+= -I${LOCALBASE}/include/flex
+USE_LDCONFIG= yes
+USE_BISON= build
+MAKE_JOBS_SAFE= yes
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 900000
+BUILD_DEPENDS+= clang:${PORTSDIR}/lang/clang
+.endif
+
+.if ${ARCH} == i386
+CFLAGS+= -march=i586
+.endif
+
+post-install:
+.for LNAME in oslcomp oslexec oslquery testshade
+ cd ${PREFIX}/lib && ${MV} -f lib${LNAME}.so lib${LNAME}.so.1
+ cd ${PREFIX}/lib && ${LN} -sf lib${LNAME}.so.1 lib${LNAME}.so
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/graphics/openshadinglanguage/distinfo b/graphics/openshadinglanguage/distinfo
new file mode 100644
index 000000000000..5481649dd417
--- /dev/null
+++ b/graphics/openshadinglanguage/distinfo
@@ -0,0 +1,2 @@
+SHA256 (openshadinglanguage-1.3.0.tar.gz) = 3c19c3b0ac6d8e7d260d1fe0c738b8d6a9014dd5ee186aba74db3f1197e16a81
+SIZE (openshadinglanguage-1.3.0.tar.gz) = 10310632
diff --git a/graphics/openshadinglanguage/pkg-descr b/graphics/openshadinglanguage/pkg-descr
new file mode 100644
index 000000000000..3a946a6c6d4b
--- /dev/null
+++ b/graphics/openshadinglanguage/pkg-descr
@@ -0,0 +1,10 @@
+Open Shading Language (OSL) is a small but rich language for
+programmable shading in advanced renderers and other applications, ideal
+for describing materials, lights, displacement, and pattern generation.
+
+OSL was developed by Sony Pictures Imageworks for use in its in-house
+renderer used for feature film animation and visual effects. The
+language specification was developed with input by other visual effects
+and animation studios who also wish to use it.
+
+WWW: http://code.google.com/p/openshadinglanguage/
diff --git a/graphics/openshadinglanguage/pkg-plist b/graphics/openshadinglanguage/pkg-plist
new file mode 100644
index 000000000000..d15c3349525b
--- /dev/null
+++ b/graphics/openshadinglanguage/pkg-plist
@@ -0,0 +1,49 @@
+bin/oslc
+bin/oslinfo
+bin/testrender
+bin/testshade
+bin/testshade_dso
+include/OSL/accum.h
+include/OSL/dual_vec.h
+include/OSL/dual.h
+include/OSL/export.h
+include/OSL/genclosure.h
+include/OSL/Imathx.h
+include/OSL/matrix22.h
+include/OSL/optautomata.h
+include/OSL/oslclosure.h
+include/OSL/oslcomp.h
+include/OSL/oslconfig.h
+include/OSL/oslexec.h
+include/OSL/oslquery.h
+include/OSL/oslversion.h
+lib/liboslcomp.so
+lib/liboslcomp.so.1
+lib/liboslexec.so
+lib/liboslexec.so.1
+lib/liboslquery.so
+lib/liboslquery.so.1
+lib/libtestshade.so
+lib/libtestshade.so.1
+%%DATADIR%%/CHANGES
+%%DATADIR%%/INSTALL
+%%DATADIR%%/LICENSE
+%%DATADIR%%/README.md
+%%DATADIR%%/osl-languagespec.pdf
+%%DATADIR%%/shaders/emitter.osl
+%%DATADIR%%/shaders/emitter.oso
+%%DATADIR%%/shaders/glass.osl
+%%DATADIR%%/shaders/glass.oso
+%%DATADIR%%/shaders/image.osl
+%%DATADIR%%/shaders/image.oso
+%%DATADIR%%/shaders/matte.osl
+%%DATADIR%%/shaders/matte.oso
+%%DATADIR%%/shaders/metal.osl
+%%DATADIR%%/shaders/metal.oso
+%%DATADIR%%/shaders/oslutil.h
+%%DATADIR%%/shaders/stdosl.h
+%%DATADIR%%/shaders/ubersurface.osl
+%%DATADIR%%/shaders/ubersurface.oso
+@dirrm include/OSL
+@dirrm %%DATADIR%%/shaders
+@dirrm %%DATADIR%%