Subject: Build scripts for DMG generation on OS X

From: Clemens Lang <[email-masked]>
Date: Fri, 1 Mar 2013 18:31:39 +0100

Package: x2goclient
Version: 4.0.0.1
Tags: patch

As previously discussed in IRC I have created a script to build a
x2goclient.dmg on OS X. Please find attached a patch against the
qmake project (my system doesn't have an SDK for 10.5 anymore, and can
also no longer generate PPC code; instead the required settings are set
in macbuild.sh). Building i386 is no longer necessary for 10.7+ either.

Also attached is a tarball holding all files required to build a disk
image, which are
 - macbuild.sh, the script building a dmg image
 - macdmg.DS_Store, a .DS_Store file for the final disk image,
   positioning the icons and setting the background image
 - pkg-dmg, a perl script to simplify building disk images
 - {png,svg}/macinstaller_background.*, graphics used as background of
   the disk image.

Please merge this into x2goclient trunk.

-- 
Clemens Lang
MacPorts Developer
diff -ru x2goclient-4.0.0.1/x2goclient.pro x2goclient-4.0.0.1-with-macbuild/x2goclient.pro
--- x2goclient-4.0.0.1/x2goclient.pro	2013-01-02 12:26:18.000000000 +0100
+++ x2goclient-4.0.0.1-with-macbuild/x2goclient.pro	2013-01-02 14:24:31.000000000 +0100
@@ -159,7 +159,6 @@
 macx {
 	message(building $$TARGET with ldap and cups)
 	LIBS += -framework LDAP -lcups -lcrypto -lssl -lz
-	CONFIG += x86 x86_64 ppc
 }
 win32-* {
 	message(building $$TARGET for windows without ldap and cups)
@@ -169,8 +168,6 @@
 QT += svg network
 ICON = icons/x2go-mac.icns
 QMAKE_INFO_PLIST = Info.plist
-QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk
-QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
 
 plugin {
 	DEFINES += CFGPLUGIN