summaryrefslogtreecommitdiff
path: root/scripts/portable_build.sh
blob: 6a047023024fd377ceabf6aa22638981bdb11ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
AP=$HOME/bin/autopackage
export CC=$AP/apbuild/apgcc
export CXX=$AP/apbuild/apgcc 
export APBUILD_STATIC_LIBGCC=1

./autogen.sh

./configure --enable-staticlink --enable-portable --disable-artwork-imlib2
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