mirror of
https://github.com/minetest/minetest_android_deps.git
synced 2025-01-21 20:59:37 +00:00
fbb8cc5190
[skip ci]
29 lines
667 B
Bash
29 lines
667 B
Bash
#!/bin/bash -e
|
|
ogg_ver=1.3.5
|
|
vorbis_ver=1.3.7
|
|
|
|
download () {
|
|
get_tar_archive libogg "http://downloads.xiph.org/releases/ogg/libogg-${ogg_ver}.tar.xz"
|
|
get_tar_archive libvorbis "http://downloads.xiph.org/releases/vorbis/libvorbis-${ogg_ver}.tar.xz"
|
|
|
|
# Remove a flag that breaks the x86 build, configure adds it without checking...
|
|
sed 's|-mno-ieee-fp||g' -i libvorbis/configure
|
|
}
|
|
|
|
build () {
|
|
# Build libogg first
|
|
mkdir -p libogg
|
|
pushd libogg
|
|
$srcdir/libogg/configure --host=$CROSS_PREFIX
|
|
make
|
|
|
|
make_install_copy
|
|
popd
|
|
|
|
OGG_CFLAGS="-I$pkgdir/include" OGG_LIBS="-L$pkgdir -logg" \
|
|
$srcdir/libvorbis/configure --host=$CROSS_PREFIX
|
|
make
|
|
|
|
make_install_copy
|
|
}
|