summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2013-03-01 15:57:56 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2013-03-01 15:57:56 +0000
commit68eadab2e1a886045b499f04e06a81eee7e8309e (patch)
tree539ed10ef75cd6bd6b9c2e5d456fb37245431caf
parentGerman translation update 100% (diff)
downloadinkscape-68eadab2e1a886045b499f04e06a81eee7e8309e.tar.gz
inkscape-68eadab2e1a886045b499f04e06a81eee7e8309e.zip
Patch generated locale Makefile to give correct installation folder
Fixed bugs: - https://launchpad.net/bugs/992047 (bzr r12163)
-rwxr-xr-xautogen.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 081a5e904..cc315800e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -30,5 +30,14 @@ fi
autopoint --force
AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
+# Patch the generated po/Makefile.in.in file so that locale files are installed
+# in the correct location on OS X and Free-BSD systems. This is a workaround
+# for a bug in intltool. See https://launchpad.net/bugs/398571
+#
+# TODO: Drop this hack, and bump our intltool version requiement once the issue
+# is fixed in intltool
+sed 's/itlocaledir = $(prefix)\/$(DATADIRNAME)\/locale/itlocaledir = $(datarootdir)\/locale/' < po/Makefile.in.in > po/Makefile.in.in.tmp
+mv po/Makefile.in.in.tmp po/Makefile.in.in
+
cd $olddir
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"