Update graphics/ilmbase to version 2.5.1
[dports.git] / graphics / ilmbase / Makefile
1 # Created by: nork@FreeBSD.org
2 # $FreeBSD$
3
4 PORTNAME=       ilmbase
5 PORTVERSION=    2.5.1
6 CATEGORIES=     graphics devel
7
8 MAINTAINER=     mandree@FreeBSD.org
9 COMMENT=        ILM Base libraries a.k.a. Half, IlmThread, Imath, and Iex
10
11 LICENSE=        BSD3CLAUSE
12
13 USES=           cmake compiler:c++14-lang libtool pkgconfig
14
15 USE_GITHUB=     yes
16 GH_TUPLE=       AcademySoftwareFoundation:openexr:v${PORTVERSION}
17 USE_LDCONFIG=   yes
18
19 CMAKE_ARGS+=    --target \
20                 -DCMAKE_INSTALL_PREFIX=${PREFIX} \
21                 install
22
23 WRKSRC_SUBDIR=  IlmBase
24
25 PLIST_SUB=      MAJORVER=${_MAJORVER} \
26                 VER=${_VER}
27 PORTDOCS=       README.md
28
29 OPTIONS_DEFINE= DOCS LARGE_STACK
30 OPTIONS_SUB=    yes
31
32 LARGE_STACK_DESC=               Enable sys-dependent large stack optimizations
33 LARGE_STACK_CMAKE_BOOL=         ILMBASE_ENABLE_LARGE_STACK
34 LARGE_STACK_CONFIGURE_ENABLE=   large-stack
35
36 _MAJORVER=      2_5
37 _VER=           25
38
39 post-install:
40         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf-${_MAJORVER}.so
41 .for l in libHalf libIex libIexMath libImath libIlmThread
42         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${_MAJORVER}.so
43 .endfor
44
45         @${MKDIR} ${STAGEDIR}${DOCSDIR}
46         ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
47
48 do-test:
49         cd ${BUILD_WRKSRC} && ctest
50
51 .include <bsd.port.mk>