Blame docker-builder-data/build/script/packet/jsonc-0.12.1.sh

e0593e
DEPS=""
e0593e
e0593e
PK_DIRNAME="json-c-0.12.1"
e0593e
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
e0593e
PK_URL="https://s3.amazonaws.com/json-c_releases/releases/$PK_ARCHIVE"
e0593e
823a31
if [ "$PLATFORM" = "win" ]; then
823a31
    PK_CFLAGS="-Wno-error=unknown-pragmas"
823a31
    PK_LDFLAGS="-ladvapi32 -lgettextlib"
823a31
fi
823a31
e0593e
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
6364a7
6364a7
pkhook_prebuild() {
6364a7
    if [ ! -f "Makefile.in.orig" ]; then
6364a7
        mv Makefile.in Makefile.in.orig
6364a7
    fi
6364a7
    cat Makefile.in.orig | sed -e 's| -Werror | |g' > Makefile.in
6364a7
}