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