#!/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
