blob: f2b8ceb2c35dc48100428275a600f4c4b8e537bf (
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
|
#!/bin/bash
PREREQUISITES='pkg-config aclocal automake autoconf'
for i in $PREREQUISITES; do
if [ -z `which $i` ]; then
echo missing tool "'$i'". Please install package.
err=1
fi
done
if [ $err ]; then
echo "Error, cancelling"
exit
fi
# Allow to pass on dpf distribution location, if not pwd:
if [ -z $1 ]; then
DPFLIB_LOCATION=`pwd`
else
DPFLIB_LOCATION=$1
fi
if [ -e lcd4linux ]; then
echo "lcd4linux installed, not fetching"
else
# Check out source from SVN
svn co -r1142 https://ssl.bulix.org/svn/lcd4linux/trunk lcd4linux
fi
cd lcd4linux
# Apply patch
if [ -e drv_dpf.c ]; then
echo "Existing drv_dpf.c found, not patching"
else
patch -p1 < ../lcd4linux-svn1142-dpf.patch
fi
export CPPFLAGS="-I$DPFLIB_LOCATION/dpflib -I$DPFLIB_LOCATION/include"
export LDFLAGS=-L$DPFLIB_LOCATION/dpflib
if [ -e Makefile ]; then
echo "Not configuring, Makefile found"
else
./bootstrap
# Feel free to configure this differently:
./configure --with-drivers=DPF --with-plugins=all --prefix=/usr
fi
make
|