History

Updating osxbuild to work with OS X 10.7+/XCode 4.x.

Chris Bagwell committed 13 years ago

Commit 3e4bb561 parent 946687b2 files · +32 −18Browse files

Unified · Split

2 files
  1. README.osx +5 −4
  2. osxbuild +27 −14
README.osx+5−4
@@ -73,15 +73,16 @@ Lame MP3 encoder http://lame.sourceforge.net · 72 unmodified lines
73MAD MP3 decoder http://www.underbit.com/products/mad73MAD MP3 decoder http://www.underbit.com/products/mad
74 74
75If your system is setup to compile software, then the following commands75If your system is setup to compile software, then the following commands
76can be used:76can be used. Note: since SoX is distributed as a 32-bit i386 binary,
77the library must match that format as well:
77 78
78cd lame-398-279cd lame-398-2
79./configure80./configure CFLAGS="-arch i386 -m32" LDFALGS="-arch i386"
80make81make
81sudo make install82sudo make install
82 83
83cd libmad-0.15.1b84cd libmad-0.15.1b
84./configure85./configure CFLAGS="-arch i386 -m32" LDFALGS="-arch i386"
85make86make
86sudo make install87sudo make install
87 88
@@ -105,7 +106,7 @@ Obtain the latest amrnb and amrwb source code from · 17 unmodified lines
105http://sourceforge.net/projects/opencore-amr106http://sourceforge.net/projects/opencore-amr
106 107
107cd opencore-amr-0.1.2108cd opencore-amr-0.1.2
108./configure109./configure CFLAGS="-arch i386 -m32" LDFALGS="-arch i386"
109make110make
110sudo make install111sudo make install
111 112
osxbuild+27−14
@@ -4,11 +4,11 @@ · 3 unmodified lines
4# package of SoX.4# package of SoX.
5#5#
6# It requires to already have several external libraries already installed6# It requires to already have several external libraries already installed
7# under /usr/local. The external libraries must be static only or else7# under /usr/local/10.5. The external libraries must be static only or else
8# it will expect dylib versions to already exist on external boxes.8# it will expect dylib versions to already exist on external boxes.
9#9#
10# This goes out of its way to only compile i386 binary and to use10# This goes out of its way to only compile a 32 bit i386 binary and to use the
11# OS X 10.5 SDK for greater compatibilty.11# oldest available SDK for greater compatibility.
12#12#
13# Various notes:13# Various notes:
14#14#
@@ -16,37 +16,50 @@ · 1 unmodified line
16# libraries SoX ships with.16# libraries SoX ships with.
17#17#
18# cd libtool-2.4.218# cd libtool-2.4.2
19#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install19# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
20#20#
21# cd libpng-1.5.721# cd libpng-1.5.7
22#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install22# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
23#23#
24# cd ../wavpack-4.60.124# cd ../wavpack-4.60.1
25#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install25# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
26#26#
27# flac won't compile without following fix. Edit src/libFLAC/ia32/nasm.h and27# flac won't compile without following fix. Edit src/libFLAC/ia32/nasm.h and
28# add following to top of that file: %define FLAC__PUBLIC_NEEDS_UNDERSCORE28# add following to top of that file: %define FLAC__PUBLIC_NEEDS_UNDERSCORE
29# cd ../flac-1.2.129# cd ../flac-1.2.1
30#./configure CXXFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install30# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" CXXFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
31#31#
32# cd ../libogg-1.3.032# cd ../libogg-1.3.0
33#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install33# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
34#34#
35# cd ../libvorbis-1.3.235# cd ../libvorbis-1.3.2
36#./configure CPPFLAGS="-I/usr/local/include" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install36# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
37#37#
38# When compiling with newer versions of OS X, Carbon.h does not exist and
39# doesn't need to be included by app. Edit programs/sndfile-play.c and
40# delete/comment out line 61.
38# cd ../libsndfile-1.0.2541# cd ../libsndfile-1.0.25
39#./configure CXXFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install42# ./configure --disable-sqlite --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" CXXFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
40#43#
41# cd ../libid3tag-0.15.1b44# cd ../libid3tag-0.15.1b
42#./configure CXXFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --enable-static --disable-shared;make;sudo make install45# ./configure --prefix=/usr/local/10.5 CFLAGS="-m32 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5" --disable-shared --enable-static;make;sudo make install
43#46#
44# To get MP3 header files used to enable MP3 support (no libraries used):47# To get MP3 header files used to enable MP3 support (no libraries used):
45#48#
49# brew install mad
50#
51# or compile and install:
52#
46# cd ../libmad-0.15.1b53# cd ../libmad-0.15.1b
47#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --enable-shared --disable-static;make;sudo make install54#./configure CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" LDFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" --enable-shared --disable-static;make;sudo make install
48#55#
49 56
57if [ -d /Developer/SDKs/MacOSX10.5.sdk ]; then
58 MacOSXSDK=/Developer/SDKs/MacOSX10.5.sdk
59else
60 MacOSXSDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
61fi
62
50[ ! -x configure ] && autoreconf -i63[ ! -x configure ] && autoreconf -i
51 64
52# Some versions of autoconf (2.63?) seem to get easily confused about65# Some versions of autoconf (2.63?) seem to get easily confused about
@@ -60,9 +73,9 @@ if [ $# -ne 0 -o ! -r Makefile ]; then · 7 unmodified lines
60 --enable-dl-lame --enable-dl-mad \73 --enable-dl-lame --enable-dl-mad \
61 --enable-dl-amrnb --enable-dl-amrwb \74 --enable-dl-amrnb --enable-dl-amrwb \
62 CPP=cpp\75 CPP=cpp\
63 CPPFLAGS="-I/usr/local/include" \76 CPPFLAGS="-I/usr/local/10.5/include -I/usr/local/include" \
64 CFLAGS="-m32 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" \77 CFLAGS="-m32 -arch i386 -isysroot ${MacOSXSDK} -mmacosx-version-min=10.5" \
65 LDFLAGS="-L/usr/local/lib -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" \78 LDFLAGS="-L/usr/local/10.5/lib -m32 -arch i386 -isysroot ${MacOSXSDK} -mmacosx-version-min=10.5" \
66 $*79 $*
67fi80fi
68 81

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t