freebsd-ports/graphics/openshadinglanguage/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

46 lines
1.1 KiB
Makefile

# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
# $FreeBSD$
PORTNAME= openshadinglanguage
PORTVERSION= 1.6.9
DISTVERSIONPREFIX= Release-
CATEGORIES= graphics devel
MAINTAINER= FreeBSD@Shaneware.biz
COMMENT= Advanced shading language for production GI renderers
LICENSE= BSD3CLAUSE
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
USE_GITHUB= yes
GH_ACCOUNT= imageworks
GH_PROJECT= OpenShadingLanguage
CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config34" \
-DENABLERTTI:BOOL=ON
USE_LDCONFIG= yes
USES= bison cmake:outsource compiler:c11
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc
USE_GCC= yes
.endif
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>=2.5.37:textproc/flex
CMAKE_ARGS+= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex
CXXFLAGS+= -I${LOCALBASE}/include/flex
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \
${WRKSRC}/src/liboslexec/serialize-bc.bash
.include <bsd.port.mk>