-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure
executable file
·41 lines (35 loc) · 1.2 KB
/
configure
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
#!/bin/sh
sysroot=""
ln_s="ln -sf"
cc="gcc"
qmake="qmake"
# bring in mythtv config
mythconfig=`find /usr/ -wholename "*/mythtv/mythconfig.mak"`
if [ "x" != "x$mythconfig" -a -e $mythconfig ] ; then
rm mythconfig.mak 2> /dev/null
${ln_s} $mythconfig mythconfig.mak
else
echo "ERROR: mythconfig.mak not found is 'libmyth-dev' installed?"
exit
fi
#Set build env variables according to mythconfig.mak
LD=$(cat mythconfig.mak | grep -e "^LD=")
LD=${LD#LD=}
CC=$(cat mythconfig.mak | grep -e "^CC=")
CC=${CC#CC=}
CFLAGS=$(cat mythconfig.mak | grep -e "^CFLAGS=")
CFLAGS=${CFLAGS#CFLAGS=}
CPPFLAGS=$(cat mythconfig.mak | grep -e "^CPPFLAGS=")
CPPFLAGS=${CPPFLAGS#CPPFLAGS=}
LDFLAGS=$(cat mythconfig.mak | grep -e "^LDFLAGS=")
LDFLAGS=${LDFLAGS#LDFLAGS=}
CXX=$(cat mythconfig.mak | grep -e "^QMAKE_CXX=")
CXX=${CXX#QMAKE_CXX=}
ECXXFLAGS=$(cat mythconfig.mak | grep -e "^ECXXFLAGS=")
ECXXFLAGS=${ECXXFLAGS#ECXXFLAGS=}
CXXPPFLAGS=$(cat mythconfig.mak | grep -e "^CXXPPFLAGS=")
CXXPPFLAGS=${CXXPPFLAGS#CXXPPFLAGS=}
OPENGLV=$(cat mythconfig.mak | grep -e "^CONFIG_OPENGL_VIDEO=yes")
EXTRALIBS=$(cat mythconfig.mak | grep -e "^EXTRALIBS=")
EXTRALIBS=${EXTRALIBS#EXTRALIBS=}
${qmake} QMAKE=$(which ${qmake}) mythmpc.pro