36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'x264'
|
|
pkgname=x264
|
|
_snap_date=20191214
|
|
_snap_rev=2245
|
|
version="${_snap_date}.${_snap_rev}"
|
|
revision=1
|
|
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-static --enable-shared"
|
|
hostmakedepends="nasm perl"
|
|
short_desc="Free library for encoding H264/AVC video streams"
|
|
maintainer="DirectorX <void.directorx@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.videolan.org/developers/x264.html"
|
|
distfiles="https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
|
|
checksum=3517fda7b6b0097a8b247c53a37464dc63d06135f36d5d852dfc31811f44ad63
|
|
|
|
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"
|
|
}
|
|
}
|