File: build-deps

package info (click to toggle)
gr-framework 0.73.14%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 11,600 kB
  • sloc: ansic: 87,413; cpp: 45,348; objc: 3,057; javascript: 2,647; makefile: 1,129; python: 1,000; sh: 991; yacc: 855; pascal: 554; fortran: 228
file content (96 lines) | stat: -rwxr-xr-x 2,634 bytes parent folder | download
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
#!/bin/sh

OS=`uname`
ID=
DESCR=
REL=
KERNEL=`uname -r`
MACH=`uname -m`

if [ "${OS}" = "Darwin" ] ; then
    ID='OS X'
    DESCR=`sw_vers -productName`
    build=`sw_vers -buildVersion`
    REL="`sw_vers -productVersion` ($build)"
elif [ "${OS}" = "Linux" ] ; then
    if [ "x`which lsb_release 2>/dev/null`" != "x" ] ; then
        ID=`lsb_release -s -i`
        DESCR=`lsb_release -s -d | sed s/\"//g | sed s/\ release//`
        REL=`lsb_release -s -r`
    elif [ -f /etc/redhat-release ] ; then
	ID='Red Hat'
	DESCR=`cat /etc/redhat-release | sed s/\ release//`
	REL=`cat /etc/redhat-release | sed s/.*release\ // | sed s/\ .*//`
    elif [ -f /etc/fedora-release ] ; then
	ID='Fedora'
	DESCR=`cat /etc/fedora-release | sed s/\ release//`
	REL=`cat /etc/fedora-release | sed s/.*release\ // | sed s/\ .*//`
    elif [ -f /etc/SuSE-release ] ; then
	ID='openSUSE project'
	DESCR=`cat /etc/SuSE-release | tr "\n" ' '| sed s/VERSION.*//`
	REL=`cat /etc/SuSE-release | tr "\n" ' ' | sed s/.*=\ //`
    fi
fi

echo " "
echo "      OS name: $OS"
echo " Distribution: $ID"
echo "  Description: $DESCR"
echo "      Release: $REL"
echo "       Kernel: $KERNEL"
echo " Architecture: $MACH"
echo " "

if [ "$ID" != "" ] ; then
  cat <<eof
The following pre-installation steps are required for a GR framework
software installation:

eof

fi

if [ "$ID" = "OS X" ] ; then
  cat <<eof
- Install "Xcode" via the Mac App Store and the "Xcode Command Line Tools"
- Install the latest version of XQuartz (http://xquartz.macosforge.org)
eof

elif [ "$ID" = "Red Hat" -o "$ID" = "CentOS" ] ; then
  cat <<eof
yum install gcc gcc-c++ gcc-gfortran ghostscript-devel python2 \
texlive-collection-latex texlive-dvipng cmake patch
eof

elif [ "$ID" = "Fedora" ] ; then
  cat <<eof
yum install gcc gcc-c++ gcc-gfortran ghostscript-devel python2 \
texlive-collection-latex texlive-dvipng wxGTK-devel glfw-devel zeromq3-devel \
libjpeg-turbo-devel
eof

elif [ "$ID" = "Debian" ] ; then
  cat <<eof
apt-get install libx11-dev libxft-dev libxt-dev python2.7 \
libgl1-mesa-dev libgs-dev texlive-latex3 dvipng qt4-dev-tools \
libgtk2.0-dev libwxgtk3.0-dev libglfw3-dev libzmq3-dev cmake
eof

elif [ "$ID" = "Ubuntu" ] ; then
  cat <<eof
apt-get install libx11-dev libxft-dev libxt-dev python2.7 \
libgl1-mesa-dev libgs-dev texlive-latex3 dvipng qt4-dev-tools \
libgtk2.0-dev libwxgtk2.8-dev libzmq3-dev cmake

The package libglfw-dev is too old.
eof

elif [ "$ID" = "openSUSE project" ] ; then
  cat <<eof
zypper install gcc gcc-c++ gcc-fortran libX11-devel python2 \
texlive-latex texlive-dvipng wxWidgets-devel ghostscript-devel cmake patch
eof

fi

echo " "