-
Notifications
You must be signed in to change notification settings - Fork 3
/
BUILDDEFS
executable file
·102 lines (71 loc) · 2.26 KB
/
BUILDDEFS
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/bin/sh
#----------------------
# --- Configuration ---
#----------------------
# Set to true to build SDL2, SDL2_image, libpng, and Audiality 2 for static
# linking only.
#
# NOTE: This will NOT work if these libraries are already installed in the
# system!
#
# NOTE 2: Dynamic linking has not been tested after the recent changes, and
# there is at least one known problem: Libs will NOT be copied from the
# system, so packaging will only work if build-packages is run without
# any of these libraries installed in the system.
#
KOBO_STATIC_LINUX=true
#-------------------
# --- Kobo Redux ---
#-------------------
# Demo and full data package versions
DEMO_DATA_RELEASE=0.7.5
FULL_DATA_RELEASE=0.7.5
# Kobo Redux source git repository
KRREPO="https://github.com/olofson/koboredux"
# Official Kobo Redux home site (with downloads directory)
KRHOME="http://koboredux.com"
# Archive with Win32 SDL2 redistributables suitable for this release
REDISTARCH="koboredux-0.7.5-libs-redist-win32.tar.bz2"
#--------------------
# --- Audiality 2 ---
#--------------------
# Recommended Audiality 2 version for this Kobo Redux release
A2RELEASE=1.9.4
# Audiality 2 git repository
A2REPO="https://github.com/olofson/audiality2"
#-------------
# --- SDL2 ---
#-------------
SDLRELEASE=2.0.7
SDLURL="https://www.libsdl.org/release/SDL2-${SDLRELEASE}.tar.gz"
#---------------
# --- libpng ---
#---------------
PNGRELEASE=1.6.34
PNGURL="ftp://ftp-osl.osuosl.org/pub/libpng/src/libpng16/libpng-${PNGRELEASE}.tar.xz"
#-------------------
# --- SDL2_image ---
#-------------------
IMGRELEASE=2.0.2
IMGURL="https://www.libsdl.org/projects/SDL_image/release/SDL2_image-${IMGRELEASE}.tar.gz"
#--------------------
# --- Directories ---
#--------------------
# Root of the source tree
SOURCEDIR="$(pwd)"
# CMake top-level build directory. (NOTE: The actual build directories are
# inside this one!)
BUILDDIR="$(pwd)/build"
# Staging directory for dependency library builds, downloads, packages etc
WORKDIR="$(pwd)/work"
# Download directory
DLDIR="${WORKDIR}/downloads"
# Final package output directory
PKGDIR="${WORKDIR}/packages"
#------------
# --- MXE ---
#------------
# MinGW32 cross build using MXE (http://mxe.cc/)
if [ -z $MXEPATH ]; then
MXEPATH=/usr/lib/mxe/
fi