51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# Template file for 'openexr'
|
|
pkgname=openexr
|
|
version=3.2.1
|
|
revision=1
|
|
build_style=cmake
|
|
build_helper="qemu"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="imath-devel libdeflate-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=61e175aa2203399fb3c8c2288752fbea3c2637680d50b6e306ea5f8ffdd46a9b
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DBUILD_TESTING=ON"
|
|
else
|
|
configure_args+=" -DBUILD_TESTING=OFF"
|
|
fi
|
|
|
|
if [ "$XBPS_MACHINE" = "i686" ] || [ "$XBPS_LIBC" = "musl" ]; then
|
|
# See upstream:
|
|
# https://github.com/AcademySoftwareFoundation/openexr/issues/1281 (i686)
|
|
# https://github.com/AcademySoftwareFoundation/openexr/issues/1556 (musl)
|
|
make_check=no
|
|
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
|
|
}
|
|
}
|