source: build-files/ports-overlay/graphics/opencolorio/Makefile @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 6 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
2# $FreeBSD: graphics/opencolorio/Makefile 327733 2013-09-20 18:35:44Z bapt $
3
4PORTNAME?=      opencolorio
5PORTVERSION=    1.0.8
6PORTREVISION?=  0
7CATEGORIES=     graphics multimedia
8
9MAINTAINER?=    FreeBSD@Shaneware.biz
10COMMENT?=       Complete color management solution
11
12LICENSE?=       BSD
13
14USE_GITHUB=     yes
15GH_ACCOUNT=     imageworks
16GH_PROJECT=     OpenColorIO
17GH_TAGNAME=     v${PORTVERSION}
18GH_COMMIT=      8883824
19
20.if !defined(OCIO_TOOLS)
21USE_PYTHON=     2.6+
22USE_LDCONFIG=   yes
23.endif
24
25USES=           cmake:outsource
26USE_GCC=        yes
27CMAKE_ARGS?=    -DOCIO_BUILD_APPS:BOOL=OFF \
28                -DOCIO_BUILD_JNIGLUE:BOOL=OFF \
29                -DOCIO_BUILD_NUKE:BOOL=OFF \
30                -DOCIO_BUILD_STATIC:BOOL=OFF \
31                -DOCIO_BUILD_PYGLUE:BOOL=ON
32
33MAKE_JOBS_SAFE?=        yes
34
35PLIST=          ${PKGDIR}/pkg-plist${PKGNAMESUFFIX}
36
37.if !defined(OCIO_TOOLS)
38OPTIONS_DEFINE=         DOCS SSE
39OPTIONS_DEFAULT=        DOCS SSE
40.endif
41
42NO_STAGE=       yes
43.include <bsd.port.options.mk>
44
45.if empty(PORT_OPTIONS:MDOCS) || defined(OCIO_TOOLS)
46CMAKE_ARGS+=    -DOCIO_BUILD_DOCS:BOOL=OFF
47.else
48CMAKE_ARGS+=    -DOCIO_BUILD_DOCS:BOOL=ON
49.endif
50
51.if ${PORT_OPTIONS:MSSE}
52CMAKE_ARGS+=    -DOCIO_USE_SSE:BOOL=ON
53.else
54CMAKE_ARGS+=    -DOCIO_USE_SSE:BOOL=OFF
55.endif
56
57.include <bsd.port.pre.mk>
58
59.if ${CC:T} == "clang" && ${ARCH} == "i386" && ${OSVERSION} < 901000
60# workaround for pr/165968
61# was fixed in 9-STABLE before 9.1-RELEASE but not passed into 9-RELEASE
62CFLAGS+=        -march=pentium2
63.endif
64
65post-patch:
66.if defined(OCIO_TOOLS)
67        @${FIND} ${WRKSRC}/src/apps -name "main.cpp" -exec \
68                ${REINPLACE_CMD} -e 's|namespace OIIO|//namespace OIIO|g' "{}" \;
69.endif
70
71.include <bsd.port.post.mk>
Note: See TracBrowser for help on using the repository browser.