-
Notifications
You must be signed in to change notification settings - Fork 727
/
Makefile
53 lines (38 loc) · 1.16 KB
/
Makefile
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
# Created by: nork@FreeBSD.org
PORTNAME= ilmbase
PORTVERSION= 2.5.5
PORTREVISION= 1
CATEGORIES= graphics devel
MAINTAINER= mandree@FreeBSD.org
COMMENT= ILM Base libraries a.k.a. Half, IlmThread, Imath, and Iex
LICENSE= BSD3CLAUSE
USES= cmake compiler:c++14-lang libtool pkgconfig
USE_GITHUB= yes
GH_TUPLE= AcademySoftwareFoundation:openexr:v${PORTVERSION}
USE_LDCONFIG= yes
CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX}
WRKSRC_SUBDIR= IlmBase
PLIST_SUB= MAJORVER=${_MAJORVER} \
VER=${_VER} \
MINVER=${_MINVER} \
PLVER=${_PLVER}
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS LARGE_STACK
OPTIONS_SUB= yes
LARGE_STACK_DESC= Enable sys-dependent large stack optimizations
LARGE_STACK_CMAKE_BOOL= ILMBASE_ENABLE_LARGE_STACK
LARGE_STACK_CONFIGURE_ENABLE= large-stack
_MAJORVER= 2_5
_VER= 25
_MINVER= 0
_PLVER= 4
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf-${_MAJORVER}.so
.for l in libHalf libIex libIexMath libImath libIlmThread
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${_MAJORVER}.so
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
do-test:
cd ${BUILD_WRKSRC} && ctest
.include <bsd.port.mk>