void-packages/srcpkgs/x264/template

33 lines
926 B
Bash

# Template file for 'x264'
pkgname=x264
version=20191217.2245
revision=1
build_style=gnu-configure
configure_args="--enable-static --enable-shared"
hostmakedepends="nasm perl"
short_desc="Free library for encoding H264/AVC video streams"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.videolan.org/developers/x264.html"
distfiles="${VIDEOLAN_SITE}/x264/snapshots/x264-snapshot-${version//./-}-stable.tar.bz2"
checksum=b2495c8f2930167d470994b1ce02b0f4bfb24b3317ba36ba7f112e9809264160
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
armv5*|mips*|ppc*) configure_args+=" --disable-asm";;
aarch64*|armv[67]*) export AS=$CC;;
*) export AS=nasm;;
esac
}
x264-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}