void-packages/srcpkgs/openexr/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

39 lines
979 B
Bash

# Template file for 'openexr'
pkgname=openexr
version=2.2.0
revision=1
build_style=gnu-configure
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
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="http://download.savannah.nongnu.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
checksum="36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231"
LDFLAGS="-lrt"
post_install(){
# license
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
libopenexr_package() {
short_desc+=" - runtime libraries"
pkg_install() {
vmove usr/lib/*.so.*
}
}
libopenexr-devel_package() {
short_desc+=" - development files"
depends="zlib-devel ilmbase-devel libopenexr>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share
}
}