-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.sh
84 lines (70 loc) · 2.78 KB
/
config.sh
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/bash
# Configuration options for building Komodo and its dependencies from source.
# You should not need to change anything in this file - whilst in theory
# later versions of Glib and GTK might work, only 1.2.x have been tested
# as they were 'current' at the time Komodo was developed.
export INSTALL_PREFIX="${HOME}/kmd"
export AASM_PREFIX="${INSTALL_PREFIX}/aasm"
export X_INCLUDES=${X_INCLUDES:-}
export X_LIBRARIES=${X_LIBRARIES:-}
export CC=${CC:-}
if [ -z ${CC} ]; then
CC="gcc"
fi
export KMD_TMP_DIR="${HOME}/kmd/tmp"
export GNOME_BASE_URL="http://ftp.gnome.org/pub/gnome/sources/"
export CONFIG_URL="git://git.savannah.gnu.org/config.git"
export CONFIG_SRC_DIR="${KMD_TMP_DIR}/config"
export GENERAL_CONFIGURE_OPTIONS=(
"--prefix=${INSTALL_PREFIX}"
)
export GLIB_VERSION_MAJOR="1.2"
export GLIB_VERSION_MINOR="0"
export GLIB_VERSION="${GLIB_VERSION_MAJOR}.${GLIB_VERSION_MINOR}"
export GLIB_FILENAME="glib-${GLIB_VERSION}.tar.gz"
export GLIB_URL="${GNOME_BASE_URL}/glib/${GLIB_VERSION_MAJOR}/${GLIB_FILENAME}"
export GLIB_TARBALL="${KMD_TMP_DIR}/${GLIB_FILENAME}"
export GLIB_SRC_DIR="${KMD_TMP_DIR}/glib-${GLIB_VERSION}"
export GLIB_CONFIGURE_OPTIONS=(
"--disable-glibtest"
)
GLIB_CONFIGURE_OPTIONS+=(${GENERAL_CONFIGURE_OPTIONS[*]})
export GTK_VERSION_MAJOR="1.2"
export GTK_VERSION_MINOR="10"
export GTK_VERSION="${GTK_VERSION_MAJOR}.${GTK_VERSION_MINOR}"
export GTK_FILENAME="gtk+-${GTK_VERSION}.tar.gz"
export GTK_URL="${GNOME_BASE_URL}/gtk+/${GTK_VERSION_MAJOR}/${GTK_FILENAME}"
export GTK_TARBALL="${KMD_TMP_DIR}/${GTK_FILENAME}"
export GTK_SRC_DIR="${KMD_TMP_DIR}/gtk+-${GTK_VERSION}"
export GTK_CONFIGURE_OPTIONS=(
"--disable-glibtest"
"--disable-gtktest"
"--with-glib=${GLIB_SRC_DIR}"
)
# Specify X includes and libraries if necessary, e.g. on OS X
if [ ! -z ${X_INCLUDES} ]; then
GTK_CONFIGURE_OPTIONS+=("--x-includes=${X_INCLUDES}")
fi
if [ ! -z ${X_LIBRARIES} ]; then
GTK_CONFIGURE_OPTIONS+=("--x-libraries=${X_LIBRARIES}")
fi
GTK_CONFIGURE_OPTIONS+=(${GENERAL_CONFIGURE_OPTIONS[*]})
export AASM_VERSION="master"
export AASM_FILENAME="master.zip"
export AASM_URL="https://github.com/UoMCS/aasm/archive/${AASM_FILENAME}"
export AASM_TARBALL="${KMD_TMP_DIR}/aasm-${AASM_FILENAME}"
export AASM_SRC_DIR="${KMD_TMP_DIR}/aasm-${AASM_VERSION}"
export AASM_BINARY="${INSTALL_PREFIX}/aasm"
export KMD_VERSION="master"
export KMD_FILENAME="master.zip"
export KMD_URL="https://github.com/UoMCS/komodo/archive/${KMD_FILENAME}"
export KMD_TARBALL="${KMD_TMP_DIR}/${KMD_FILENAME}"
export KMD_SRC_DIR="${KMD_TMP_DIR}/komodo-${KMD_VERSION}"
export KMD_CONFIGURE_OPTIONS=(
"--disable-glibtest"
"--disable-gtktest"
"--with-glib=${GLIB_SRC_DIR}"
)
KMD_CONFIGURE_OPTIONS+=(${GENERAL_CONFIGURE_OPTIONS[*]})
KMD_RUN_SCRIPT="${INSTALL_PREFIX}/run.sh"
KMD_COMPILE_SCRIPT="${INSTALL_PREFIX}/bin/kmd_compile"