contrib/openexr/Pkgfile

25 lines
809 B
Plaintext
Raw Normal View History

# 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/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: cmake
2007-01-09 09:55:28 +01:00
name=openexr
2021-02-18 21:08:42 +01:00
version=2.5.5
2007-01-09 09:55:28 +01:00
release=1
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() {
patch -d $name-$version -p1 -i $SRC/$name-pkg-config.patch
cmake -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release \
2020-12-07 00:59:13 +01:00
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-Wno-dev \
$name-$version
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/doc
2007-01-09 09:55:28 +01:00
}