PKGBUILDs/community/openimageio/PKGBUILD

52 lines
1.7 KiB
Bash
Raw Normal View History

2022-03-06 04:12:29 +00:00
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2020-10-02 17:21:25 +00:00
# Contributor: SpepS <dreamspepser at yahoo dot it>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2021-02-02 13:42:44 +00:00
# - disable lto via -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
2020-10-02 17:21:25 +00:00
pkgname=openimageio
2022-03-06 04:12:29 +00:00
pkgver=2.3.13.0
pkgrel=1
2020-10-02 17:21:25 +00:00
pkgdesc="A library for reading and writing images, including classes, utilities, and applications"
arch=(x86_64)
url="http://www.openimageio.org/"
license=('custom')
2021-06-06 23:10:16 +00:00
depends=('openexr' 'boost-libs' 'openjpeg2' 'glew' 'libtiff' 'opencolorio' 'libpng' 'libraw' 'libwebp'
'fmt' 'pugixml' 'pybind11' 'libheif' 'hdf5' 'freetype2')
# TODO: Consider adding these deps: 'openvdb' 'ffmpeg' 'ptex' 'opencv'
makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'fontconfig' 'libxrender' 'ninja' 'robin-map')
2020-10-02 17:21:25 +00:00
optdepends=('qt5-base: iv image viewer'
'python: bindings support')
2022-03-06 04:12:29 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenImageIO/oiio/archive/refs/tags/v$pkgver.tar.gz")
sha512sums=('fbefa341a11fd502ec9313ca48a0fe433c5822699e4934f6a14089f670314cbe1c9c0b9a491b1d1927bda0223e38a62192c6ddeec6c4c5e6215a8b3fb6900dd8')
2020-10-02 17:21:25 +00:00
build() {
2022-03-06 04:12:29 +00:00
cd oiio-$pkgver
2020-10-02 17:21:25 +00:00
cmake \
2022-03-06 04:12:29 +00:00
-Bbuild \
-GNinja \
-DUSE_PYTHON=ON \
-DPYTHON_VERSION=3.10 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DOIIO_BUILD_TESTS=ON \
-DOIIO_BUILD_TOOLS=ON \
-DBUILD_MISSING_FMT=OFF \
-DUSE_EXTERNAL_PUGIXML=ON \
-DSTOP_ON_WARNING=OFF \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
2020-10-02 17:21:25 +00:00
ninja -C build
}
package() {
2022-03-06 04:12:29 +00:00
cd oiio-$pkgver
2020-10-02 17:21:25 +00:00
DESTDIR="$pkgdir" ninja -C build install
# Remove vendored fonts
rm -r "$pkgdir"/usr/share/fonts
install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE".md
}