aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTomas Junnonen <tomas.junnonen@nokia.com>2010-07-26 13:47:03 +0300
committerTomas Junnonen <tomas.junnonen@nokia.com>2010-07-26 13:51:56 +0300
commit6961d43b4433e9c51e65b283fe31e6f40d56c3d5 (patch)
tree79151539cdb6157387644c99fbdd5e8936ecd406 /configure
parentac1039fab344f61e7b56b79510589378aa8a4034 (diff)
Fixes: MB#4014 - prefix of pc files are statically set to /usr
By: Halton Huo RevBy: Tomas Junnonen Details: The configure script now substitutes the paths in the pc files according the specified prefix.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure b/configure
index 42c1100f..88e52aad 100755
--- a/configure
+++ b/configure
@@ -635,6 +635,29 @@ else
mv -f "$MEEGOTOUCH_DEFINES_PRF.tmp" "$MEEGOTOUCH_DEFINES_PRF"
fi
+# substitute prefix in .pc files
+MEEGOTOUCH_PC_DIR="$outpath/src/data"
+MEEGOTOUCH_PC_FILES="meegotouch
+meegotouchcore
+meegotouchsettings
+"
+
+for i in $MEEGOTOUCH_PC_FILES
+do
+ pc_file="$MEEGOTOUCH_PC_DIR/$i.pc"
+ cat "$pc_file.in" \
+ | sed -e "s,@@M_UNIX_INSTALL_PREFIX@@,$M_INSTALL_PREFIX,g" \
+ > "$pc_file.tmp"
+
+ # replace meegotouch_defines.prf if it differs from the newly created temp file
+ if cmp -s "$pc_file.tmp" "$pc_file"; then
+ rm -f "$pc_file.tmp"
+ else
+ mv -f "$pc_file.tmp" "$pc_file"
+ fi
+
+done
+
#-------------------------------------------------------------------------------
# build makefiles based on the configuration
#-------------------------------------------------------------------------------