Blame docker-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
e14835
e14835
pkbuild() {
ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME" || return 1
e14835
	if ! check_packet_function $NAME build.cunfigure; then
ce0d6b
    	CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \
f0f81e
    	./configure \
f0f81e
    	 $PK_CONFIGURE_OPTIONS_DEFAULT \
f0f81e
    	 $PK_CONFIGURE_OPTIONS \
f0f81e
    	 || return 1
e14835
		set_done $NAME build.cunfigure
e14835
    fi
e14835
    
ce0d6b
    if ! CFLAGS="$PK_CFLAGS $CFLAGS" CPPFLAGS="$PK_CPPFLAGS $CPPFLAGS" \
ce0d6b
     make -j${THREADS}; then
e14835
        return 1
e14835
    fi
e14835
}