PATCH_LIST=" kbdrate-no-ctrl.diff install-dont-strip.diff " FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://www.kernel.org/pub/linux/utils/kbd/kbd-1.14.1.tar.gz" MAKEDEPENDS= function do_config { [ "$FLXARCH" = x86_64 -o "$FLX_ARCH_SMALL" = "i386" ] || return 0 # note: this is due to a missing configure in 1.14 chmod +x configure ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ac_cv_func_setpgrp_void=yes ./configure --prefix=/usr --datadir=/usr/share/kbd \ --mandir=/usr/man --disable-nls \ --host=$FLXTARG --build=$FLXHOST # grep -v ENABLE_NLS defines.h > defines.h- && mv defines.h- defines.h } function do_compile_only { [ "$FLXARCH" = x86_64 -o "$FLX_ARCH_SMALL" = "i386" ] || return 0 # WARNING! it is mandatory to force LEX to "flex" as it produces a wrong # language if built with "lex" ('#' at the beginning of lines not taken # as a comment if followed by other text). $FLXPMAKE all CC="$CC" LEX=flex } function do_prepack { [ "$FLXARCH" = x86_64 -o "$FLX_ARCH_SMALL" = "i386" ] || return 0 $FLXMAKE install DESTDIR=$ROOTDIR # older PRF still reference /bin/loadkeys, so keep it there for a while #mkdir -p $ROOTDIR/bin #cp $ROOTDIR/usr/bin/loadkeys $ROOTDIR/bin/ set_default_perm $ROOTDIR } # this function is there to ensure that configure will not be removed function do_clean { make clean ( do_delpack ) return 0 }