Unverified Commit a508cd32 authored by boklm's avatar boklm
Browse files

Add projects/macosx-toolchain

Copied from tor-messenger-build.git at commit f6411d2a66dae17e09e.
parent 34aec605
#!/bin/sh
set -e
rootdir=$(pwd)
distdir="$rootdir/dist/[% project %]"
mkdir -p "$distdir"
tar xzf [% c('input_files_by_name/SDK') %]
mv MacOSX10.7.sdk "$distdir/SDK"
tar xf [% c('input_files_by_name/clang') %]
mv x-tools "$distdir"
cd "$rootdir/dist"
[% c('tar', {
tar_src => [ project ],
tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
}) %]
# vim: filetype=yaml sw=2
filename: '[% project %]-[% c("version") %].tar.gz'
version: 10.7-1
var:
setup: |
mkdir -p /var/tmp/dist
tar -C /var/tmp/dist -xf [% c("compiler_tarfile") %]
export sysrootdir=/var/tmp/dist/[% project %]/SDK/
export ccbindir=/var/tmp/dist/[% project %]/x-tools/x86_64-apple-darwin10/bin
export PATH="$ccbindir:$PATH"
CFLAGS="-arch x86_64 -isysroot $sysrootdir"
CXXFLAGS="-arch x86_64 -isysroot $sysrootdir"
CC="$ccbindir/x86_64-apple-darwin10-clang $CFLAGS"
CXX="$ccbindir/x86_64-apple-darwin10-clang++ $CFLAGS"
RANLIB=$ccbindir/x86_64-apple-darwin10-ranlib
AR=$ccbindir/x86_64-apple-darwin10-ar
AS=$ccbindir/x86_64-apple-darwin10-as
LD=$ccbindir/x86_64-apple-darwin10-ld
STRIP=$ccbindir/x86_64-apple-darwin10-strip
input_files:
- name: clang
URL: https://people.torproject.org/~mikeperry/mirrors/sources/x86_64-apple-darwin10.tar.xz
sha256sum: 7b71bfe02820409b994c5c33a7eab81a81c72550f5da85ff7af70da3da244645
- name: SDK
URL: https://people.torproject.org/~mikeperry/mirrors/sources/MacOSX10.7.sdk.tar.gz
sha256sum: da77bb0003fcca5ea8c4e8cb2da8828ded750c54afdcac29ec6f3b46ad5e3adf
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