7 LIBS_TAR_DIR="`pwd`/libs"
8 LIBS_DEST_DIR="$BUILD_DIR/libs"
9 LIBS_INST_DIR="$LIBS_DEST_DIR/inst"
10 LIBS_SRC_DIR="$LIBS_DEST_DIR/src"
12 TAR_LIBXML2="$LIBS_TAR_DIR/libxml2-2.6.17.tar.gz"
13 TAR_LIBXSLT="$LIBS_TAR_DIR/libxslt-1.1.12.tar.gz"
14 TAR_EXPAT="$LIBS_TAR_DIR/expat-2005-01-28.tar.gz"
15 TAR_SABLOT="$LIBS_TAR_DIR/Sablot-1.0.2.tar.gz"
17 echo $LIBS_TAR_DIR / $LIBS_DEST_DIR / $LIBS_INST_DIR / $LIBS_BUILD_DIR
19 [ -e "$LIBS_TAR_DIR" ] || exit 1
20 [ -e "$LIBS_DEST_DIR" ] || mkdir -p "$LIBS_DEST_DIR" || exit 1
21 [ -e "$LIBS_INST_DIR" ] || mkdir -p "$LIBS_INST_DIR" || exit 1
22 [ -e "$LIBS_SRC_DIR" ] || mkdir -p "$LIBS_SRC_DIR" || exit 1
28 LIB="$LIBS_DEST_DIR/libxml2.dylib"
29 if [ ! -e "$LIB" ]; then
34 tar -xzf "$TAR_LIBXML2"
36 ./configure --prefix="$LIBS_INST_DIR"
39 cp "$LIBS_INST_DIR/lib/libxml2.dylib" "$LIB"
40 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
46 LIB="$LIBS_DEST_DIR/libxslt.dylib"
47 if [ ! -e "$LIB" ]; then
52 tar -xzf "$TAR_LIBXSLT"
54 ./configure --prefix="$LIBS_INST_DIR" --with-libxml-prefix="$LIBS_INST_DIR"
57 cp "$LIBS_INST_DIR/lib/libxslt.dylib" "$LIB"
58 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
60 cp "$LIBS_INST_DIR/lib/libexslt.dylib" "$LIBS_DEST_DIR/libexslt.dylib"
61 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIBS_DEST_DIR/libexslt.dylib" "$BUILD_DIR"
67 LIB="$LIBS_DEST_DIR/libexpat.dylib"
68 if [ ! -e "$LIB" ]; then
75 ./configure --prefix="$LIBS_INST_DIR"
76 INSTALL_ROOT="/" make -e install
78 cp "$LIBS_INST_DIR/lib/libexpat.dylib" "$LIB"
79 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
85 LIB="$LIBS_DEST_DIR/libSablot.dylib"
86 if [ ! -e "$LIB" ]; then
91 tar -xzf "$TAR_SABLOT"
94 ./configure --disable-adding-meta --with-expat="$LIBS_INST_DIR" --prefix="$LIBS_INST_DIR"
97 cp "$LIBS_INST_DIR/lib/libSablot.dylib" "$LIB"
98 perl "$LIBS_TAR_DIR/fix_install_paths.pl" "$LIB" "$BUILD_DIR"
106 GNUSTYLEPREFIX=$TARGET_BUILD_DIR/libxml2-gnustyle
107 ICONVPREFIX=$TARGET_BUILD_DIR/libiconv-gnustyle
109 # make sure things match our expectations
111 if [ ! -d $SUBDIR ]; then
112 echo no $SUBDIR dir in current dir `pwd`, cannot continue!
117 if [ x$ACTION = "xclean" ]; then
120 rm -rf $GNUSTYLEPREFIX
124 elif [ x$ACTION = "x" ]; then
130 if [ ! -f Makefile ]; then
132 echo no Makefile, running configure
134 ./configure --prefix=$GNUSTYLEPREFIX --without-python --with-iconv=$ICONVPREFIX
139 if [ ! -d $GNUSTYLEPREFIX ]; then