Mercurial > sdl-ios-xcode
annotate build-scripts/fatbuild.sh @ 4450:abd88bbaea2a
Fixes to automated test target for iPhone Xcode project.
Looks like there is a problem with the source code base. UIScreenMode and possibly a few other 3.2 only APIs have crept in. 3.2 is only available for iPad, and not iPhone/iPod Touch.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Sat, 08 May 2010 08:23:46 -0700 |
parents | 102be1cdd2bb |
children | 455c0dad84df |
rev | line source |
---|---|
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
1 #!/bin/sh |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
2 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
3 # Build a fat binary on Mac OS X, thanks Ryan! |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
4 |
1741 | 5 # Number of CPUs (for make -j) |
6 NCPU=`sysctl -n hw.ncpu` | |
3524
5668e43c256b
Allow overriding the number of build jobs
Sam Lantinga <slouken@libsdl.org>
parents:
3282
diff
changeset
|
7 if test x$NJOB = x; then |
5668e43c256b
Allow overriding the number of build jobs
Sam Lantinga <slouken@libsdl.org>
parents:
3282
diff
changeset
|
8 NJOB=$NCPU |
5668e43c256b
Allow overriding the number of build jobs
Sam Lantinga <slouken@libsdl.org>
parents:
3282
diff
changeset
|
9 fi |
1741 | 10 |
11 # Generic, cross-platform CFLAGS you always want go here. | |
12 CFLAGS="-O3 -g -pipe" | |
13 | |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
14 # PowerPC 32-bit configure flags (10.4 runtime compatibility) |
1799
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
15 # We dynamically load X11, so using the system X11 headers is fine. |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
16 CONFIG_PPC="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \ |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
17 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
18 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
19 # PowerPC 32-bit compiler flags |
2282
ff3b47d22a6d
Fixed fatbuild.sh script for building on Mac OS X 10.5
Sam Lantinga <slouken@libsdl.org>
parents:
2089
diff
changeset
|
20 CC_PPC="gcc-4.0 -arch ppc" |
ff3b47d22a6d
Fixed fatbuild.sh script for building on Mac OS X 10.5
Sam Lantinga <slouken@libsdl.org>
parents:
2089
diff
changeset
|
21 CXX_PPC="g++-4.0 -arch ppc" |
3282
10a12f77f597
Oh yeah, need this option for PPC as well now.
Sam Lantinga <slouken@libsdl.org>
parents:
3249
diff
changeset
|
22 CFLAGS_PPC="-mmacosx-version-min=10.4" |
3245
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
23 CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \ |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
24 -nostdinc \ |
3245
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
25 -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \ |
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
26 -I/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include \ |
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
27 -isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
28 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
29 # PowerPC 32-bit linker flags |
3609
72a1c4dda07c
Merged r3808:3809 from branches/SDL-1.2: install_name_tool fix for fatbuild.sh.
Ryan C. Gordon <icculus@icculus.org>
parents:
3524
diff
changeset
|
30 LFLAGS_PPC="-arch ppc -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 \ |
3245
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
31 -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \ |
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
32 -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1 \ |
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
33 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
34 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
35 # PowerPC 64-bit configure flags (10.5 runtime compatibility) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
36 # We dynamically load X11, so using the system X11 headers is fine. |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
37 CONFIG_PPC64="--build=`uname -p`-apple-darwin --host=powerpc-apple-darwin \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
38 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
39 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
40 # PowerPC 64-bit compiler flags |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
41 CC_PPC64="gcc-4.0 -arch ppc64" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
42 CXX_PPC64="g++-4.0 -arch ppc64" |
3282
10a12f77f597
Oh yeah, need this option for PPC as well now.
Sam Lantinga <slouken@libsdl.org>
parents:
3249
diff
changeset
|
43 CFLAGS_PPC64="-mmacosx-version-min=10.5" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
44 CPPFLAGS_PPC64="-DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
45 -nostdinc \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
46 -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
47 -I/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/include \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
48 -isystem /Developer/SDKs/MacOSX10.5.sdk/usr/include" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
49 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
50 # PowerPC 64-bit linker flags |
3609
72a1c4dda07c
Merged r3808:3809 from branches/SDL-1.2: install_name_tool fix for fatbuild.sh.
Ryan C. Gordon <icculus@icculus.org>
parents:
3524
diff
changeset
|
51 LFLAGS_PPC64="-arch ppc64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5 \ |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
52 -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
53 -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin10/4.0.1/ppc64 \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
54 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
55 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
56 # Intel 32-bit configure flags (10.4 runtime compatibility) |
1799
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
57 # We dynamically load X11, so using the system X11 headers is fine. |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
58 CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \ |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
59 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" |
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
60 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
61 # Intel 32-bit configure flags (10.4 runtime compatibility) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
62 # We dynamically load X11, so using the system X11 headers is fine. |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
63 CONFIG_X86="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
64 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
65 |
3629
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
66 # They changed this to "darwin10" in Xcode 3.2 (Snow Leopard). |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
67 GCCUSRPATH_X86="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1" |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
68 if [ ! -d "$GCCUSRPATH" ]; then |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
69 GCCUSRPATH_X86="$SDK_PATH/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1" |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
70 fi |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
71 if [ ! -d "$GCCUSRPATH_X86" ]; then |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
72 echo "Couldn't find any GCC usr path for x86" |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
73 exit 1 |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
74 fi |
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
75 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
76 # Intel 32-bit compiler flags |
1739
3a3e847aadb9
Trying to fix fatbuild.sh on intel
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
77 CC_X86="gcc-4.0 -arch i386" |
1743 | 78 CXX_X86="g++-4.0 -arch i386" |
1739
3a3e847aadb9
Trying to fix fatbuild.sh on intel
Sam Lantinga <slouken@libsdl.org>
parents:
1648
diff
changeset
|
79 CFLAGS_X86="-mmacosx-version-min=10.4" |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
80 CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \ |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1741
diff
changeset
|
81 -nostdinc \ |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
82 -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \ |
3629
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
83 -I$GCCUSRPATH_X86/include \ |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
84 -isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
85 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
86 # Intel 32-bit linker flags |
3609
72a1c4dda07c
Merged r3808:3809 from branches/SDL-1.2: install_name_tool fix for fatbuild.sh.
Ryan C. Gordon <icculus@icculus.org>
parents:
3524
diff
changeset
|
87 LFLAGS_X86="-arch i386 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.4 \ |
3245
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
88 -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks \ |
3629
102be1cdd2bb
Merge r5179:5180 from branches/SDL-1.2: fatbuild.sh Xcode 3.2 fix.
Ryan C. Gordon <icculus@icculus.org>
parents:
3609
diff
changeset
|
89 -L$GCCUSRPATH_X86 \ |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
90 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
91 |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
92 # Intel 64-bit configure flags (10.5 runtime compatibility) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
93 # We dynamically load X11, so using the system X11 headers is fine. |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
94 CONFIG_X64="--build=`uname -p`-apple-darwin --host=i386-apple-darwin \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
95 --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
96 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
97 # Intel 64-bit compiler flags |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
98 CC_X64="gcc-4.0 -arch x86_64" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
99 CXX_X64="g++-4.0 -arch x86_64" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
100 CFLAGS_X64="-mmacosx-version-min=10.5" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
101 CPPFLAGS_X64="-DMAC_OS_X_VERSION_MIN_REQUIRED=1050 \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
102 -nostdinc \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
103 -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
104 -I/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/include \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
105 -isystem /Developer/SDKs/MacOSX10.5.sdk/usr/include" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
106 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
107 # Intel 64-bit linker flags |
3609
72a1c4dda07c
Merged r3808:3809 from branches/SDL-1.2: install_name_tool fix for fatbuild.sh.
Ryan C. Gordon <icculus@icculus.org>
parents:
3524
diff
changeset
|
108 LFLAGS_X64="-arch x86_64 -Wl,-headerpad_max_install_names -mmacosx-version-min=10.5 \ |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
109 -F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
110 -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin10/4.0.1/x86_64 \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
111 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
112 |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
113 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
114 # Find the configure script |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
115 # |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
116 srcdir=`dirname $0`/.. |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
117 auxdir=$srcdir/build-scripts |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
118 cd $srcdir |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
119 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
120 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
121 # Figure out which phase to build: |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
122 # all, |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
123 # configure, configure-ppc, configure-ppc64, configure-x86, configure-x64 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
124 # make, make-ppc, make-ppc64, make-x86, make-x64, merge |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
125 # install |
1741 | 126 # clean |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
127 if test x"$1" = x; then |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
128 phase=all |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
129 else |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
130 phase="$1" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
131 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
132 case $phase in |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
133 all) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
134 configure_ppc="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
135 configure_ppc64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
136 configure_x86="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
137 configure_x64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
138 make_ppc="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
139 make_ppc64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
140 make_x86="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
141 make_x64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
142 merge="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
143 ;; |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
144 configure) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
145 configure_ppc="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
146 configure_ppc64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
147 configure_x86="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
148 configure_x64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
149 ;; |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
150 configure-ppc) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
151 configure_ppc="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
152 ;; |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
153 configure-ppc64) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
154 configure_ppc64="yes" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
155 ;; |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
156 configure-x86) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
157 configure_x86="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
158 ;; |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
159 configure-x64) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
160 configure_x64="yes" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
161 ;; |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
162 make) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
163 make_ppc="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
164 make_ppc64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
165 make_x86="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
166 make_x64="yes" |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
167 merge="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
168 ;; |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
169 make-ppc) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
170 make_ppc="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
171 ;; |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
172 make-ppc64) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
173 make_ppc64="yes" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
174 ;; |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
175 make-x86) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
176 make_x86="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
177 ;; |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
178 make-x64) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
179 make_x64="yes" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
180 ;; |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
181 merge) |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
182 merge="yes" |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
183 ;; |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
184 install) |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
185 install_bin="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
186 install_hdrs="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
187 install_lib="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
188 install_data="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
189 install_man="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
190 ;; |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
191 install-bin) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
192 install_bin="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
193 ;; |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
194 install-hdrs) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
195 install_hdrs="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
196 ;; |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
197 install-lib) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
198 install_lib="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
199 ;; |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
200 install-data) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
201 install_data="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
202 ;; |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
203 install-man) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
204 install_man="yes" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
205 ;; |
1741 | 206 clean) |
207 clean_ppc="yes" | |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
208 clean_ppc64="yes" |
1741 | 209 clean_x86="yes" |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
210 clean_x64="yes" |
1741 | 211 ;; |
212 clean-ppc) | |
213 clean_ppc="yes" | |
214 ;; | |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
215 clean-ppc64) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
216 clean_ppc64="yes" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
217 ;; |
1741 | 218 clean-x86) |
219 clean_x86="yes" | |
220 ;; | |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
221 clean-x64) |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
222 clean_x64="yes" |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
223 ;; |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
224 *) |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
225 echo "Usage: $0 [all|configure[-ppc|-ppc64|-x86|-x64]|make[-ppc|-ppc64|-x86|-x64]|merge|install|clean[-ppc|-ppc64|-x86|-x64]]" |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
226 exit 1 |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
227 ;; |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
228 esac |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
229 case `uname -p` in |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
230 powerpc) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
231 native_path=ppc |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
232 ;; |
3249
2befcf0c5ce0
Fix build on native 64-bit architecture
Sam Lantinga <slouken@libsdl.org>
parents:
3248
diff
changeset
|
233 powerpc64) |
2befcf0c5ce0
Fix build on native 64-bit architecture
Sam Lantinga <slouken@libsdl.org>
parents:
3248
diff
changeset
|
234 native_path=ppc64 |
2befcf0c5ce0
Fix build on native 64-bit architecture
Sam Lantinga <slouken@libsdl.org>
parents:
3248
diff
changeset
|
235 ;; |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
236 *86) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
237 native_path=x86 |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
238 ;; |
3249
2befcf0c5ce0
Fix build on native 64-bit architecture
Sam Lantinga <slouken@libsdl.org>
parents:
3248
diff
changeset
|
239 x86_64) |
2befcf0c5ce0
Fix build on native 64-bit architecture
Sam Lantinga <slouken@libsdl.org>
parents:
3248
diff
changeset
|
240 native_path=x64 |
2befcf0c5ce0
Fix build on native 64-bit architecture
Sam Lantinga <slouken@libsdl.org>
parents:
3248
diff
changeset
|
241 ;; |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
242 *) |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
243 echo "Couldn't figure out native architecture path" |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
244 exit 1 |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
245 ;; |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
246 esac |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
247 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
248 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
249 # Create the build directories |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
250 # |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
251 for dir in build build/ppc build/ppc64 build/x86 build/x64; do |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
252 if test -d $dir; then |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
253 : |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
254 else |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
255 mkdir $dir || exit 1 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
256 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
257 done |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
258 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
259 # |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
260 # Build the PowerPC 32-bit binary |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
261 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
262 if test x$configure_ppc = xyes; then |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
263 (cd build/ppc && \ |
1799
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
264 sh ../../configure $CONFIG_PPC CC="$CC_PPC" CXX="$CXX_PPC" CFLAGS="$CFLAGS $CFLAGS_PPC" CPPFLAGS="$CPPFLAGS_PPC" LDFLAGS="$LFLAGS_PPC") || exit 2 |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
265 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
266 if test x$make_ppc = xyes; then |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1741
diff
changeset
|
267 (cd build/ppc && ls include && make -j$NJOB) || exit 3 |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
268 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
269 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
270 # |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
271 # Build the PowerPC 64-bit binary |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
272 # |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
273 if test x$configure_ppc64 = xyes; then |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
274 (cd build/ppc64 && \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
275 sh ../../configure $CONFIG_PPC64 CC="$CC_PPC64" CXX="$CXX_PPC64" CFLAGS="$CFLAGS $CFLAGS_PPC64" CPPFLAGS="$CPPFLAGS_PPC64" LDFLAGS="$LFLAGS_PPC64") || exit 2 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
276 fi |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
277 if test x$make_ppc64 = xyes; then |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
278 (cd build/ppc64 && ls include && make -j$NJOB) || exit 3 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
279 fi |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
280 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
281 # |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
282 # Build the Intel 32-bit binary |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
283 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
284 if test x$configure_x86 = xyes; then |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
285 (cd build/x86 && \ |
1799
50e9cca3fe7b
Fixed X11 support on Mac OS X Universal build
Sam Lantinga <slouken@libsdl.org>
parents:
1744
diff
changeset
|
286 sh ../../configure $CONFIG_X86 CC="$CC_X86" CXX="$CXX_X86" CFLAGS="$CFLAGS $CFLAGS_X86" CPPFLAGS="$CPPFLAGS_X86" LDFLAGS="$LFLAGS_X86") || exit 2 |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
287 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
288 if test x$make_x86 = xyes; then |
1742
af4352da64d8
Fixed bug #206, fatbuild.sh works flawlessly on Intel Macs
Sam Lantinga <slouken@libsdl.org>
parents:
1741
diff
changeset
|
289 (cd build/x86 && make -j$NJOB) || exit 3 |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
290 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
291 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
292 # |
3248
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
293 # Build the Intel 32-bit binary |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
294 # |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
295 if test x$configure_x64 = xyes; then |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
296 (cd build/x64 && \ |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
297 sh ../../configure $CONFIG_X64 CC="$CC_X64" CXX="$CXX_X64" CFLAGS="$CFLAGS $CFLAGS_X64" CPPFLAGS="$CPPFLAGS_X64" LDFLAGS="$LFLAGS_X64") || exit 2 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
298 fi |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
299 if test x$make_x64 = xyes; then |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
300 (cd build/x64 && make -j$NJOB) || exit 3 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
301 fi |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
302 |
cde30895105d
Added 64-bit architectures to the fat build script
Sam Lantinga <slouken@libsdl.org>
parents:
3245
diff
changeset
|
303 # |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
304 # Combine into fat binary |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
305 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
306 if test x$merge = xyes; then |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
307 output=.libs |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
308 sh $auxdir/mkinstalldirs build/$output |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
309 cd build |
3245
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
310 target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'` |
d984d5bb17e9
Updated fatbuild.sh to build for 10.4u SDK
Sam Lantinga <slouken@libsdl.org>
parents:
2282
diff
changeset
|
311 (lipo -create -o $output/$target `find . -mindepth 4 -maxdepth 4 -type f -name "*.dylib"` && |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
312 ln -sf $target $output/libSDL.dylib && |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
313 lipo -create -o $output/libSDL.a */build/.libs/libSDL.a && |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
314 cp $native_path/build/.libs/libSDL.la $output && |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
315 cp $native_path/build/.libs/libSDL.lai $output && |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
316 cp $native_path/build/libSDL.la . && |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
317 lipo -create -o libSDLmain.a */build/libSDLmain.a && |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
318 echo "Build complete!" && |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
319 echo "Files can be found in the build directory.") || exit 4 |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
320 cd .. |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
321 fi |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
322 |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
323 # |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
324 # Install |
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
325 # |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
326 do_install() |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
327 { |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
328 echo $* |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
329 $* || exit 5 |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
330 } |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
331 if test x$prefix = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
332 prefix=/usr/local |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
333 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
334 if test x$exec_prefix = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
335 exec_prefix=$prefix |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
336 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
337 if test x$bindir = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
338 bindir=$exec_prefix/bin |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
339 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
340 if test x$libdir = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
341 libdir=$exec_prefix/lib |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
342 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
343 if test x$includedir = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
344 includedir=$prefix/include |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
345 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
346 if test x$datadir = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
347 datadir=$prefix/share |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
348 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
349 if test x$mandir = x; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
350 mandir=$prefix/man |
1636
3d0dec74ad01
A script to build a fat version of the SDL library... completely untested!
Sam Lantinga <slouken@libsdl.org>
parents:
diff
changeset
|
351 fi |
1648
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
352 if test x$install_bin = xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
353 do_install sh $auxdir/mkinstalldirs $bindir |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
354 do_install /usr/bin/install -c -m 755 build/$native_path/sdl-config $bindir/sdl-config |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
355 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
356 if test x$install_hdrs = xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
357 do_install sh $auxdir/mkinstalldirs $includedir/SDL |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
358 for src in $srcdir/include/*.h; do \ |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
359 file=`echo $src | sed -e 's|^.*/||'`; \ |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
360 do_install /usr/bin/install -c -m 644 $src $includedir/SDL/$file; \ |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
361 done |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
362 do_install /usr/bin/install -c -m 644 $srcdir/include/SDL_config_macosx.h $includedir/SDL/SDL_config.h |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
363 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
364 if test x$install_lib = xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
365 do_install sh $auxdir/mkinstalldirs $libdir |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
366 do_install sh build/$native_path/libtool --mode=install /usr/bin/install -c build/libSDL.la $libdir/libSDL.la |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
367 do_install /usr/bin/install -c -m 644 build/libSDLmain.a $libdir/libSDLmain.a |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
368 do_install ranlib $libdir/libSDLmain.a |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
369 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
370 if test x$install_data = xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
371 do_install sh $auxdir/mkinstalldirs $datadir/aclocal |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
372 do_install /usr/bin/install -c -m 644 $srcdir/sdl.m4 $datadir/aclocal/sdl.m4 |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
373 fi |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
374 if test x$install_man = xyes; then |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
375 do_install sh $auxdir/mkinstalldirs $mandir/man3 |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
376 for src in $srcdir/docs/man3/*.3; do \ |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
377 file=`echo $src | sed -e 's|^.*/||'`; \ |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
378 do_install /usr/bin/install -c -m 644 $src $mandir/man3/$file; \ |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
379 done |
9f59d4c5aaea
Mac OS X fat build works! :)
Sam Lantinga <slouken@libsdl.org>
parents:
1646
diff
changeset
|
380 fi |
1741 | 381 |
382 # | |
383 # Clean up | |
384 # | |
385 do_clean() | |
386 { | |
387 echo $* | |
388 $* || exit 6 | |
389 } | |
390 if test x$clean_x86 = xyes; then | |
391 do_clean rm -r build/x86 | |
392 fi | |
393 if test x$clean_ppc = xyes; then | |
394 do_clean rm -r build/ppc | |
395 fi | |
396 |