summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-11-14 09:10:12 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-11-14 09:10:12 +0000
commitca8424a849521f6f5cc2f61c46c3061bce3cda18 (patch)
tree5f6f6fd743bc5639ac99a7141474cf65a633e957
parentcd14010e9984782d4d8f2cf27033e6684e0d4180 (diff)
add NLS support stuff to osx_build
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4162 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rwxr-xr-xtools/osx_packaging/osx_build24
1 files changed, 21 insertions, 3 deletions
diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build
index 1806a3c131..c1ab891cdf 100755
--- a/tools/osx_packaging/osx_build
+++ b/tools/osx_packaging/osx_build
@@ -9,6 +9,7 @@ WITH_JACK=1
WITH_LADSPA=1
STRIP=1
PRINT_SYSDEPS=
+WITH_NLS=1
while [ $# -gt 0 ] ; do
echo "arg = $1"
@@ -18,9 +19,9 @@ while [ $# -gt 0 ] ; do
# top level build targets
#
- --sae) SAE=1 ; WITH_JACK=1; WITH_LADSPA=1; STRIP= ; shift ;;
- --public) SAE= ; WITH_JACK=; WITH_LADSPA=1; STRIP= ; shift ;;
- --allinone) SAE= ; WITH_JACK=1; WITH_LADSPA=1; STRIP= ; shift ;;
+ --sae) WITH_NLS=1 ; SAE=1 ; WITH_JACK=1; WITH_LADSPA=1; STRIP= ; shift ;;
+ --public) WITH_NLS=1 ; SAE= ; WITH_JACK=; WITH_LADSPA=1; STRIP= ; shift ;;
+ --allinone) SAE= ; WITH_NLS=1 ; WITH_JACK=1; WITH_LADSPA=1; STRIP= ; shift ;;
--test) SAE= ; WITH_JACK=; WITH_LADSPA=; STRIP= ; shift ;;
#
@@ -31,6 +32,7 @@ while [ $# -gt 0 ] ; do
--noladspa) WITH_LADSPA= ; shift ;;
--nostrip) STRIP= ; shift ;;
--sysdeps) PRINT_SYSDEPS=1; shift ;;
+ --nonls) WITH_NLS=0 ; shift ;;
esac
done
@@ -48,6 +50,7 @@ Plugins=$APPROOT/Plugins
Surfaces=$APPROOT/Surfaces
Shared=$Resources/share
Etc=$Resources/etc
+Locale=$Resources/locale
if [ x$PRINT_SYSDEPS != x ] ; then
#
@@ -131,6 +134,21 @@ if test x$WITH_JACK != x ; then
cp /usr/local/bin/jackd $APPROOT/MacOS
fi
+# copy locale files
+if test x$WITH_NLS != x ; then
+ echo "NLS support ..."
+ echo ../../gtk2_ardour/*.mo
+ for file in ../../gtk2_ardour/*.mo
+ do
+ lang=`basename $file | sed 's/\.mo//'`
+ echo "Copying $file to " $Locale/$lang/LC_MESSAGES
+ mkdir -p $Locale/$lang/LC_MESSAGES
+ cp $file $Locale/$lang/LC_MESSAGES/gtk2_ardour.mo
+ done
+else
+ echo "Skipping NLS support"
+fi
+
cp -R $GTKQUARTZ_ROOT/etc/* $Etc
echo "Copying all Pango modules ..."
cp -R $GTKQUARTZ_ROOT/lib/pango/1.6.0/modules/*.so $Frameworks/modules