mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
libvpx: switch to tarball; unbreak armv7 cross.
This commit is contained in:
parent
5278f794e1
commit
190848edcd
1 changed files with 10 additions and 9 deletions
|
@ -1,23 +1,24 @@
|
||||||
# Template file for 'libvpx'
|
# Template file for 'libvpx'
|
||||||
pkgname=libvpx
|
pkgname=libvpx
|
||||||
version=1.4.0
|
version=1.4.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="${pkgname}-v${version}"
|
hostmakedepends="perl yasm"
|
||||||
hostmakedepends="git perl yasm"
|
|
||||||
short_desc="The VP8/VP9 Codecs"
|
short_desc="The VP8/VP9 Codecs"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.webmproject.org"
|
homepage="http://www.webmproject.org"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
|
distfiles="http://storage.googleapis.com/downloads.webmproject.org/releases/webm/libvpx-${version}.tar.bz2"
|
||||||
|
checksum=f582d9b2d60a592a4a3d8c32965ca2d2167e9ade38c6c30bac8801ff66a118e4
|
||||||
|
|
||||||
do_fetch() {
|
|
||||||
git clone -b v${version} http://code.google.com/p/webm.libvpx ${wrksrc}
|
|
||||||
}
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
export LD="$CC" AS=
|
export LD="$CC"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
sed -e "s,generic-gnu,$XBPS_CROSS_TRIPLET," -i configure
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
_cross="--target=$XBPS_CROSS_TRIPLET"
|
armv6*) _cross="--target=armv6-linux-gcc";;
|
||||||
|
armv7*) _cross="--target=armv7-linux-gcc";;
|
||||||
|
*) _cross="--target=generic-gnu";;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
CFLAGS+=" -fPIC"
|
CFLAGS+=" -fPIC"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue