2013-11-20 08:41:48 -06:00
|
|
|
# Description: A high dynamic-range (HDR) image file format developed by Industrial Light & Magic for use in computer imaging applications.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.openexr.com/
|
2018-01-10 16:28:26 -06:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2020-01-09 11:19:29 -06:00
|
|
|
# Depends on: cmake
|
2007-01-09 19:55:28 +11:00
|
|
|
|
|
|
|
name=openexr
|
2021-01-03 11:07:34 -06:00
|
|
|
version=2.5.4
|
2007-01-09 19:55:28 +11:00
|
|
|
release=1
|
2020-03-08 11:47:47 -05:00
|
|
|
source=(https://github.com/AcademySoftwareFoundation/openexr/archive/v$version/$name-$version.tar.gz \
|
2020-06-16 17:38:50 -05:00
|
|
|
openexr-pkg-config.patch)
|
2007-01-09 19:55:28 +11:00
|
|
|
|
|
|
|
build() {
|
2020-03-08 11:47:47 -05:00
|
|
|
patch -d $name-$version -p1 -i $SRC/$name-pkg-config.patch
|
2020-11-08 10:37:22 -06:00
|
|
|
cmake -Bbuild \
|
2020-01-09 11:19:29 -06:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2020-11-08 10:37:22 -06:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:59:13 +00:00
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
2020-11-08 10:37:22 -06:00
|
|
|
-Wno-dev \
|
|
|
|
$name-$version
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2013-11-20 08:41:48 -06:00
|
|
|
rm -r $PKG/usr/share/doc
|
2007-01-09 19:55:28 +11:00
|
|
|
}
|