]> source.dussan.org Git - tigervnc.git/commitdiff
Added scripts for building cross-compatible binaries and 64-bit binaries on OS/X
authorDRC <dcommander@users.sourceforge.net>
Tue, 12 Jan 2010 05:25:44 +0000 (05:25 +0000)
committerDRC <dcommander@users.sourceforge.net>
Tue, 12 Jan 2010 05:25:44 +0000 (05:25 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3945 3789f03b-4d11-0410-bbf8-ca57d06f2519

release/build-compat-osx [new file with mode: 0755]
release/build-osx-64 [new file with mode: 0755]
release/build-osx-m32 [new file with mode: 0755]

diff --git a/release/build-compat-osx b/release/build-compat-osx
new file mode 100755 (executable)
index 0000000..fd85bda
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+# This script builds a version of TigerVNC on OS/X 10.5 or later which is
+# compatible with OS/X 10.4 or later.  The OS/X 10.4 compatibility SDK (part
+# of XCode) must be installed.
+
+set -e
+
+SCRIPTDIR=`dirname $0`
+pushd $SCRIPTDIR/..
+CC=gcc-4.0
+CXX=g++-4.0
+CPP=cpp-4.0
+CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -O3 -m32'
+CXXFLAGS=$CFLAGS
+LDFLAGS=$CFLAGS
+CPPFLAGS=$CFLAGS
+export CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CC CXX CPP
+autoreconf -fiv
+configure --x-libraries=/usr/X11R6/lib/
+make
+popd
diff --git a/release/build-osx-64 b/release/build-osx-64
new file mode 100755 (executable)
index 0000000..417450f
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+# This script builds a 64-bit version of TigerVNC on OS/X 10.6 or later.
+# NASM 2.07 or later from MacPorts must be installed in /opt/local.
+
+set -e
+
+SCRIPTDIR=`dirname $0`
+pushd $SCRIPTDIR/..
+CFLAGS='-O3'
+CXXFLAGS=$CFLAGS
+export CFLAGS CXXFLAGS
+autoreconf -fiv
+configure --host=x86_64-apple-darwin10.0.0 NASM=/opt/local/bin/nasm
+make
+popd
diff --git a/release/build-osx-m32 b/release/build-osx-m32
new file mode 100755 (executable)
index 0000000..f2feeaa
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+# This script builds a 32-bit version of TigerVNC on OS/X 10.4 or later.  The
+# resulting version of TigerVNC is not backward compatible.
+
+set -e
+
+SCRIPTDIR=`dirname $0`
+pushd $SCRIPTDIR/..
+CFLAGS='-O3 -m32'
+CXXFLAGS=$CFLAGS
+LDFLAGS=$CFLAGS
+export CFLAGS CXXFLAGS LDFLAGS
+autoreconf -fiv
+configure
+make
+popd