50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# Template file for 'openexr'
|
|
pkgname=openexr
|
|
version=3.1.11
|
|
revision=1
|
|
build_style=cmake
|
|
build_helper="qemu"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="zlib-devel imath-devel"
|
|
short_desc="High dynamic-range (HDR) image file format"
|
|
maintainer="André Cerqueira <acerqueira021@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.openexr.com/"
|
|
changelog="https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr/main/CHANGES.md"
|
|
distfiles="https://github.com/openexr/openexr/archive/v${version}.tar.gz>openexr-${version}.tar.gz"
|
|
checksum=06b4a20d0791b5ec0f804c855d320a0615ce8445124f293616a086e093f1f1e1
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DBUILD_TESTING=ON"
|
|
else
|
|
configure_args+=" -DBUILD_TESTING=OFF"
|
|
fi
|
|
|
|
if [ "$XBPS_MACHINE" = "i686" ]; then
|
|
make_check=no # Test Fails in i686
|
|
# See upstream:
|
|
# https://github.com/AcademySoftwareFoundation/openexr/issues/1281
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
libopenexr_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
libopenexr-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} libopenexr>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share
|
|
}
|
|
}
|