graphics/gstreamer1-plugins-openexr: switch from C++98 to C++11 to match new OpenEXR headers and unbreak compilation. Bump PORTREVISION of all ports depending directly on either, based on assessing INDEX-12 (bump_portrevision.pl -l (shallow) used). Release Notes: https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v2.4.0 The update was deliberately deferred until after 2020Q1, and should not be MFH'd back to it.
67 lines
1.8 KiB
Makefile
67 lines
1.8 KiB
Makefile
# Created by: nork@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ilmbase
|
|
PORTVERSION= 2.4.0
|
|
CATEGORIES= graphics devel
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
COMMENT= ILM Base libraries a.k.a. Half, IlmThread, Imath, and Iex
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
# there are some systems that have a static /bin/bash, so
|
|
# in order to make BUILD_DEPENDS effective, use the same absolute
|
|
# path we will pass down through CONFIGURE_SHELL below.
|
|
BUILD_DEPENDS= ${BASH_CMD}:shells/bash
|
|
|
|
USES= cmake compiler:c++14-lang pkgconfig libtool
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_TUPLE= AcademySoftwareFoundation:openexr:v2.4.0
|
|
WRKSRC_SUBDIR= IlmBase
|
|
|
|
# libtool links C++ libraries with -nostdlib, which prevents -pthread from
|
|
# having an effect (at least with clang). Make sure we also pass -lpthread so
|
|
# we do link against libthr.so.
|
|
TEST_TARGET= check
|
|
|
|
PORTDOCS= README.md
|
|
OPTIONS_DEFINE= DOCS LARGE_STACK
|
|
LARGE_STACK_DESC= Enable sys-dependent large stack optimizations
|
|
LARGE_STACK_CONFIGURE_ENABLE= large-stack
|
|
|
|
CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${PREFIX} --target install
|
|
|
|
BASH_CMD= ${LOCALBASE}/bin/bash
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
MAJORVER= 2_4
|
|
VER= 24
|
|
|
|
PLIST_SUB= MAJORVER=${MAJORVER}
|
|
PLIST_SUB+= VER=${VER}
|
|
|
|
HALF_BIN= eLut toFloat
|
|
|
|
regression-test regression check::
|
|
cd ${BUILD_WRKSRC} && ctest
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf-${MAJORVER}.so
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/*.la
|
|
.for l in libHalf libIex libIexMath libImath libIlmThread
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${MAJORVER}.so
|
|
${LN} -s ${l}-${MAJORVER}.so.${VER} ${STAGEDIR}${PREFIX}/lib/${l}.so || :
|
|
.endfor
|
|
|
|
.for e in ${HALF_BIN}
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Half/${e} ${STAGEDIR}${PREFIX}/bin/${e}
|
|
.endfor
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|