Blame docker-builder-data/build/script/packet/xmlpp-2.22.0.sh

ce0d6b
DEPS="xml-2.9.4 glibmm-2.41.4"
ce0d6b
ce0d6b
PK_DIRNAME="libxml++-2.22.0"
ce0d6b
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
ce0d6b
PK_URL="https://download.gnome.org/sources/libxml++/2.22/$PK_ARCHIVE"
ce0d6b
ce0d6b
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
3b09af
3b09af
pkbuild() {
3b09af
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1
3b09af
    if ! check_packet_function $NAME build.cunfigure; then
c35e3a
        cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/configure" .
c35e3a
        patch configure "$FILES_PACKET_DIR/configure.patch"
3b09af
        CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \
3b09af
        ./configure \
3b09af
         $PK_CONFIGURE_OPTIONS_DEFAULT \
3b09af
         $PK_CONFIGURE_OPTIONS \
3b09af
         || return 1
3b09af
        set_done $NAME build.cunfigure
3b09af
    fi
3b09af
3b09af
    if [ "$PLATFORM" = "win" ]; then
3b09af
        if [ ! -f "libxml++/exceptions/exception.h.orig" ]; then
3b09af
            mv libxml++/exceptions/exception.h libxml++/exceptions/exception.h.orig
3b09af
        fi
3b09af
        cat libxml++/exceptions/exception.h.orig | sed -e 's/LIBXMLPP_API//g' > libxml++/exceptions/exception.h
3b09af
    fi
3b09af
3b09af
    if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \
3b09af
     make -j${THREADS}; then
3b09af
        return 1
3b09af
    fi
3b09af
}