24 lines
No EOL
623 B
Bash
Executable file
24 lines
No EOL
623 B
Bash
Executable file
#!/bin/bash
|
|
wget -c https://code.teampandory.com/thirdparty/mpg123/-/archive/debian/1.31.3-2/mpg123-debian-1.31.3-2.tar.gz
|
|
tar xvf mpg123-debian-1.31.3-2.tar.gz
|
|
cd mpg123-debian-1.31.3-2
|
|
|
|
set -e
|
|
|
|
libtoolize --force
|
|
aclocal
|
|
autoheader
|
|
automake --force-missing --add-missing
|
|
autoconf
|
|
|
|
sed -i "s#^prefix=.*#prefix=$PREFIX#" "$PREFIX/bin/sdl2-config"
|
|
|
|
export CFLAGS="-O3"
|
|
export CXXFLAGS="-O3"
|
|
export PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig"
|
|
export SDL_CFLAGS="$($PREFIX/bin/sdl2-config --cflags)"
|
|
export SDL_LIBS="$($PREFIX/bin/sdl2-config --libs)"
|
|
|
|
./configure --host="$xHOST" CC="$xGCC" --prefix="$PREFIX"
|
|
make
|
|
make install |