mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-25 13:15:12 +02:00
x264: update to 20191129.2245.
This commit is contained in:
parent
5fd94a70c7
commit
5b4c2c7f5b
1 changed files with 6 additions and 20 deletions
|
@ -1,40 +1,26 @@
|
||||||
# Template file for 'x264'
|
# Template file for 'x264'
|
||||||
pkgname=x264
|
pkgname=x264
|
||||||
_snap_date=20190911
|
_snap_date=20191129
|
||||||
_snap_rev=2245
|
_snap_rev=2245
|
||||||
version="${_snap_date}.${_snap_rev}"
|
version="${_snap_date}.${_snap_rev}"
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
|
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
|
||||||
|
build_style=gnu-configure
|
||||||
|
configure_args="--enable-static --enable-shared"
|
||||||
hostmakedepends="nasm perl"
|
hostmakedepends="nasm perl"
|
||||||
short_desc="Free library for encoding H264/AVC video streams"
|
short_desc="Free library for encoding H264/AVC video streams"
|
||||||
maintainer="DirectorX <void.directorx@protonmail.com>"
|
maintainer="DirectorX <void.directorx@protonmail.com>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://www.videolan.org/developers/x264.html"
|
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"
|
distfiles="https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
|
||||||
checksum=a11065258559feb53b532f039b9df90fd616c6a3042c1bcd36cee29c6cc2b5c1
|
checksum=5c71fba1c360cc3fa64ca17c15bf52be19c82eab030b527a8f949d31467941fc
|
||||||
|
|
||||||
do_configure() {
|
pre_configure() {
|
||||||
local args
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
armv5*|mips*|ppc*) args+=" --disable-asm";;
|
armv5*|mips*|ppc*) configure_args+=" --disable-asm";;
|
||||||
aarch64*|armv[67]*) export AS=$CC;;
|
aarch64*|armv[67]*) export AS=$CC;;
|
||||||
*) export AS=nasm;;
|
*) export AS=nasm;;
|
||||||
esac
|
esac
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
args+=" --host=$XBPS_CROSS_TRIPLET"
|
|
||||||
fi
|
|
||||||
./configure --prefix=/usr --disable-swscale --enable-static \
|
|
||||||
--enable-pic --enable-shared ${args}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
make ${makejobs}
|
|
||||||
}
|
|
||||||
do_install() {
|
|
||||||
make DESTDIR=${DESTDIR} \
|
|
||||||
bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install
|
|
||||||
# Set version as x.x.0 in pkg-config file.
|
|
||||||
sed -i -e "s|0.142.x|0.142.0|" ${DESTDIR}/usr/lib/pkgconfig/x264.pc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
x264-devel_package() {
|
x264-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue