aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/openshadinglanguage/Makefile
blob: 00d824d20348d454b3c0d53ce5c5d990a10a13ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
# $FreeBSD$

PORTNAME=   openshadinglanguage
PORTVERSION=    1.8.10
DISTVERSIONPREFIX=  Release-
PORTREVISION=   6
CATEGORIES= graphics devel

MAINTAINER= FreeBSD@Shaneware.biz
COMMENT=    Advanced shading language for production GI renderers

LICENSE=    BSD3CLAUSE

BUILD_DEPENDS=  llvm-config40:devel/llvm40
LIB_DEPENDS=    libboost_thread.so:devel/boost-libs \
        libIlmImf.so:graphics/OpenEXR \
        libImath.so:graphics/ilmbase \
        libOpenImageIO.so:graphics/openimageio
RUN_DEPENDS=    llvm-config40:devel/llvm40

USES=       bison cmake:outsource compiler:c++11-lang ncurses
USE_GITHUB= yes
GH_ACCOUNT= imageworks
GH_PROJECT= OpenShadingLanguage

CMAKE_ARGS= -DLLVM_CONFIG:STRING="${LOCALBASE}/bin/llvm-config40" \
        -DENABLERTTI:BOOL=ON -DUSE_BOOST_WAVE:BOOL=OFF
USE_LDCONFIG=   yes

post-patch:
    @${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' \
        ${WRKSRC}/src/liboslexec/serialize-bc.bash

.include <bsd.port.mk>