~zeitgeist/zeitgeist/zeitgeist-0.7.0

615.1.1 by Siegfried-Angel Gevatter Pujals
Merge patch.
1
#! /bin/sh
2
# Run this to generate all the initial makefiles, etc.
3
4
srcdir=`dirname $0`
5
test -z "$srcdir" && srcdir=.
6
753 by Siegfried-Angel Gevatter Pujals
Start moving gnome-zeitgeist to zeitgeist.
7
PKG_NAME=zeitgeist
615.1.1 by Siegfried-Angel Gevatter Pujals
Merge patch.
8
1184 by Siegfried-Angel Gevatter Pujals
Substitute "/usr/bin/env python" with the hardcoded path at compile time
9
(test -f $srcdir/zeitgeist-daemon.py) || {
615.1.1 by Siegfried-Angel Gevatter Pujals
Merge patch.
10
	echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
11
	echo " top-level $PKG_NAME directory"
12
	exit 1
13
}
14
1322.1.86 by Markus Korn
check if 'rapper' is installed when running autogen.sh
15
which rapper || {
16
	echo "You need to install raptor-utils"
17
	exit 1
18
}
19
615.1.1 by Siegfried-Angel Gevatter Pujals
Merge patch.
20
export PKG_NAME
1644.1.1 by Seif Lotfy
make gnome-autogen.sh optional
21
22
if which gnome-autogen.sh ; then
1644.1.3 by Seif Lotfy
fix autogen
23
  REQUIRED_AUTOMAKE_VERSION=1.11 \
1644.1.1 by Seif Lotfy
make gnome-autogen.sh optional
24
  REQUIRED_AUTOCONF_VERSION=2.57 \
25
  REQUIRED_AUTOMAKE_VERSION=1.9 \
26
  REQUIRED_INTLTOOL_VERSION=0.35.0 \
27
  REQUIRED_PKG_CONFIG_VERSION=0.16.0 \
28
	    USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-uninstalled-build "$@"
29
else
30
  if which intltoolize && which autoreconf ; then
31
    intltoolize --copy --force --automake || \
32
      (echo "There was an error in running intltoolize." > /dev/stderr;
33
       exit 1)
34
    autoreconf --force --install || \
35
      (echo "There was an error in running autoreconf." > /dev/stderr;
36
       exit 1)
1644.1.2 by Seif Lotfy
added configure to the autogen.sh in case of gnome-common is not installed
37
    ./configure "$@"
1644.1.1 by Seif Lotfy
make gnome-autogen.sh optional
38
  else
39
    echo "No build script available.  You have two choices:"
40
    echo "1. You need to install the gnome-common module and make"
41
    echo "   sure the gnome-autogen.sh script is in your \$PATH."
42
    echo "2. You need to install the following scripts:"
43
    echo "   * intltool"
44
    echo "   * automake"
45
    echo "   * autoconf"
46
    echo "   Additionally, you need to make"
47
    echo "   sure that they are in your \$PATH."
48
    exit 1
49
  fi
1644.1.2 by Seif Lotfy
added configure to the autogen.sh in case of gnome-common is not installed
50
fi