Blame env-builder-data/build/script/include/inc-pkbuild-default.sh

e14835
e14835
# PK_DIRNAME
ce0d6b
# PK_CONFIGURE_OPTIONS
f0f81e
# PK_CONFIGURE_OPTIONS_DEFAULT
ce0d6b
# PK_CFLAGS
ce0d6b
# PK_CPPFLAGS
823a31
# PK_LDFLAGS
e14835
e14835
pkbuild() {
ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1
3b09af
    
3b09af
    if ! pkhook_prebuild; then
3b09af
        return 1
3b09af
    fi
3b09af
b727d1
    if ! check_packet_function $NAME build.configure; then
823a31
        CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" LDFLAGS="$PK_LDFLAGS $LDFLAGS" \
3b09af
        ./configure \
b727d1
            $PK_CONFIGURE_OPTIONS_DEFAULT \
b727d1
            $PK_CONFIGURE_OPTIONS \
3b09af
         || return 1
b727d1
        set_done $NAME build.configure
e14835
    fi
e14835
    
823a31
    if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" LDFLAGS="$PK_LDFLAGS $LDFLAGS" \
ce0d6b
     make -j${THREADS}; then
e14835
        return 1
e14835
    fi
e14835
}