summaryrefslogtreecommitdiff
path: root/scripts/static_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/static_build.sh')
-rwxr-xr-xscripts/static_build.sh23
1 files changed, 4 insertions, 19 deletions
diff --git a/scripts/static_build.sh b/scripts/static_build.sh
index 7ebc85ca..e7a0bacc 100755
--- a/scripts/static_build.sh
+++ b/scripts/static_build.sh
@@ -2,27 +2,12 @@
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
AP=$ORIGIN/tools/apbuild
-export CC=$AP/apgcc
-export CXX=$AP/apgcc
-
-export APBUILD_STATIC_LIBGCC=1
+ARCH=`uname -m | perl -ne 'chomp and print'`
./autogen.sh
-./configure --enable-staticlink --disable-artwork-imlib2 --prefix=/opt/deadbeef
+export APBUILD_STATIC_LIBGCC=1
+CC=$AP/apgcc CXX=$AP/apgcc ./configure --enable-staticlink=yes --disable-artwork-imlib2 --prefix=/opt/deadbeef
sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool
-make clean
-make -j9
-
-#./scripts/portable_extraplugs.sh
-
-cd $ORIGIN
-
-echo "building pluginfo tool..."
-cd tools/pluginfo
-make
-cd ../../
-
-#./scripts/portable_postbuild.sh
-fakeroot -- ./scripts/static_install.sh
+make DESTDIR=`pwd`/static/$ARCH/deadbeef-$VERSION -j8 install