File: Compile.sh

package info (click to toggle)
mediainfo 26.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,912 kB
  • sloc: cpp: 19,090; objc: 3,102; xml: 1,428; sh: 1,328; python: 263; makefile: 212
file content (50 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh

# Initialization
test -d ../../Source || mkdir -p ../../Source
WX_source=../../Source/WxWidgets

##########################################################################
# Fetch if necessary
if test -e "$WX_source/configure"; then
    echo
    echo "The source of WxWidgets are presents"
    echo
else
    echo
    echo "Downloading WxWidgets..."
    echo
    rm -fr "$WX_source"
    git clone -b "v3.0.2" https://github.com/wxWidgets/wxWidgets "$WX_source"
    if test -e "$WX_source/configure"; then
        echo
        echo "WxWidgets downloaded, compiling it"
        echo
    else
        echo
        echo "Error while downloading WxWidgets"
        echo
        exit 1
    fi
fi

##########################################################################
# Already compiled
if test -e "$WX_source"/lib/libwx_*; then
    echo
    echo "WxWidgets is already compiled, recompiling it"
    echo
fi

##########################################################################
# Compile
cd "$WX_source"
test -e Makefile && make clean
echo
echo "Compiling WxWidgets..."
echo
./configure --disable-shared --disable-gui --enable-unicode --enable-monolithic $*
make clean
make

unset -v WX_source