File: macosxbuild.sh

package info (click to toggle)
synfig 0.62.00-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 11,728 kB
  • ctags: 6,387
  • sloc: cpp: 52,666; sh: 10,829; ansic: 4,124; makefile: 1,357; csh: 243; sed: 16
file content (59 lines) | stat: -rwxr-xr-x 1,498 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh

#OPTIONS="--disable-optimization --enable-debug"

PREFIX=/Users/darco/Projects/Voria/synfig-build

export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
OPTIONS="--prefix=$PREFIX"
#OPTIONS="$OPTIONS --enable-optimization=2"
OPTIONS="$OPTIONS --enable-optimization=3"
#OPTIONS="$OPTIONS --enable-g5opt"
#OPTIONS="$OPTIONS --disable-optimization"
OPTIONS="$OPTIONS --disable-debug"
#OPTIONS="$OPTIONS --with-vimage"
OPTIONS="$OPTIONS --without-openexr"
OPTIONS="$OPTIONS --disable-dependency-tracking"
#OPTIONS="$OPTIONS --enable-universal"

ARCH_FLAGS=""
#ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
ARCH_FLAGS="$ARCH_FLAGS -arch i386"

LDFLAGS="-L$PREFIX/lib"
CFLAGS="-I$PREFIX/include"
CXXFLAGS="-I$PREFIX/include"

CC="gcc $LDFLAGS $CFLAGS $ARCH_FLAGS"
CXX="g++ $LDFLAGS $CFLAGS $ARCH_FLAGS"
CPP="gcc -E"
CXXCPP="g++ -E"

#distcc --version && {
#	CC=distcc
#	CXX="distcc g++"
#}


BUILDDIR=macosxbuild

[ -e configure ] || ( libtoolize --ltdl --copy --force && autoreconf --force --install ) || exit 1

[ -d $BUILDDIR ] && rm -fr $BUILDDIR

mkdir $BUILDDIR

cd $BUILDDIR

echo ../configure $OPTIONS CC=\"$CC\" CXX=\"$CXX\" CPP=\"$CPP\" CXXCPP=\"$CXXCPP\" LDFLAGS=\"$LDFLAGS\" CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"

../configure $OPTIONS CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1

make -j2
make install-strip

#make package $MAKEFLAGS

#make installer