Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2012 05:20:45 GMT
From:      Shane Ambler <FreeBSD@Shaneware.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173676: [new port] graphics/openshadinglanguage
Message-ID:  <201211170520.qAH5Kj0e082178@red.freebsd.org>
Resent-Message-ID: <201211170530.qAH5U059060882@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         173676
>Category:       ports
>Synopsis:       [new port] graphics/openshadinglanguage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 17 05:30:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Shane Ambler
>Release:        9.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD leader.local 9.0-RELEASE-p1 FreeBSD 9.0-RELEASE-p1 #1: Tue May 15 12:34:33 CST 2012     shane@leader.local:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The next release of blender expected in a few weeks includes the option of adding support for Open Shading Language.

This new port adds the libs needed for that.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	openshadinglanguage
#	openshadinglanguage/pkg-descr
#	openshadinglanguage/Makefile
#	openshadinglanguage/distinfo
#	openshadinglanguage/pkg-plist
#
echo c - openshadinglanguage
mkdir -p openshadinglanguage > /dev/null 2>&1
echo x - openshadinglanguage/pkg-descr
sed 's/^X//' >openshadinglanguage/pkg-descr << '1782f932c588eb45227a32541c1f137f'
XOpen Shading Language (OSL) is a small but rich language for
Xprogrammable shading in advanced renderers and other applications, ideal
Xfor describing materials, lights, displacement, and pattern generation.
X
XOSL was developed by Sony Pictures Imageworks for use in its in-house
Xrenderer used for feature film animation and visual effects. The
Xlanguage specification was developed with input by other visual effects
Xand animation studios who also wish to use it.
X
XWWW: http://code.google.com/p/openshadinglanguage/
1782f932c588eb45227a32541c1f137f
echo x - openshadinglanguage/Makefile
sed 's/^X//' >openshadinglanguage/Makefile << 'e9fb5c6fa30bd6f28ee0674c24ab7077'
X# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
X# $FreeBSD$
X
XPORTNAME=	openshadinglanguage
XPORTVERSION=	1.2.0
XCATEGORIES=	graphics devel
X
XMAINTAINER=	FreeBSD@Shaneware.biz
XCOMMENT=	Advanced shading language for production GI renderers
X
XLICENSE=	BSD
X
XBUILD_DEPENDS=	llvm>=3.1:${PORTSDIR}/devel/llvm
XBUILD_DEPENDS+=	flex>=2.5.37:${PORTSDIR}/textproc/flex
XLIB_DEPENDS=	boost_thread:${PORTSDIR}/devel/boost-libs
XLIB_DEPENDS+=	IlmImf:${PORTSDIR}/graphics/OpenEXR
XLIB_DEPENDS+=	OpenImageIO:${PORTSDIR}/graphics/openimageio
XRUN_DEPENDS=	llvm>=3.1:${PORTSDIR}/devel/llvm
X
XUSE_GITHUB=	yes
XGH_ACCOUNT=	sambler
XGH_PROJECT=	OpenShadingLanguage
XGH_TAGNAME=	blender-r51838
XGH_COMMIT=	ee10fca
X
XWRKSRC+=	${WRKDIR}/OpenShadingLanguage-${GH_TAGNAME}/src
X
XUSE_CMAKE=	yes
XCMAKE_VERBOSE=	yes
XCMAKE_OUTSOURCE=	yes
XCMAKE_ARGS=	-DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex
XCMAKE_ARGS+=	-DUSE_TBB:BOOL=OFF
XCXXFLAGS+=	-I${LOCALBASE}/include/flex
XUSE_LDCONFIG=	yes
XUSE_BISON=	build
XMAKE_JOBS_SAFE=	yes
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 900000
XBUILD_DEPENDS+=	clang:${PORTSDIR}/lang/clang
X.endif
X
X.if ${ARCH} == i386
XCFLAGS+=	-march=i586
X.endif
X
Xpost-install:
X.for LNAME in oslcomp oslexec oslquery testshade
X	cd ${PREFIX}/lib && ${MV} -f lib${LNAME}.so lib${LNAME}.so.1
X	cd ${PREFIX}/lib && ${LN} -sf lib${LNAME}.so.1 lib${LNAME}.so
X.endfor
X
X.include <bsd.port.post.mk>
e9fb5c6fa30bd6f28ee0674c24ab7077
echo x - openshadinglanguage/distinfo
sed 's/^X//' >openshadinglanguage/distinfo << 'a0e3c6126d3863377e1759f9145d5a15'
XSHA256 (openshadinglanguage-1.2.0.tar.gz) = 9e7713300f0daa9bb5f896d4c71b0ec9f9c2afc1b29d9a5401976a033a4dfe52
XSIZE (openshadinglanguage-1.2.0.tar.gz) = 10258997
a0e3c6126d3863377e1759f9145d5a15
echo x - openshadinglanguage/pkg-plist
sed 's/^X//' >openshadinglanguage/pkg-plist << 'f65abe7d44a3958cdcf418cf4440169c'
Xbin/oslc
Xbin/oslinfo
Xbin/testrender
Xbin/testshade
Xbin/testshade_dso
Xinclude/OSL/accum.h
Xinclude/OSL/dual_vec.h
Xinclude/OSL/dual.h
Xinclude/OSL/export.h
Xinclude/OSL/genclosure.h
Xinclude/OSL/Imathx.h
Xinclude/OSL/matrix22.h
Xinclude/OSL/optautomata.h
Xinclude/OSL/oslclosure.h
Xinclude/OSL/oslcomp.h
Xinclude/OSL/oslconfig.h
Xinclude/OSL/oslexec.h
Xinclude/OSL/oslquery.h
Xinclude/OSL/oslversion.h
Xlib/liboslcomp.so
Xlib/liboslcomp.so.1
Xlib/liboslexec.so
Xlib/liboslexec.so.1
Xlib/liboslquery.so
Xlib/liboslquery.so.1
Xlib/libtestshade.so
Xlib/libtestshade.so.1
X%%DATADIR%%/CHANGES
X%%DATADIR%%/INSTALL
X%%DATADIR%%/LICENSE
X%%DATADIR%%/README
X%%DATADIR%%/osl-languagespec.pdf
X%%DATADIR%%/shaders/emitter.osl
X%%DATADIR%%/shaders/emitter.oso
X%%DATADIR%%/shaders/glass.osl
X%%DATADIR%%/shaders/glass.oso
X%%DATADIR%%/shaders/image.osl
X%%DATADIR%%/shaders/image.oso
X%%DATADIR%%/shaders/matte.osl
X%%DATADIR%%/shaders/matte.oso
X%%DATADIR%%/shaders/metal.osl
X%%DATADIR%%/shaders/metal.oso
X%%DATADIR%%/shaders/oslutil.h
X%%DATADIR%%/shaders/stdosl.h
X%%DATADIR%%/shaders/ubersurface.osl
X%%DATADIR%%/shaders/ubersurface.oso
X@dirrm include/OSL
X@dirrm %%DATADIR%%/shaders
X@dirrm %%DATADIR%%
f65abe7d44a3958cdcf418cf4440169c
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211170520.qAH5Kj0e082178>