diff options
author | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-07-26 13:47:03 +0300 |
---|---|---|
committer | Tomas Junnonen <tomas.junnonen@nokia.com> | 2010-07-26 13:51:56 +0300 |
commit | 6961d43b4433e9c51e65b283fe31e6f40d56c3d5 (patch) | |
tree | 79151539cdb6157387644c99fbdd5e8936ecd406 /configure | |
parent | ac1039fab344f61e7b56b79510589378aa8a4034 (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-x | configure | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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 #------------------------------------------------------------------------------- |