blob: c5f7e582fc6baa9dec69b1a8f84bc16389270249 (
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
52
53
54
55
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
# $FreeBSD$
PORTNAME= openshadinglanguage
PORTVERSION= 1.3.0
PORTREVISION= 1
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
GH_ACCOUNT= sambler
GH_PROJECT= OpenShadingLanguage
GH_TAGNAME= osl-20130106
GH_COMMIT= 3c69652
WRKSRC+= ${WRKDIR}/sambler-OpenShadingLanguage-${GH_COMMIT}/src
USE_CMAKE= yes
CMAKE_VERBOSE= yes
CMAKE_OUTSOURCE= yes
CMAKE_ARGS= -DFLEX_EXECUTABLE:STRING=${LOCALBASE}/bin/flex \
-DUSE_TBB:BOOL=OFF
CXXFLAGS+= -I${LOCALBASE}/include/flex
USE_LDCONFIG= yes
USE_BISON= build
MAKE_JOBS_SAFE= yes
.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>
|