60 lines
1.5 KiB
Bash
60 lines
1.5 KiB
Bash
# Template file for 'openexr'
|
|
pkgname=openexr
|
|
version=2.3.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.openexr.com/"
|
|
license="BSD"
|
|
short_desc="High dynamic-range (HDR) image file format"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="ilmbase-devel zlib-devel"
|
|
distfiles="https://github.com/openexr/openexr/releases/download/v${version}/openexr-${version}.tar.gz"
|
|
checksum=fd6cb3a87f8c1a233be17b94c74799e6241d50fc5efd4df75c7a4b9cf4e25ea6
|
|
|
|
LDFLAGS="-lrt"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64-musl)
|
|
CFLAGS="-Os"
|
|
CXXFLAGS=-"Os"
|
|
;;
|
|
esac
|
|
|
|
post_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Don't try to rebuild these header files when cross compiling
|
|
# in the hope the shipped tables are ok to use as is.
|
|
sed -i ${wrksrc}/IlmImf/Makefile \
|
|
-e "/BUILT_SOURCES = /s;b44ExpLogTable.h dwaLookups.h;;" \
|
|
-e "/CLEANFILES = /s; b44ExpLogTable.h;;" \
|
|
-e "/CLEANFILES = /s; dwaLookups.h;;" \
|
|
-e "/b44ExpLogTable.h: b44ExpLogTable/d" \
|
|
-e "/\.\/b44ExpLogTable > b44ExpLogTable.h/d" \
|
|
-e "/dwaLookups.h: dwaLookups/d" \
|
|
-e "/\.\/dwaLookups > dwaLookups.h/d"
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
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/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share
|
|
}
|
|
}
|