Blame docker-builder-data/build/script/packet/sdl-1.2.15.sh

1d4d1c
DEPS=""
1d4d1c
1d4d1c
PK_DIRNAME="SDL-1.2.15"
1d4d1c
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
1d4d1c
PK_URL="https://www.libsdl.org/release/$PK_ARCHIVE"
1d4d1c
3b09af
PK_CONFIGURE_OPTIONS_DEFAULT="--host=$HOST --prefix=$INSTALL_PACKET_DIR"
1d4d1c
1d4d1c
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
3b09af
        if [ "$PLATFORM" = "fedora" ]; then
31c087
            cp --remove-destination "$UNPACK_PACKET_DIR/$PK_DIRNAME/src/video/x11/SDL_x11sym.h" "src/video/x11" || return 1
3b09af
            patch "src/video/x11/SDL_x11sym.h" "$FILES_PACKET_DIR/SDL_x11sym.h.patch" || return 1
3b09af
        fi
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
    if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \
3b09af
     make -j${THREADS}; then
3b09af
        return 1
3b09af
    fi
3b09af
}