41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Template file for 'openimageio'
|
|
pkgname=openimageio
|
|
version=1.7.10
|
|
revision=1
|
|
wrksrc=oiio-Release-${version}
|
|
build_style=cmake
|
|
configure_args="-DUSE_OPENGL=0 -DUSE_QT=0 -DUSE_PYTHON=0 -DOIIO_BUILD_TESTS=0
|
|
-DCMAKE_SYSTEM_PROCESSOR=${XBPS_TARGET_MACHINE}"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) configure_args+=" -DUSE_SIMD=sse2" ;;
|
|
esac
|
|
hostmakedepends="pkg-config"
|
|
makedepends="boost-devel giflib-devel libraw-devel libopenjpeg-devel libwebp-devel
|
|
libjpeg-turbo-devel tiff-devel libpng-devel libopenexr-devel freetype-devel
|
|
ffmpeg-devel opencolorio-devel"
|
|
short_desc="Library for reading and writing images"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="BSD"
|
|
homepage="https://sites.google.com/site/openimageio/home"
|
|
distfiles="https://github.com/OpenImageIO/oiio/archive/Release-${version}.tar.gz"
|
|
checksum=ec5c567b6b4078d17df22262b764ebb7c09ce5b69f0bc2095b51e56c7070f5b7
|
|
|
|
pre_build() {
|
|
# Replace -isystem with -I to avoid "#include_next <stdlib.h>" file not found
|
|
sed -i CMakeLists.txt -e "s;-isystem;-I;g"
|
|
find ${wrksrc} -type f -exec sed -i "{}" -e "s;<sys/poll\.h>;<poll.h>;g" \;
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
openimageio-devel_package() {
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|