6 SDKFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
8 LIBS_TAR_DIR="`pwd`/libs"
9 LIBS_DEST_DIR="$BUILD_DIR/libs"
10 LIBS_INST_DIR="$LIBS_DEST_DIR/inst"
11 LIBS_SRC_DIR="$LIBS_DEST_DIR/src"
13 TAR_LIBXML2="$LIBS_TAR_DIR/libxml2-2.6.17.tar.gz"
14 TAR_LIBXSLT="$LIBS_TAR_DIR/libxslt-1.1.12.tar.gz"
15 TAR_EXPAT="$LIBS_TAR_DIR/expat-2005-01-28.tar.gz"
16 TAR_SABLOT="$LIBS_TAR_DIR/Sablot-1.0.2.tar.gz"
18 echo $LIBS_TAR_DIR / $LIBS_DEST_DIR / $LIBS_INST_DIR / $LIBS_BUILD_DIR
20 [ -e "$LIBS_TAR_DIR" ] || exit 1
21 [ -e "$LIBS_DEST_DIR" ] || mkdir -p "$LIBS_DEST_DIR" || exit 1
22 [ -e "$LIBS_INST_DIR" ] || mkdir -p "$LIBS_INST_DIR" || exit 1
23 [ -e "$LIBS_SRC_DIR" ] || mkdir -p "$LIBS_SRC_DIR" || exit 1
29 LIB="$LIBS_DEST_DIR/libxml2.dylib"
30 if [ ! -e "$LIB" ]; then
36 tar -xzf "$TAR_LIBXML2"
39 ./configure --without-python --prefix="$LIBS_INST_DIR"
42 lipo -create "$LIBS_INST_DIR/lib/libxml2.dylib" -output "$LIB"
43 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
45 #cp "$LIBS_INST_DIR/lib/libxml2.dylib" "$LIB"
52 LIB="$LIBS_DEST_DIR/libxslt.dylib"
53 if [ ! -e "$LIB" ]; then
58 tar -xzf "$TAR_LIBXSLT"
61 ./configure --prefix="$LIBS_INST_DIR" --with-libxml-prefix="$LIBS_INST_DIR"
65 lipo -create "$LIBS_INST_DIR/lib/libxslt.dylib" -output "$LIB"
66 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
68 lipo -create "$LIBS_INST_DIR/lib/libexslt.dylib" -output "$LIBS_DEST_DIR/libexslt.dylib"
69 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIBS_DEST_DIR/libexslt.dylib" "$BUILD_DIR"
77 LIB="$LIBS_DEST_DIR/libexpat.dylib"
78 if [ ! -e "$LIB" ]; then
87 ./configure --prefix="$LIBS_INST_DIR"
88 INSTALL_ROOT="/" make -e install
90 #cp "$LIBS_INST_DIR/lib/libexpat.dylib" "$LIB"
91 lipo -create "$LIBS_INST_DIR/lib/libexpat.dylib" -output "$LIB"
92 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
98 LIB="$LIBS_DEST_DIR/libSablot.dylib"
99 if [ ! -e "$LIB" ]; then
104 tar -xzf "$TAR_SABLOT"
108 ./configure --disable-adding-meta --with-expat="$LIBS_INST_DIR" --prefix="$LIBS_INST_DIR"
111 #cp "$LIBS_INST_DIR/lib/libSablot.dylib" "$LIB"
112 lipo -create "$LIBS_INST_DIR/lib/libSablot.dylib" -output "$LIB"
113 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"