Extended the range of build variants
authorIan Silvester <iansilvester@fastmail.fm>
Wed, 16 Jan 2013 01:16:07 +0000 (01:16 +0000)
committerIan Silvester <iansilvester@fastmail.fm>
Wed, 16 Jan 2013 01:16:07 +0000 (01:16 +0000)
build.sh
common.sh

index dd2d58c..9644b47 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -36,7 +36,7 @@
 # must provide target
 #
 if [ $# -eq 0 -o $# -gt 2 ]; then
-  echo "Usage: $0 lion | snowleopard64 | snowleopard | leopardupwards | leopard | tiger | panther  [-pcre]"
+  echo "Usage: $0 lion | snowleopardx64 | snowleopard | snowleopardi386 | leopardupwards | leopard | leopardi386 | leopardppc | tiger | panther  [-pcre]"
   exit 1
 fi
 
index e6b615f..ff46c90 100755 (executable)
--- a/common.sh
+++ b/common.sh
@@ -45,7 +45,7 @@ release_name=$1
 # check the release name
 #
 case "${release_name}" in
-  # Mac OS X 10.7 (64bit only)
+  # Mac OS X 10.7 (x86_64 only)
   "lion")
     XCODE_PATH="`/usr/bin/xcode-select -print-path`"
     SYSROOT="-isysroot ${XCODE_PATH}/SDKs/MacOSX10.7.sdk"
@@ -53,16 +53,24 @@ case "${release_name}" in
     ARCH="-arch x86_64"
     STARTUP="LaunchDaemon"
     ;;
-  # Mac OS X 10.6 64bit
-  "snowleopard64")
+  # Mac OS X 10.6 x86_64
+  "snowleopardx64")
     XCODE_PATH="`/usr/bin/xcode-select -print-path`"
     SYSROOT="-isysroot ${XCODE_PATH}/SDKs/MacOSX10.6.sdk"
     MACOSX_VERSION="-mmacosx-version-min=10.6"
     ARCH="-arch x86_64"
     STARTUP="LaunchDaemon"
     ;;
-  # Mac OS X 10.6
+  # Mac OS X 10.6 Universal
   "snowleopard")
+    XCODE_PATH="`/usr/bin/xcode-select -print-path`"
+    SYSROOT="-isysroot ${XCODE_PATH}/SDKs/MacOSX10.6.sdk"
+    MACOSX_VERSION="-mmacosx-version-min=10.6"
+    ARCH="-arch x86_64 -arch i386"
+    STARTUP="LaunchDaemon"
+    ;;
+  # Mac OS X 10.6 i386
+  "snowleopardi386")
     XCODE_PATH="`/usr/bin/xcode-select -print-path`"
     SYSROOT="-isysroot ${XCODE_PATH}/SDKs/MacOSX10.6.sdk"
     MACOSX_VERSION="-mmacosx-version-min=10.6"
@@ -85,6 +93,22 @@ case "${release_name}" in
     ARCH="-arch i386 -arch ppc"
     STARTUP="LaunchDaemon"
     ;;
+  # Mac OS X 10.5 i386
+  "leopardi386")
+    XCODE_PATH="`/usr/bin/xcode-select -print-path`"
+    SYSROOT="-isysroot ${XCODE_PATH}/SDKs/MacOSX10.5.sdk"
+    MACOSX_VERSION="-mmacosx-version-min=10.5"
+    ARCH="-arch i386"
+    STARTUP="LaunchDaemon"
+    ;;
+  # Mac OS X 10.5 PPC
+  "leopardppc")
+    XCODE_PATH="`/usr/bin/xcode-select -print-path`"
+    SYSROOT="-isysroot ${XCODE_PATH}/SDKs/MacOSX10.5.sdk"
+    MACOSX_VERSION="-mmacosx-version-min=10.5"
+    ARCH="-arch ppc"
+    STARTUP="LaunchDaemon"
+    ;;
   # Mac OS X 10.4
   "tiger")
     XCODE_PATH="/Developer"