void-packages/srcpkgs/lensfun/template

30 lines
897 B
Bash

# Template file for 'lensfun'
pkgname=lensfun
version=0.3.1
revision=2
build_style=cmake
configure_args="-DINSTALL_HELPER_SCRIPTS:BOOL=OFF"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://lensfun.sourceforge.net/"
license="LGPL-3, CC-BY-SA-3.0"
short_desc="Library for rectifying and simulating photographic lens distortions"
hostmakedepends="cmake pkg-config python"
makedepends="libglib-devel"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
checksum=216c23754212e051c8b834437e46af3812533bd770c09714e8c06c9d91cdb535
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*);;
*) configure_args+=" -DBUILD_FOR_SSE=0 -DBUILD_FOR_SSE2=0";;
esac
lensfun-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}