50 lines
1.3 KiB
Bash
50 lines
1.3 KiB
Bash
# Template file for 'openexr'
|
|
pkgname=openexr
|
|
version=3.1.5
|
|
revision=2
|
|
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=93925805c1fc4f8162b35f0ae109c4a75344e6decae5a240afdfce25f8a433ec
|
|
|
|
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
|
|
}
|
|
}
|