summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTércio Martins2021-02-01 18:27:19 -0300
committerTércio Martins2021-02-01 18:27:19 -0300
commite8ad760816899d8c0fe8ee2440488563be01184e (patch)
treed7f417ede22a56392f74327486e2b130c664b573
parent3207a49022479aa0c0108c8b97a60a19ebd42a99 (diff)
downloadaur-e8ad760816899d8c0fe8ee2440488563be01184e.tar.gz
Change build system to Ninja
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
2 files changed, 22 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 990f83628b0..4b6004a059a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,26 +1,27 @@
pkgbase = openimageio-git
pkgdesc = A library for reading and writing images, including classes, utilities, and applications
- pkgver = spi.Arn3.6.72.1.r1065.g6a368f469
+ pkgver = spi.Arn3.6.72.1.r1086.g3e74eae53
pkgrel = 1
url = http://www.openimageio.org/
arch = x86_64
license = custom
- makedepends = cmake
- makedepends = qt5-base
- makedepends = python
makedepends = boost
- makedepends = mesa
- makedepends = freetype2
+ makedepends = cmake
makedepends = fontconfig
+ makedepends = freetype2
makedepends = libxrender
+ makedepends = mesa
+ makedepends = ninja
+ makedepends = python
+ makedepends = qt5-base
makedepends = robin-map
depends = boost-libs
depends = fmt
depends = intel-tbb
- depends = opencolorio-git
- depends = openjpeg2
depends = libraw
depends = libwebp
+ depends = opencolorio-git
+ depends = openjpeg2
depends = pugixml
depends = pybind11
optdepends = qt5-base: iv image viewer
diff --git a/PKGBUILD b/PKGBUILD
index 5970eda7543..9c09e2367af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,18 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributor: SpepS <dreamspepser at yahoo dot it>
pkgname=openimageio-git
-pkgver=spi.Arn3.6.72.1.r1065.g6a368f469
+pkgver=spi.Arn3.6.72.1.r1086.g3e74eae53
pkgrel=1
pkgdesc="A library for reading and writing images, including classes, utilities, and applications"
arch=(x86_64)
url="http://www.openimageio.org/"
-license=('custom')
-depends=('boost-libs' 'fmt' 'intel-tbb' 'opencolorio-git' 'openjpeg2' 'libraw' 'libwebp' 'pugixml' 'pybind11')
+depends=('boost-libs' 'fmt' 'intel-tbb' 'libraw' 'libwebp' 'opencolorio-git' 'openjpeg2' 'pugixml' 'pybind11')
# TODO: Consider adding these deps: 'openvdb' 'ffmpeg' 'ptex' 'libheif' 'hdf5' 'opencv'
-makedepends=('cmake' 'qt5-base' 'python' 'boost' 'mesa' 'freetype2' 'fontconfig' 'libxrender' 'robin-map')
+makedepends=('boost' 'cmake' 'fontconfig' 'freetype2' 'libxrender' 'mesa' 'ninja' 'python' 'qt5-base' 'robin-map')
optdepends=('qt5-base: iv image viewer'
'python: bindings support')
+license=('custom')
provides=('openimageio')
conflicts=('openimageio')
source=("git+https://github.com/OpenImageIO/oiio")
@@ -28,25 +28,26 @@ build() {
cmake \
-Bbuild \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
+ -GNinja \
-DUSE_PYTHON=ON \
-DPYTHON_VERSION=3 \
+ -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
- cmake --build build/
+ ninja -C build
}
package() {
- cd oiio/build
+ cd oiio
- make DESTDIR="$pkgdir" install
+ 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
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE".md
}