void-packages/srcpkgs/ilmbase/template

40 lines
1.0 KiB
Bash
Raw Normal View History

2014-05-04 17:29:35 +02:00
# Template file for 'ilmbase'
pkgname=ilmbase
2014-10-28 12:49:28 +01:00
version=2.2.0
revision=3
2014-05-04 17:29:35 +02:00
build_style=gnu-configure
short_desc="Base libraries from ILM for OpenEXR"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2014-05-04 17:29:35 +02:00
license="BSD"
homepage="http://www.openexr.com"
distfiles="${NONGNU_SITE}/openexr/$pkgname-$version.tar.gz"
2014-10-28 12:49:28 +01:00
checksum=ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7
2014-05-04 17:29:35 +02:00
LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lpthread"
2014-10-28 12:49:28 +01:00
pre_build() {
if [ -n "$CROSS_BUILD" ]; then
# Copy shell script header generators - slow but working
cp ${FILESDIR}/*.sh ${wrksrc}/Half
sed -i Half/Makefile \
-e "/eLut.h: eLut/s;$;.sh;" \
-e "s;\./eLut > eLut.h;sh eLut.sh > eLut.h;" \
-e "/toFloat.h: toFloat/s;$;.sh;" \
-e "s;\./toFloat > toFloat.h;sh toFloat.sh > toFloat.h;"
fi
}
2014-05-04 17:29:35 +02:00
post_install() {
2015-06-10 09:06:05 +02:00
vlicense COPYING
2014-05-04 17:29:35 +02:00
}
ilmbase-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}