summaryrefslogtreecommitdiff
path: root/support/dktools/debian-jessie-prepare.sh
blob: 4cac8d588e06b7c63e6a44e825c8dde45c882034 (plain)
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
#! /bin/sh

# CORRECTION: Probably the version numbers for libjpeg-turbo and
# wxWidgets need a change in later Debian versions or on non-Debian systems.

WXVERS="3.0"
LJTVERS="62"

# Ensure to run the script as root

if [ "X$LOGNAME" != "Xroot" ]
then
  echo 'ERROR: This script must be run as root!'
  exit 1
fi


# Make sure system is up to date

apt-get -y update
apt-get -y upgrade


# Installing everything needed to build a kernel should cover
# most development tools
# You should activate (uncomment) the following line only if necessary.

# apt-get -y build-dep kernel


# Install developer tools and DK tools library dependencies

P="aptitude build-essential autoconf automake autotools-dev"
P="$P dh-make debhelper"
P="$P devscripts fakeroot file gfortran git gnupg fp-compiler"
P="$P lintian patch patchutils pbuilder perl python"
P="$P quilt xutils-dev make gcc g++"
P="$P zlib1g-dev libbz2-dev libssl-dev libdb-dev libmysqlclient-dev"
P="$P libpng-dev libjpeg-dev libopenjpeg-dev libtiff-dev"
P="$P libjpeg${LJTVERS}-turbo-dev libsnmp-dev"
P="$P wx${WXVERS}-headers"
P="$P libwxgtk${WXVERS}-dev"
P="$P libwxbase${WXVERS}-dev"
P="$P libwxsvg-dev"
apt-get install $P


# Finally write hint to switch back to unprivileged user

echo ''
echo 'Remember to switch back to an unprivileged user to build the DEB file.'
echo ''