forked from rca/GPGMail
/
build-gpgme.sh
executable file
·85 lines (48 loc) · 2.21 KB
/
build-gpgme.sh
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
#!/bin/bash
export PREFIX="`pwd`/library-build"
export SOURCES="`pwd`/sources"
echo "SOURCES $SOURCES"
echo "PREFIX $PREFIX"
mkdir -p $SOURCES
pushd $SOURCES;
if [ ! -f "gettext-0.18.1.1.tar.gz" ]; then
curl -O http://ftp.gnu.org/gnu/gettext/gettext-0.18.1.1.tar.gz
tar xzf gettext-0.18.1.1.tar.gz
fi
# Build gettext.
pushd gettext-0.18.1.1
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch x86_64 -arch i386" \
./configure --prefix=$PREFIX --disable-shared --disable-dependency-tracking \
--disable-java --disable-native-java --disable-csharp \
--with-included-gettext --with-included-glib \
--with-included-libcroco --with-included-libxml --disable-libasprintf
make install
popd
# Build libgpg-error
if [ ! -f "libgpg-error-1.8.tar.bz2" ]; then
curl -O ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.8.tar.bz2
tar xjf libgpg-error-1.8.tar.bz2
fi
pushd libgpg-error-1.8
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch x86_64 -arch i386" LDFLAGS="-framework CoreFoundation" ./configure --prefix=$PREFIX --disable-shared --disable-dependency-tracking --with-libintl-prefix=$PREFIX
make install
popd
# Build libassuan
if [ ! -f "libassuan-2.0.0.tar.bz2" ]; then
curl -O ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-2.0.0.tar.bz2
tar xjf libassuan-2.0.0.tar.bz2
fi
pushd libassuan-2.0.0
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch x86_64 -arch i386" ./configure --prefix=$PREFIX --disable-shared --disable-dependency-tracking --with-gpg-error-prefix=$PREFIX
make install
popd
# Build gpgpme
if [ ! -f "gpgme-1.3.0.tar.bz2" ]; then
curl -O ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-1.3.0.tar.bz2
tar xjf gpgme-1.3.0.tar.bz2
fi
pushd gpgme-1.3.0
echo "./configure --prefix=$PREFIX --enable-static --disable-shared --disable-dependency-tracking --with-gpg-error-prefix=$PREFIX --with-gpg=$PREFIX/bin/gpg --with-libassuan-prefix=$PREFIX --without-pth --disable-glibtest"
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.6.sdk -arch x86_64 -arch i386" ./configure --prefix=$PREFIX --enable-static --disable-shared --disable-dependency-tracking --with-gpg-error-prefix=$PREFIX --with-gpg=$PREFIX/bin/gpg --with-libassuan-prefix=$PREFIX --without-pth --disable-glibtest
make install
popd