Skip to content

Commit

Permalink
ADD : Macos specific files (closes #3141; closes #3143)
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Oct 25, 2010
1 parent 7758bcd commit 9c3d0c8
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
17 changes: 17 additions & 0 deletions macos/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIconFile</key> <string>merkaartor.icns</string>
<key>CFBundlePackageType</key> <string>APPL</string>
<key>CFBundleGetInfoString</key> <string>Merkaartor 0.17-dev, © Bart Vanhauwaert, Chris Browet and others</string>
<key>CFBundleSignature</key> <string>MERKAARTOR</string>
<key>CFBundleDevelopmentRegion</key> <string>English</string>
<key>CFBundleName</key> <string>merkaartor</string>
<key>CFBundleExecutable</key> <string>merkaartor</string>
<key>CFBundleVersion</key> <string>0.17-dev</string>
<key>CFBundleShortVersionString</key> <string>0.17-dev</string>
<key>CFBundleIdentifier</key> <string>org.merkaartor.app.merkaartor</string>
<key>CFBundleInfoDictionaryVersion</key> <string>6.0</string>
</dict>
</plist>
39 changes: 39 additions & 0 deletions macos/mklocversion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/sh
#
# Creates the <ln>.lproj/locversion.plist files needed by Mac OS X as to translate
# the standard mac menu items. See
# <http://qt.nokia.com/doc/4.6/mac-differences.html#translating-the-application-menu-and-native-dialogs>
# for details.
#
# Written by (c) Albrecht Dre\3 <albrecht.dress@arcor.de> 2010; released under the
# terms of the GPL v. 2 as usual.

if test -z "$2" ; then
echo "usage: $0 <bundle folder> <qm file> [<qm file> ...]"
exit 1
fi

BUNDLE=$1
shift
for n in "$@" ; do
loc=$(echo "$n" | sed -e 's/.*_\(..\)_...qm/\1/')
echo "Mac locale $loc..."
rm -rf "$BUNDLE/Contents/Resources/$loc.lproj"
mkdir -p "$BUNDLE/Contents/Resources/$loc.lproj"
cat > "$BUNDLE/Contents/Resources/$loc.lproj/locversion.plist" <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LprojCompatibleVersion</key>
<string>123</string>
<key>LprojLocale</key>
<string>$loc</string>
<key>LprojRevisionLevel</key>
<string>1</string>
<key>LprojVersion</key>
<string>123</string>
</dict>
</plist>
EOF
done
1 change: 1 addition & 0 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ win32 {

macx {
RC_FILE = $$PWD/../Icons/merkaartor.icns
QMAKE_INFO_PLIST = $$PWD/../macos/Info.plist
INCLUDEPATH += /opt/local/include
}

Expand Down

0 comments on commit 9c3d0c8

Please sign in to comment.