Update OS X hack scripts.
authorCarl Hetherington <cth@carlh.net>
Sun, 31 Aug 2014 22:13:54 +0000 (23:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 31 Aug 2014 22:13:54 +0000 (23:13 +0100)
platform/osx/waf
run/dcpomatic

index 851f96d45c1376edfb0886556e59a309e20579fc..0cb146cff60c9f9cbef23040f908d7b0a31c19ad 100755 (executable)
@@ -2,8 +2,8 @@
 
 set -e
 
-ENV=/Users/carl/Environments/osx/64
-DEPS=/Users/carl/cdist/64
+ENV=/Users/carl/Environments/osx/10.6/64
+DEPS=/Users/carl/dcpomatic-deps
 
 export PKG_CONFIG_PATH=$DEPS/lib/pkgconfig:$ENV/lib/pkgconfig:/usr/lib/pkgconfig
 export LINKFLAGS="-L$ENV/lib"
index f7af918144af0bdfc0ea3e9eb435cb1d9954254e..9a2f21ea53101c1659adce6fbddd90b456c4b347 100755 (executable)
@@ -4,8 +4,8 @@ if [ `uname -s` == "Darwin" ]; then
   # Some time ago we could start DCP-o-matic on OS X just by running the executable, in
   # the same way as Linux.  This doesn't work any more.
   
-  ENV=$HOME/Environments/osx/64/lib
-  DEP=$HOME/cdist/64/lib
+  ENV=$HOME/Environments/osx/10.6/64/lib
+  DEP=$HOME/dcpomatic-deps/lib
  
   app=build/platform/osx/DCP-o-matic.app
   macos=$app/Contents/MacOS
@@ -56,11 +56,19 @@ if [ `uname -s` == "Darwin" ]; then
   cp $ENV/libquickmail*.dylib $lib
   cp $ENV/libcurl*.dylib $lib
   cp $ENV/libffi*.dylib $lib
+  cp $ENV/libiconv*.dylib $lib
   cp icons/defaults.png $resources
   cp icons/servers.png $resources
   cp icons/tms.png $resources
   cp icons/colour_conversions.png $resources
   cp icons/kdm_email.png $resources
+
+  for lang in de_DE es_ES fr_FR it_IT sv_SE nl_NL; do
+    mkdir "$resources/$lang"
+    cp build/src/lib/mo/$lang/*.mo "$resources/$lang"
+    cp build/src/wx/mo/$lang/*.mo "$resources/$lang"
+    cp build/src/tools/mo/$lang/*.mo "$resources/$lang"
+  done
  
   sed -e "s/@VERSION@/test/g" platform/osx/Info.plist.in > $app/Contents/Info.plist
 
@@ -76,8 +84,7 @@ if [ `uname -s` == "Darwin" ]; then
     fi
   done  
   
-  cd build/platform/osx/DCP-o-matic.app/Contents/MacOS
-  ./dcpomatic $*
+  open build/platform/osx/DCP-o-matic.app
 
 else
   export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH