Check-in [07c7888bc0]
Overview
Comment:Updated Mac OS X build script to support building a Snow Leopard to Mountain Lion-compatible package.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:07c7888bc0a5c8e7ce92a222af8b1b0f65fe2e66
User & Date: kvanals on 2012-07-24 22:24:31
Other Links: manifest | tags
Context
2012-07-25
02:31
Merged in "dodcerts-on-seperate-slot" branch check-in: cca6a7fec4 user: rkeene tags: trunk
02:30
Merged from trunk Closed-Leaf check-in: 62f39ca124 user: rkeene tags: dodcerts-on-seperate-slot
2012-07-24
22:24
Updated Mac OS X build script to support building a Snow Leopard to Mountain Lion-compatible package. check-in: 07c7888bc0 user: kvanals tags: trunk
20:53
Removed win32 SDK files, which are now part of mingw32 (untested) check-in: c1fa623247 user: rkeene tags: trunk
Changes

Modified build/cackey_osx_build/build_osx.sh from [b98bcd81f7] to [3980f85216].

    12     12   # Usage function
    13     13   usage() {
    14     14   	echo "Usage: build_osx.sh <target>"
    15     15   	echo Where target is one of:
    16     16   	echo "    leopard  - (Builds Universal 10.5 Library for PPCG4/i386)"
    17     17   	echo "    snowleopard  - (Builds Universal 10.6 Library for i386/x86_64)"
    18     18   	echo "    lion  - (Builds Universal 10.7 Library for i386/x86_64)"
           19  +	echo "    sltoml - (Builds Universal 10.6/10.7/10.8 Library for i386/x86_64)"
    19     20   	echo "    all - (Builds for all supported targets)"
    20     21   	echo "    clean - (Cleans up)"
    21     22   	echo "Run from CACKey Build Root."
    22     23   	exit $?
    23     24   }
    24     25   
    25     26   # Clean up function
................................................................................
    40     41   		LIBTOOLDIR=/Developer/usr/share/libtool/config
    41     42   	fi
    42     43   	if [ ! -d macbuild ]; then
    43     44   		mkdir macbuild
    44     45   		mkdir macbuild/Leopard
    45     46   		mkdir macbuild/Snowleopard
    46     47   		mkdir macbuild/Lion
           48  +		mkdir macbuild/Sltoml
    47     49   		mkdir macbuild/pkg
    48     50   	fi
    49     51   	if [ ! -f config.guess ]; then
    50     52   		cp ${LIBTOOLDIR}/config.guess .
    51     53   	fi
    52     54   	if [ ! -f config.sub ]; then
    53     55   		cp ${LIBTOOLDIR}/config.sub .
................................................................................
   109    111   	OSX=Lion
   110    112   	PKTARGETOS=3
   111    113   	NEXTOSXVER=10.8
   112    114   	CUROSXVER=10.7
   113    115   	for HOST in i386-apple-darwin11 x86_64-apple-darwin11; do
   114    116   		genbuild
   115    117   	done
          118  +	libbuild
          119  +	pkgbuild
          120  +}
          121  +
          122  +# Build function for Snow Leopard/Lion/Mountain Lion
          123  +sltoml() {
          124  +	makedir
          125  +	HEADERS=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/
          126  +	LIBRARY=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/PCSC.framework/PCSC
          127  +	LIB=""
          128  +	ARCHLIST=""
          129  +	DLIB=""
          130  +	DARCHLIST=""
          131  +	OSX=Sltoml
          132  +	PKTARGETOS=3
          133  +	NEXTOSXVER=10.9
          134  +	CUROSXVER=10.6
          135  +	for HOST in i386-apple-darwin10 x86_64-apple-darwin10; do
          136  +		genbuild
          137  +	done
   116    138   	libbuild
   117    139   	pkgbuild
   118    140   }
   119    141   
   120    142   # Generic build function
   121    143   genbuild() {
   122    144   	make distclean
................................................................................
   192    214   		mv build/cackey_osx_build/${OSX}_pmbuild.pmdoc/${PMDOC}.1 build/cackey_osx_build/${OSX}_pmbuild.pmdoc/${PMDOC}
   193    215   	done
   194    216   	EXT=pkg
   195    217   	if [ ${OSX} == "Snowleopard" ]; then
   196    218   		cat build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml | sed 's|for Mac OS X Snowleopard|for Mac OS X SnowLeopard|g' > build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml.new
   197    219   		mv build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml.new build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml
   198    220   	fi
          221  +	if [ ${OSX} == "Sltoml" ]; then
          222  +		cat build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml | sed 's|for Mac OS X Sltoml|for Mac OS X SLtoML|g' > build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml.new
          223  +		mv build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml.new build/cackey_osx_build/${OSX}_pmbuild.pmdoc/index.xml
          224  +	fi
   199    225   	/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -d build/cackey_osx_build/${OSX}_pmbuild.pmdoc -o macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}
   200    226   	tar --create --directory macbuild/pkg/ --file macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}.tar CACKey_${CACKEY_VERSION}_${OSX}.${EXT}
   201    227   	gzip -9 macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}.tar
   202    228   	rm -rf macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}
   203    229   	rm -f build/cackey_osx_build/cackey.dylib
   204    230   	rm -rf build/cackey_osx_build/PKCS11.tokend
   205    231   	echo "${OSX} build complete"
................................................................................
   225    251   	;;
   226    252   	
   227    253   	"lion")
   228    254   		./autogen.sh
   229    255   		lion
   230    256   		exit $?
   231    257   	;;
          258  +	
          259  +	"sltoml")
          260  +		./autogen.sh
          261  +		sltoml
          262  +		exit $?
          263  +	;;
   232    264   
   233    265   	"all")
   234    266   		./autogen.sh
   235    267   		leopard
   236         -		snowleopard
   237         -		lion
          268  +		sltoml
   238    269   		echo ""
   239    270   		echo "All builds complete."
   240    271   		exit $?
   241    272   	;;
   242    273   
   243    274   	"clean")
   244    275   		clean