Commit 0efc86d0 authored by callum_linden's avatar callum_linden
Browse files

Update build file(s) to work with autobuild-metadata (1.3)

parent bfe3c4d6
......@@ -3,6 +3,8 @@
<map>
<key>package_description</key>
<map>
<key>copyright</key>
<string>Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd and Clark Cooper - Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers.</string>
<key>description</key>
<string>Expat is an XML parser library written in C</string>
<key>license</key>
......@@ -115,12 +117,12 @@
<string>windows</string>
</map>
</map>
<key>version</key>
<string>2.0.1</string>
<key>version_file</key>
<string>VERSION.txt</string>
</map>
<key>type</key>
<string>autobuild</string>
<key>version</key>
<string>1.2</string>
<string>1.3</string>
</map>
</llsd>
......@@ -24,6 +24,9 @@ EXPAT_SOURCE_DIR=expat-$EXPAT_VERSION
top="$(dirname "$0")"
STAGING_DIR="$(pwd)"
build=${AUTOBUILD_BUILD_ID:=0}
echo "${EXPAT_VERSION}.${build}" > "${STAGING_DIR}/VERSION.txt"
pushd "$top/$EXPAT_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in
"windows")
......@@ -46,11 +49,11 @@ pushd "$top/$EXPAT_SOURCE_DIR"
cp lib/expat_external.h "$INCLUDE_DIR"
;;
'darwin')
opts='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5'
opts='-arch i386 -iwithsysroot /Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.7'
export CFLAGS="$opts"
export CXXFLAGS="$opts"
export LDFLAGS="$opts"
export CC="gcc-4.2"
export CC="clang"
export PREFIX="$STAGING_DIR"
./configure --prefix=$PREFIX
make
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment