void-packages/srcpkgs/vapoursynth/template

46 lines
1.3 KiB
Bash

# Template file for 'vapoursynth'
pkgname=vapoursynth
version=R47.2
revision=3
build_style=gnu-configure
hostmakedepends="automake pkg-config libtool nasm python3-Cython"
makedepends="python3-devel zimg-devel libmagick-devel libass-devel ffmpeg-devel
libxml2-devel"
short_desc="Application for video manipulation"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="LGPL-2.1-or-later, OFL-1.1"
homepage="http://www.vapoursynth.com"
changelog="https://raw.githubusercontent.com/vapoursynth/vapoursynth/master/ChangeLog"
distfiles="https://github.com/vapoursynth/vapoursynth/archive/$version.tar.gz"
checksum=8ce4553f9fc5e5bbfb26ec9c0c5bf94be307530f947424c713ef67bc8a6d22b2
case $XBPS_TARGET_MACHINE in
aarch64*)
broken="no upstream support"
;;
esac
pre_configure() {
# Fix linking with python 3.8
vsed -e 's|python-$PYTHON_VERSION|python-$PYTHON_VERSION-embed|' -i configure.ac
./autogen.sh
case $XBPS_TARGET_MACHINE in
arm*musl)
sed -i '/#include <sys\/auxv.h>/a #include <asm/hwcap.h>' src/core/cpufeatures.c
sed -i -e 's/HWCAP_ARM_/HWCAP_/' src/core/cpufeatures.c
;;
*)
;;
esac
}
vapoursynth-devel_package() {
depends="python3-devel zimg-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}