2013-01-19 22:13:17 +01:00
|
|
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openshadinglanguage
|
2013-07-20 22:36:42 +02:00
|
|
|
PORTVERSION= 1.3.3
|
2013-01-19 22:13:17 +01:00
|
|
|
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
|
2013-02-19 14:59:08 +01:00
|
|
|
GH_ACCOUNT= imageworks
|
2013-01-19 22:13:17 +01:00
|
|
|
GH_PROJECT= OpenShadingLanguage
|
2013-02-19 14:59:08 +01:00
|
|
|
GH_TAGNAME= Release-${PORTVERSION}
|
2013-07-20 22:36:42 +02:00
|
|
|
GH_COMMIT= 18671dc
|
2013-01-19 22:13:17 +01:00
|
|
|
|
2013-02-19 14:59:08 +01:00
|
|
|
WRKSRC= ${WRKDIR}/imageworks-OpenShadingLanguage-${GH_COMMIT}/src
|
2013-01-19 22:13:17 +01:00
|
|
|
|
|
|
|
CMAKE_ARGS= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex \
|
|
|
|
-DUSE_TBB:BOOL=OFF
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include/flex
|
|
|
|
USE_LDCONFIG= yes
|
2013-03-22 21:06:14 +01:00
|
|
|
USES= bison cmake:outsource
|
2013-01-19 22:13:17 +01:00
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2013-01-19 22:13:17 +01:00
|
|
|
.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>
|