blob: f46ec8aac0d7fbb9d5bfec207c370343c21e5082 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
AP=$ORIGIN/tools/apbuild
ARCH=`uname -m | perl -ne 'chomp and print'`
cd tools/apbuild
./apinit
cd ../../
./autogen.sh
export APBUILD_STATIC_LIBGCC=1
CC=$AP/apgcc CXX=$AP/apgcc ./configure --enable-staticlink --disable-artwork-imlib2 --enable-ffmpeg --prefix=/opt/deadbeef
sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool
sed -i 's/hardcode_into_libs=yes/hardcode_into_libs=no/g' libtool
make clean
make DESTDIR=`pwd`/static/$ARCH/deadbeef-$VERSION -j8 install
echo "building pluginfo tool..."
cd tools/pluginfo
make
cd ../../
|