2013-01-19 22:13:17 +01:00
|
|
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= openshadinglanguage
|
2016-03-04 20:06:08 +01:00
|
|
|
PORTVERSION= 1.6.9
|
2015-05-07 17:17:32 +02:00
|
|
|
DISTVERSIONPREFIX= Release-
|
2013-01-19 22:13:17 +01:00
|
|
|
CATEGORIES= graphics devel
|
|
|
|
|
|
|
|
MAINTAINER= FreeBSD@Shaneware.biz
|
|
|
|
COMMENT= Advanced shading language for production GI renderers
|
|
|
|
|
2014-11-23 15:36:41 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2013-01-19 22:13:17 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= llvm-config34:devel/llvm34 \
|
|
|
|
clang34>=3.4_1:lang/clang34
|
|
|
|
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
|
|
|
|
libIlmImf.so:graphics/OpenEXR \
|
|
|
|
libOpenImageIO.so:graphics/openimageio
|
|
|
|
RUN_DEPENDS= llvm-config34:devel/llvm34
|
2013-01-19 22:13:17 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2015-10-07 11:42:56 +02:00
|
|
|
CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config34" \
|
|
|
|
-DENABLERTTI:BOOL=ON
|
2013-01-19 22:13:17 +01:00
|
|
|
USE_LDCONFIG= yes
|
2016-03-04 20:06:08 +01:00
|
|
|
USES= bison cmake:outsource compiler:c11
|
2013-01-19 22:13:17 +01:00
|
|
|
|
2013-11-07 15:00:44 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2013-01-19 22:13:17 +01:00
|
|
|
|
2015-11-29 13:50:09 +01:00
|
|
|
.if ${ARCH} == powerpc
|
|
|
|
USE_GCC= yes
|
|
|
|
.endif
|
|
|
|
|
2013-11-07 15:00:44 +01:00
|
|
|
.if ${OSVERSION} < 1000033
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS+= flex>=2.5.37:textproc/flex
|
2013-11-07 15:00:44 +01:00
|
|
|
CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include/flex
|
2013-01-19 22:13:17 +01:00
|
|
|
.endif
|
|
|
|
|
2013-11-07 15:00:44 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \
|
2013-12-09 17:09:44 +01:00
|
|
|
${WRKSRC}/src/liboslexec/serialize-bc.bash
|
2013-11-07 15:00:44 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|