This repository has been archived by the owner on Nov 22, 2018. It is now read-only.
/
macosx
397 lines (362 loc) · 13.9 KB
/
macosx
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
#!/usr/bin/env python
# We support 10.4 and up
# gtk+ build notes:
#
#http://developer.imendio.com/projects/gtk-macosx/build-instructions
#http://developer.imendio.com/svn/gtk-osx-build/gtk-osx.modules
BUILD_HOSTS = ['macos-10-ppc', 'macos-10-x86']
prefix = "/Library/Frameworks/Mono.framework/Versions/Current"
packages = [
{
'name': 'pkg-config',
'source': 'http://pkgconfig.freedesktop.org/releases/pkg-config-0.25.tar.gz',
'build':"""
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
'post':"""
# Configure shell wrapper for pkg-config so it will look for .pc files when installed (#79671)
cd /tmp/install/bin
mv pkg-config pkg-config.bin
cat <<EOF > pkg-config
#!/bin/sh
if [ -z "\$PKG_CONFIG_LIBDIR" ]; then
export PKG_CONFIG_LIBDIR=/tmp/install/lib/pkgconfig:/tmp/install/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
fi
/tmp/install/bin/pkg-config.bin "\$@"
EOF
chmod 755 pkg-config
"""
},
{
'name': 'gettext',
'source': 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz',
'build':"""set -x
CFLAGS="-m32" CXXFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
'post':"""
# Save msgfmt, as this is needed for building glib
# we also need msgmerge for intltool... (monodevelop)
rm -Rf /tmp/temp_install
mkdir -p /tmp/temp_install/bin
cd /tmp/install/bin
mv xgettext msgfmt msgmerge /tmp/temp_install/bin
cd -
rm -Rf /tmp/install/bin/*
rm -Rf /tmp/install/share/doc
rm -Rf /tmp/install/share/emacs
rm -Rf /tmp/install/share/gettext
mv /tmp/temp_install/bin/* /tmp/install/bin
"""
},
{
'name': 'glib',
'source': 'http://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2',
'build':
"""set -x
find . -iname "makefile\.in" | xargs sed -i -e 's@which[[:space:]]*gtkdoc-rebase@/usr/bin/false@'
PATCHES=`curl -L http://beefydude.lab.xamarin.com/patches/glib/patchlist.txt | egrep -o '\"[^\"]*\"' | sed 's/\"//g'`
for patchfile in $PATCHES; do
curl -# -L http://beefydude.lab.xamarin.com/patches/glib/$patchfile | patch -p0 || exit 1
done
CFLAGS="-m32" LDFLAGS="$LDFLAGS -m32 -lresolv" ./configure --prefix=/tmp/install || exit 1
curl -# -L http://beefydude.lab.xamarin.com/patches/glib/config.h.ed | ed - config.h || exit 1
make || exit 1
make install || exit 1
# we don't really need all these html files and they have weird characters in their file names that were screwing up the Mach-O relocation step
rm -rf /tmp/install/share/gtk-doc
"""
},
{
'name': 'jpeg',
'version': '8',
'source': 'http://www.ijg.org/files/jpegsrc.v8b.tar.gz',
'build':
"""ln -s `which glibtool` ./libtool
CFLAGS="-m32" ./configure --enable-shared --enable-static --enable-freetype --prefix=/tmp/install
make || exit 1
mkdir -p /tmp/install/lib
mkdir -p /tmp/install/include
make install || exit 1
"""
},
{
'name': 'tiff',
'source': 'http://dl.maptools.org/dl/libtiff/tiff-3.8.2.tar.gz',
'build':
"""set -x
CFLAGS="-m32" CXXFLAGS="-m32" ./configure --prefix=/tmp/install --mandir=/tmp/install/share/man \
--with-jpeg-include-dir=/tmp/build_deps/include --with-jpeg-lib-dir=/tmp/build_deps/lib
# 3.8.2's libtool didn't like the sysroot for building on 10.3
rm libtool
ln -s `which glibtool` ./libtool
make || exit 1
cd libtiff
make install || exit 1
"""
},
{
'name': 'libpng',
#'source': 'http://voxel.dl.sourceforge.net/project/libpng/03-libpng-previous/1.2.44/libpng-1.2.44.tar.bz2',
#'source': 'ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.8.tar.bz2',
'source': 'ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.46.tar.bz2',
'build':"""set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
'post':"""
rm -Rf /tmp/install/bin/*
"""
},
{
'name': 'giflib',
'source': 'http://surfnet.dl.sourceforge.net/project/giflib/giflib%204.x/giflib-4.1.6/giflib-4.1.6.tar.bz2',
'post':"""
rm -Rf /tmp/install/bin/*
"""
},
# Include our own because 10.4 and 10.5 ppc have differing expat versions
{
'name': 'expat',
'source': 'http://surfnet.dl.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz',
'build': """set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
'post':"""
rm -Rf /tmp/install/bin
rm -Rf /tmp/install/man
""",
},
{
'name': 'pixman',
'source': 'http://cairographics.org/releases/pixman-0.22.2.tar.gz',
'build':"""set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
"""
},
{
'name': 'freetype',
'source': 'http://download.savannah.gnu.org/releases/freetype/freetype-2.4.2.tar.bz2',
'build': """set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
},
{
'name': 'fontconfig',
'source': 'http://www.fontconfig.org/release/fontconfig-2.8.0.tar.gz',
'build': """set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install --disable-docs
make || exit 1
make install || exit 1
""",
},
{
'name': 'cairo',
'source': 'http://cairographics.org/releases/cairo-1.10.2.tar.gz',
'build': """set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install --enable-quartz --enable-quartz-font --enable-quartz-image --enable-atsui --enable-pdf --disable-xlib --without-x --enable-ft
make || exit 1
make install || exit 1
# we don't really need all these html files and they have weird characters in their file names that were screwing up the Mach-O relocation step
rm -rf /tmp/install/share/gtk-doc
""",
},
# TODO: There are problems relocating these binaries... is the max header flag not getting passed in?
# Hrm... the flag is getting set... which binary is failing?
{
'name': 'pango',
#'source': 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.20/pango-1.20.2.tar.bz2',
#'source': 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.20/pango-1.20.5.tar.bz2',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.4.tar.bz2',
'build': """set -x
find . -iname "makefile\.in" | xargs sed -i -e 's@which[[:space:]]*gtkdoc-rebase@/usr/bin/false@'
# Hrm... LDFLAGS not getting set for atsui basic... for it (TODO: file bug)
sed -e "s/framework Carbon/framework Carbon -headerpad_max_install_names/g" modules/basic/Makefile.in > new
mv new modules/basic/Makefile.in
# Patch to use atsui (for 1.26)
#curl -L http://git.gnome.org/browse/pango/patch/?id=0f06d7758bc37a4942342d2c17a88944cbc88adb | patch -p1
# Patch to fix ligature bug (1.26)
#curl -L http://bugzilla-attachments.gnome.org/attachment.cgi?id=154892 | patch -p1
# Hack the configure script to disable the FreeType backend
#sed -i bak 's,2\.5\.0,9.5.0,' configure
# Use this prefix so we don't have to do any tricks to relocate (Do this with all modules?)
CFLAGS="-m32 -DMAC_OS_X_VERSION_10_5=1050 $CFLAGS " CXXFLAGS="-m32" ./configure --prefix=%s --without-x
make
rm -Rf /tmp/temp_install
make install DESTDIR=/tmp/temp_install
# Do this so all the zip files have the same base, and we can lay them back here later
mkdir -p /tmp/install
cd /tmp/temp_install%s || exit 1
mv * /tmp/install
# we don't really need all these html files and they have weird characters in their file names that were screwing up the Mach-O relocation step
rm -rf /tmp/install/share/gtk-doc
""" % (prefix, prefix),
},
{
'name': 'atk',
#'source': 'http://ftp.gnome.org/pub/gnome/sources/atk/1.20/atk-1.20.0.tar.bz2',
#'source': 'http://ftp.gnome.org/pub/GNOME/sources/atk/1.23/atk-1.23.5.tar.bz2',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/atk/1.33/atk-1.33.6.tar.bz2',
'build': """set -x
find . -iname "makefile\.in" | xargs sed -i -e 's@which[[:space:]]*gtkdoc-rebase@/usr/bin/false@'
CFLAGS="-m32" ./configure --prefix=/tmp/install || exit 1
make || exit 1
make install || exit 1
""",
},
# has same relocation problems as pango, uses same hack..
{
'name': 'gdk-pixbuf',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.22/gdk-pixbuf-2.22.1.tar.bz2',
'build':
"""set -x
CFLAGS="-m32" ./configure --prefix=%s
make || exit 1
rm -Rf /tmp/temp_install
make install DESTDIR=/tmp/temp_install || exit 1
# Do this so all the zip files have the same base, and we can lay them back here later
mkdir -p /tmp/install
cd /tmp/temp_install%s || exit 1
mv * /tmp/install
# we don't really need all these html files and they have weird characters in their file names that were screwing up the Mach-O relocation step
rm -rf /tmp/install/share/gtk-doc
""" % (prefix, prefix)
},
# ## Tarball generated on linux (opensuse 10.3) using:
# # Applied patch: http://people.imendio.com/richard/patches/gtk-configure.patch
# # Applied patch: from Geoff to remove some spew
# ./autogen.sh --enable-gtk-doc
# make
# # had to remove gtk/test from 'configure' script and from gtk/Makefile.am SUBDIRS ... why wasn't that in the tarball?
# make dist-bzip2
{
# Requires 10.4 or above
'name': 'gtk+',
'version': '2.24.5',
'source': 'http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.5.tar.bz2',
'build': """set -ex
# The following is a hack for a gtk bug where 'which' does not act as expected on mac.
# see http://lists.macosforge.org/pipermail/macports-users/2007-December.txt and search for 'gtkdoc-rebase'
find . -iname "makefile\.in" | xargs sed -i -e 's@which[[:space:]]*gtkdoc-rebase@/usr/bin/false@'
# Mac OS 10.7 Lion patches
PATCHES=`curl -L http://beefydude.lab.xamarin.com/patches/gtk/patchlist.txt | egrep -o '\"[^\"]*\"' | sed 's/\"//g'`
for patchfile in $PATCHES; do
curl -# -L http://beefydude.lab.xamarin.com/patches/gtk/$patchfile | patch -p1
done
# gdk-pixbuf relocation is hacky
export GDK_PIXBUF_MODULE_FILE="/tmp/build_deps/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
export GDK_PIXBUF_MODULEDIR="/tmp/build_deps/lib/gdk-pixbuf-2.0/2.10.0/loaders/"
/tmp/build_deps/bin/gdk-pixbuf-query-loaders --update-cache
CFLAGS="-m32" LDFLAGS="$LDFLAGS -framework Foundation -framework Carbon -framework AppKit -Xlinker -headerpad_max_install_names" ./configure --prefix=/tmp/install --with-gdktarget=quartz --disable-gtk-doc --with-libjpeg --without-libjasper
make || exit 1
make install || exit 1
""",
},
{
'name': 'libxml2',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.30.tar.bz2',
'build': """set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install --with-python=no
make || exit 1
make install || exit 1
""",
},
{
'name': 'librsvg',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.26/librsvg-2.26.3.tar.bz2',
'build':"""set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
"""
},
{
'name': 'libglade',
#'source': 'http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-2.6.2.tar.bz2',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/libglade-2.6.4.tar.bz2',
'build':"""set -ex
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
"""
},
{
'name': 'intltool',
'source': 'http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.bz2',
'build':"""set -x
CFLAGS="-m32" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
"""
},
{
'name': 'gtk-engines',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/gtk-engines/2.20/gtk-engines-2.20.2.tar.bz2',
'pre':"""
# This is a total hack to fake out the check for xgettext.
# This can be removed once we get xgettext compiling on mac
echo -e '#!/bin/sh\necho "(GNU gettext"' > /tmp/build_deps/bin/xgettext
chmod 755 /tmp/build_deps/bin/xgettext
""",
'build':"""set -x
CFLAGS="-m32" ./configure --disable-nls --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
},
{
'name': 'murrine',
'source': 'http://ftp.gnome.org/pub/GNOME/sources/murrine/0.98/murrine-0.98.1.tar.bz2',
'build':"""set -x
curl -L http://beefydude.lab.xamarin.com/patches/murrine-link-pixman.patch | patch -p1 || exit 1
ACLOCAL="aclocal -I/tmp/build_deps/share/aclocal" autoreconf -fi || exit 1
CFLAGS="-m32" ./configure --prefix=/tmp/install || exit 1
make || exit 1
make install || exit 1
"""
},
# {
# 'name': 'gtk-quartz-engine',
# 'source': 'http://build.mono.lab.novell.com/~builder/gtk-quartz-engine-0.2.tar.bz2',
# #'source': 'http://downloads.sourceforge.net/project/gtk-osx/GTK%20Quartz%20Engine/gtk-quartz-engine-0.2.tar.gz',
# 'build':"""set -x
# CFLAGS="-m32" ./configure --prefix=/tmp/install
# make || exit 1
# make install || exit 1
# """
# },
{
'name': 'ige-mac-integration',
#'source': 'http://ftp.imendio.com/pub/imendio/ige-mac-integration/ige-mac-integration-0.8.2.tar.gz',
'source': 'http://surfnet.dl.sourceforge.net/project/gtk-osx/GTK-OSX%20Build/ige-mac-integration-0.9.8.tar.bz2',
'build':"""set -x
CFLAGS="-m32" LDFLAGS="-framework AppKit -Xlinker -headerpad_max_install_names" ./configure --prefix=/tmp/install
make || exit 1
make install || exit 1
""",
},
{
'name': 'sqlite',
#'source': 'http://www.sqlite.org/sqlite-3.5.7.tar.gz',
'source': 'http://www.sqlite.org/sqlite-3.6.23.1.tar.gz',
'build':"""
CFLAGS="-m32" ./configure --prefix=/tmp/install --disable-tcl
make || exit 1
make install || exit 1
""",
'post':"""
rm -Rf /tmp/install/bin
rm -Rf /tmp/install/man
"""
},
]