mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
add NLS support stuff to osx_build
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4162 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cd14010e99
commit
ca8424a849
1 changed files with 21 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue