mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 00:46:43 +00:00
58 lines
1.4 KiB
Bash
Executable File
58 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
cd lib
|
|
|
|
cd mupdf
|
|
HAVE_X11=no HAVE_GLUT=no make -j 4
|
|
cd ..
|
|
|
|
mv mupdf/build/release/libmupdf.a .
|
|
mv mupdf/build/release/libmupdf-third.a .
|
|
|
|
# ffmpeg
|
|
cd ffmpeg
|
|
./configure --disable-shared --enable-static --disable-ffmpeg --disable-ffplay \
|
|
--disable-ffprobe --disable-doc\
|
|
--disable-manpages --disable-postproc --disable-avfilter \
|
|
--disable-alsa --disable-lzma --disable-xlib --disable-debug\
|
|
--disable-vdpau --disable-vaapi --disable-sdl2 --disable-network
|
|
make -j 4
|
|
cd ..
|
|
|
|
mv ffmpeg/libavcodec/libavcodec.a .
|
|
mv ffmpeg/libavformat/libavformat.a .
|
|
mv ffmpeg/libavutil/libavutil.a .
|
|
mv ffmpeg/libswresample/libswresample.a .
|
|
mv ffmpeg/libswscale/libswscale.a .
|
|
|
|
# onion
|
|
cd onion
|
|
mkdir build 2> /dev/null
|
|
cd build
|
|
cmake -DONION_USE_SSL=false -DONION_USE_PAM=false -DONION_USE_PNG=false -DONION_USE_JPEG=false \
|
|
-DONION_USE_JPEG=false -DONION_USE_XML2=false -DONION_USE_SYSTEMD=false -DONION_USE_SQLITE3=false \
|
|
-DONION_USE_REDIS=false -DONION_USE_GC=false -DONION_USE_TESTS=false -DONION_EXAMPLES=false \
|
|
-DONION_USE_BINDINGS_CPP=false ..
|
|
make -j 4
|
|
cd ../..
|
|
|
|
mv onion/build/src/onion/libonion_static.a .
|
|
|
|
#bzip2
|
|
git clone https://github.com/enthought/bzip2-1.0.6
|
|
cd bzip2-1.0.6
|
|
make -j 4
|
|
cd ..
|
|
mv bzip2-1.0.6/libbz2.a .
|
|
|
|
# magic
|
|
git clone https://github.com/threatstack/libmagic
|
|
cd libmagic
|
|
./autogen.sh
|
|
./configure --enable-static --disable-shared
|
|
make -j 4
|
|
cd ..
|
|
mv libmagic/src/.libs/libmagic.a .
|
|
|
|
|
|
cd ..
|