gst-libav: fix cross build for arm*
This commit is contained in:
parent
2e869a7094
commit
36dc94586b
1 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'gst-libav'
|
# Template file for 'gst-libav'
|
||||||
pkgname=gst-libav
|
pkgname=gst-libav
|
||||||
version=1:1.4.5
|
version=1:1.4.5
|
||||||
revision=3
|
revision=4
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
wrksrc="${pkgname}-${version#*:}"
|
wrksrc="${pkgname}-${version#*:}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
@ -16,5 +16,12 @@ homepage="http://gstreamer.freedesktop.org"
|
||||||
distfiles="${homepage}/src/${pkgname}/${pkgname}-${version#*:}.tar.xz"
|
distfiles="${homepage}/src/${pkgname}/${pkgname}-${version#*:}.tar.xz"
|
||||||
checksum=605c62624604f3bb5c870844cc1f2711779cc533b004c2aa1d8c0d58557afbbc
|
checksum=605c62624604f3bb5c870844cc1f2711779cc533b004c2aa1d8c0d58557afbbc
|
||||||
|
|
||||||
# Required by musl for M_SQRT1_2
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl) # Required by musl for M_SQRT1_2
|
||||||
CFLAGS="-D_XOPEN_SOURCE"
|
CFLAGS="-D_XOPEN_SOURCE"
|
||||||
|
esac
|
||||||
|
pre_configure() {
|
||||||
|
# Fix cross compiling for arm* where os=linuxeabihf
|
||||||
|
sed -i ${wrksrc}/gst-libs/ext/libav/configure \
|
||||||
|
-e "s;linux);linux*);"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue