blob: c200581d329797231244e8d4cd332920b859dd98 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
# $FreeBSD$
PORTNAME= openshadinglanguage
PORTVERSION= 1.3.3
PORTREVISION= 1
CATEGORIES= graphics devel
MAINTAINER= FreeBSD@Shaneware.biz
COMMENT= Advanced shading language for production GI renderers
LICENSE= BSD
BUILD_DEPENDS= llvm-config32:${PORTSDIR}/devel/llvm32 \
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-config32:${PORTSDIR}/devel/llvm32
USE_GITHUB= yes
GH_ACCOUNT= imageworks
GH_PROJECT= OpenShadingLanguage
GH_TAGNAME= Release-${PORTVERSION}
GH_COMMIT= 18671dc
WRKSRC= ${WRKDIR}/imageworks-OpenShadingLanguage-${GH_COMMIT}/src
CMAKE_ARGS= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex \
-DLLVM_CONFIG:STRING=${LOCALBASE}/bin/llvm-config32 \
-DUSE_TBB:BOOL=OFF
CXXFLAGS+= -I${LOCALBASE}/include/flex
USE_LDCONFIG= yes
USES= bison cmake:outsource
NO_STAGE= yes
.include <bsd.port.pre.mk>
BUILD_DEPENDS+= clang32:${PORTSDIR}/lang/clang32
.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>
|