File: mac_build.sh

package info (click to toggle)
ola 0.9.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 21,340 kB
  • ctags: 23,021
  • sloc: cpp: 129,922; python: 12,265; sh: 11,778; makefile: 2,288; ansic: 1,775; java: 518; xml: 214
file content (23 lines) | stat: -rwxr-xr-x 615 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# A simple script to build OLA for mac systems. We need to support multiple
# architectures as well as pre 10.6 systems.

if [ $# != 1 ]; then
  echo "Usage: mac_build.sh <destination_dir>";
  exit;
fi

dest_dir=$1;

if [ ! -d $dest_dir ]; then
  echo "destination_dir ${dest_dir} does not exist";
  exit;
fi

./configure --disable-dependency-tracking --enable-python-libs --disable-slp
make  CPPFLAGS="-arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.5"  \
  LDFLAGS=" -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.5"
make check
sudo make install
DESTDIR=${dest_dir} make install