Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ -d cascade-make ] ; then
|
---|
4 | source cascade-make/lib/cascade-lib.bash GEXTGNOME . $*
|
---|
5 | fi
|
---|
6 |
|
---|
7 | if [ "x$GEXTGNOME_DEVEL" = "x" ] ; then
|
---|
8 | # Set environment variable so we can tell devel.bash has been sourced
|
---|
9 | export GEXTGNOME_DEVEL=$GEXTGNOME
|
---|
10 |
|
---|
11 | export PATH="$GEXTGNOME_INSTALLED/bin:$PATH"
|
---|
12 | export CFLAGS="-I$GEXTGNOME_INSTALLED/include $CFLAGS"
|
---|
13 | export CPPFLAGS="-I$GEXTGNOME_INSTALLED/include $CPPFLAGS"
|
---|
14 | export CXXFLAGS="-I$GEXTGNOME_INSTALLED/include $CXXFLAGS"
|
---|
15 | export LDFLAGS="-L$GEXTGNOME_INSTALLED/lib $LDFLAGS"
|
---|
16 |
|
---|
17 | echo "+Your environment is now setup to compile with the GNOME Support Library"
|
---|
18 |
|
---|
19 | if [ -d "$GEXTGNOME_INSTALLED/lib/pkgconfig" ] ; then
|
---|
20 | echo ""
|
---|
21 | echo "+Testing that pkg-config is correctly configured..."
|
---|
22 |
|
---|
23 | pushd $GEXTGNOME_INSTALLED/lib/pkgconfig
|
---|
24 |
|
---|
25 | if [ ! -e .fixed-prefix.awk ] ; then
|
---|
26 |
|
---|
27 | echo "Configuring ..."
|
---|
28 |
|
---|
29 | echo "/^prefix=/ { print \"prefix=$GEXTGNOME_INSTALLED\" ; next }" > .fixed-prefix.awk
|
---|
30 | echo " { print \$0 }" >> .fixed-prefix.awk
|
---|
31 |
|
---|
32 | for file in *.pc ; do
|
---|
33 | cat $file | awk -f .fixed-prefix.awk > $file.new && \
|
---|
34 | /bin/mv $file.new $file
|
---|
35 | done
|
---|
36 | echo "... done"
|
---|
37 | else
|
---|
38 | echo "No configuration needed"
|
---|
39 | fi
|
---|
40 |
|
---|
41 | popd
|
---|
42 | fi
|
---|
43 | else
|
---|
44 | echo "+Your environment is already setup to compile with the GNOME Support Library"
|
---|
45 | fi |
---|
Note:
See
TracBrowser
for help on using the repository browser.