void-packages/srcpkgs/libvidstab/template

34 lines
863 B
Bash

# Template file for 'libvidstab'
pkgname=libvidstab
version=1.1.0
revision=1
wrksrc=vid.stab-${version}
build_style=cmake
short_desc="Video stabilization library"
maintainer="lemmi <lemmi@nerd2nerd.org>"
makedepends="orc-devel libgomp-devel"
license="GPL-2"
homepage="http://public.hronopik.de/vid.stab/"
distfiles="https://github.com/georgmartius/vid.stab/archive/v${version}.tar.gz"
checksum=14d2a053e56edad4f397be0cb3ef8eb1ec3150404ce99a426c4eb641861dc0bb
patch_args=-Np0
pre_configure() {
sed -i -e 's/include (FindSSE)//' CMakeLists.txt
case "$XBPS_TARGET_MACHINE" in
i686*|x86_64*)
configure_args+=" -DSSE2_FOUND=1"
;;
esac
}
libvidstab-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libgomp-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}