bf1d82
#!/bin/bash
bf1d82
bf1d82
set -e
bf1d82
[ ! -z "$SRC_DIR" ] || (echo "env was not set" && false)
bf1d82
bf1d82
NAME="libmypaint"
bf1d82
cp --remove-destination -rup "$SRC_DIR/$NAME" "$BUILD_DIR/"
bf1d82
cd "$BUILD_DIR/$NAME"
bf1d82
bf1d82
./autogen.sh
bf1d82
./configure --host="$HOST" --prefix="$PREFIX" --enable-shared --enable-static
bf1d82
make clean
bf1d82
make -j8
bf1d82
make install
bf1d82
bf1d82
cp "$INST_DIR/bin/"libiconv*.dll "$DIST_DIR/"
bf1d82
cp "$INST_DIR/bin/"libintl*.dll "$DIST_DIR/"
bf1d82
cp "$INST_DIR/bin/"libjson-c*.dll "$DIST_DIR/"
bf1d82
bf1d82
cp "$INST_DIR/bin/"libmypaint*.dll "$DIST_DIR/"
bf1d82
cp "$INST_DIR/lib/"libmypaint*.dll.a "$DIST_DIR/libmypaint.lib"
bf1d82
mkdir -p "$DIST_DIR/include"
bf1d82
cp -r "$INST_DIR/include/libmypaint" "$DIST_DIR/include/"
bf1d82
bf1d82
echo ""
bf1d82
echo "success"
bf1d82
echo ""