#!/bin/sh case $ZSH_VERSION in '') :;; *) alias -g '${1+"$@"}="$@"';; esac && CDPATH= && unset CDPATH case $? in 0) :;; *) (exit "$?");; esac && prj_tmpdir_tmp_= && unset prj_tmpdir_tmp_ && prj_tmpdir() { { test "$#" = 1 || test "$#" = 2; } && prj_tmpdir_tmp_=${2-$TMPDIR} && case $prj_tmpdir_tmp_ in /*) :;; *) prj_tmpdir_tmp_=/tmp;; esac && set x "$1" "${prj_tmpdir_tmp_?}" && shift && prj_tmpdir_tmp_=$2/${prj_program-prj_tmpdir}-XXXXXXXX && if prj_tmpdir_tmp_=`{ mktemp -d "${prj_tmpdir_tmp_?}"; } 2> /dev/null`; then eval "$1=\${prj_tmpdir_tmp_?}" else prj_tmpdir_tmp_=$2/${prj_program-prj_tmpdir}-$$ && prj_tmpdir_tmp_=${prj_tmpdir_tmp_?}`date +-%s 2> /dev/null || :` && ( umask 077 && exec mkdir "${prj_tmpdir_tmp_?}" ) && eval "$1=\${prj_tmpdir_tmp_?}" fi } case $? in 0) :;; *) (exit "$?");; esac && prj_not() { if test "$#" = 0 || "$@" then return 100 else return 0 fi } case $? in 0) :;; *) (exit "$?");; esac && prj_match() { eval " case \${2?} in $1) :;; *) return 100;; esac" } case $? in 0) :;; *) (exit "$?");; esac && prj_is_set() { eval "test \"\${${1?}+x}\" = x" } case $? in 0) :;; *) (exit "$?");; esac && prj_unset() { while test "$#" != 0; do { eval "$1=" && unset "$1" && shift } || return "$?" done } case $? in 0) :;; *) (exit "$?");; esac && prj_set() { eval "$1=\${2?}" } case $? in 0) :;; *) (exit "$?");; esac && prj_set_default() { : "${2?}" && eval " if test \"\${$1+x}\" = x; then :; else $1=\$2 fi" } case $? in 0) :;; *) (exit "$?");; esac && prj_prepend_tmp0_= && prj_prepend_tmp1_= && unset prj_prepend_tmp0_ prj_prepend_tmp1_ && prj_prepend() { set x "$1" "${2?}" "${3-:}" && shift && prj_prepend_tmp0_=$3$2$3 && prj_prepend_tmp1_=$3$3 && eval ' case $3$'"$1"'$3 in *"${prj_prepend_tmp0_?}"*) :;; "${prj_prepend_tmp1_?}") '"$1"'=$2;; *) '"$1"'=$2$3$'"$1"';; esac' } case $? in 0) :;; *) (exit "$?");; esac && prj_append_tmp0_= && prj_append_tmp1_= && unset prj_append_tmp0_ prj_append_tmp1_ && prj_append() { set x "$1" "${2?}" "${3-:}" && shift && prj_append_tmp0_=$3$2$3 && prj_append_tmp1_=$3$3 && eval ' case $3$'"$1"'$3 in *"${prj_append_tmp0_?}"*) :;; "${prj_append_tmp1_?}") '"$1"'=$2;; *) '"$1"'=$'"$1"'$3$2;; esac' } case $? in 0) :;; *) (exit "$?");; esac && prj_capture() { eval " shift && ${1?}"'=`${1+"$@"}`' } case $? in 0) :;; *) (exit "$?");; esac && prj_x2() { : "${2?}" && "$@" && export "$2" } case $? in 0) :;; *) (exit "$?");; esac && prj_u2() { : "${2?}" && "$@" && eval " set x \"\$$2\" && $2= && unset $2 && $2=\$2" } case $? in 0) :;; *) (exit "$?");; esac && prj_which_elt_= && prj_which_rest_= && unset prj_which_elt_ prj_which_rest_ && prj_which_get_elt() { sed ' 1h 1!H $!d g s%:.*$%% /./s%$%/% ' <&2 return 100 } } case $? in 0) :;; *) (exit "$?");; esac && prj_echo() { case $* in -*|*\\*) # Avoid echo's nonportable behavior for switches and escapes. cat <&2 } case $? in 0) :;; *) (exit "$?");; esac && prj_fail() { : "${1?}" && set x "$*" && if test "${prj_program+x}" = x then set x "${prj_program?}: $2" else : fi && case $2 in -*|*\\*) cat <&2 return 100 } case $? in 0) :;; *) (exit "$?");; esac && prj_die() { : "${1?}" && set x "$*" && if test "${prj_program+x}" = x then set x "${prj_program?}: $2" else : fi && case $2 in -*|*\\*) cat <&2 exit 100 } case $? in 0) :;; *) (exit "$?");; esac && prj_sedarg1() { sed -e ' 1h 1!H $!d g '"$1" < /dev/null 2>&1; then prj_exists() { : "${1?}" && { test -e "$1" || test -h "$1"; } } else prj_exists() { : "${1?}" && { test -f "$1" || test -d "$1" || test -h "$1" || test -b "$1" || test -c "$1" || test -p "$1" } } fi case $? in 0) :;; *) (exit "$?");; esac && if (prj_which readlink_path readlink) 2> /dev/null; then : elif (exec perl -e '') > /dev/null 2>&1; then readlink() { perl -le 'print(readlink($ARGV[0]) or die($!."\n"))' "${1?}"; } elif (exec python -c '') > /dev/null 2>&1; then readlink() { python -c 'import sys, os; print os.readlink(sys.argv[1])' "${1?}" } elif (exec guile -c '') > /dev/null 2>&1; then readlink() { guile -c '(format #t "~A\n" (readlink (cadr (program-arguments))))' "${1?}" } else readlink() { echo "${prj_program-readlink}: unable to find a readlink program" >&2 return 100 } fi case $? in 0) :;; *) (exit "$?");; esac && prj_id() { ( case $PATH: in /usr/xpg4/bin:*) :;; :) PATH=/usr/xpg4/bin;; *) PATH=/usr/xpg4/bin:${PATH?};; esac && export PATH && exec id ${1+"$@"} ) } # -*- sh -*- # case $? in 0) :;; *) (exit "$?");; esac && warn_() { prj_warn "warning: $*" && sleep 2 && prj_warn "continuing" } && need_writable_dir_() { : >> "$1"/spf-writability-test && rm "$1"/spf-writability-test } && #### curl-config curl #### dvdnav-config libdvdnav #### freetype-config freetype #### glib-config glib --prefix="$SPF_CONF"/glib #### gtk-config gtk+ #### libIDL-config libidl #### libpng-config libpng #### libpng12-config libpng #### pkg-config pkgconfig --define-variable=prefix="$SPF_CONF"/foo #### sdl-config sdl #### xml2-config libxml2 if test "${2+x}" = '' then prj_fail "usage: sp-foreign package version [options]" else : fi && prj_u2 prj_set prj_program sp-foreign && prj_x2 prj_set SPF_PREFIX "${SPF_PREFIX-$SP_ROOT/package/misc/spf}" && case $SPF_PREFIX in /*);; *) prj_fail '$SPF_PREFIX must be absolute';; esac && prj_x2 prj_set_default SPF_LIBC glibc && case $SPF_LIBC in gnu) SPF_LIBC=glibc;; diet) SPF_LIBC=dietlibc;; *) :;; esac && prj_u2 prj_set package_ "$1" && shift && prj_u2 prj_set version_ "$1" && shift && prj_u2 prj_set build_ "${SPF_BUILD-}" && prj_u2 prj_set packver_ "${package_}-${version_}" && prj_u2 prj_set current_ "$SPF_PREFIX/$package_" && prj_u2 prj_set prefix_ "$SPF_PREFIX/$packver_$build_" && prj_x2 prj_set SPF_CONF "$prefix_"/spf && prj_u2 prj_set conflibc_ "$SPF_CONF/$SPF_LIBC" && prj_u2 prj_set tab_ ' ' && prj_u2 prj_set nl_ ' ' && prj_u2 prj_set site_lisp share/emacs/site-lisp && prj_set_default SPF_COMPAT y && case $version_ in [0123456789]*);; *) prj_fail 'version must begin with a digit';; esac && case $CPPFLAGS in *"$nl_"*) prj_fail '$CPPFLAGS must not contain newlines';; *) :;; esac && case $CFLAGS in *"$nl_"*) prj_fail '$CFLAGS must not contain newlines';; *) :;; esac && case $ASFLAGS in *"$nl_"*) prj_fail '$ASFLAGS must not contain newlines';; *) :;; esac && case $LDFLAGS in *"$nl_"*) prj_fail '$LDFLAGS must not contain newlines';; *) :;; esac && if prj_is_set SP_FOREIGN_PREFIX; then warn_ 'SP_FOREIGN_PREFIX has been renamed to SPF_PREFIX'; else : fi && if prj_is_set SP_FOREIGN_BARE; then warn_ 'SP_FOREIGN_BARE has been renamed to SPF_BARE'; else : fi && if prj_is_set spf_prefix; then warn_ 'spf_prefix has been renamed to SPF_PREFIX'; else : fi && if prj_is_set spf_bare; then warn_ 'spf_bare has been renamed to SPF_BARE'; else : fi && if prj_is_set spf_no_nls; then warn_ 'spf_no_nls has been renamed to SPF_NO_NLS'; else : fi && if prj_is_set spf_build; then warn_ 'spf_build has been renamed to SPF_BUILD'; else : fi && if prj_is_set spf_libc; then warn_ 'spf_libc has been renamed to SPF_LIBC'; else : fi && if prj_is_set spf_gcc; then warn_ 'spf_gcc has been renamed to SPF_GCC'; else : fi && case $prefix_ in *"$nl_"*) prj_fail 'package directory must not contain newlines';; *%*) prj_fail 'package directory must not contain "%"';; /*);; *) prj_fail '$SPF_PREFIX must begin with "/"';; esac && prj_unset x_ && prj_u2 prj_set path_ /command && { prj_is_set SPF_BARE || \ for x_ in /usr/local/bin /usr/local/sbin /bin /sbin /usr/bin /usr/sbin \ /usr/X11R6/bin /usr/openwin/bin /usr/ccs/bin /usr/ucb; do if test -d "$x_"/.; then path_=$path_:$x_; else :; fi || exit "$?" done } && prj_unset arg_ && checkversion_() { for arg_ in ${1+"$@"}; do if test "$version_" = "$arg_"; then return; else :; fi || return "$?" done && warn_ "this script was developed for version $1;" \ "check${nl_}http://multivac.cwru.edu./spf/#$package_${nl_}to" \ "see if this script has been updated for a newer version." } && prj_unset file_ filenew_ && sed_() { file_=$1 && filenew_=$file_'{new}' && rm -f "$filenew_" && cp -p "$file_" "$filenew_" && chmod u+w "$filenew_" && sed -e "$2" < "$file_" > "$filenew_" && if cmp "$file_" "$filenew_" > /dev/null 2>&1 then rm "$filenew_" else mv -f "$filenew_" "$file_" fi } && prj_u2 prj_capture uname_s_ uname && prj_u2 prj_capture uname_r_ uname -r && prj_u2 prj_capture uname_m_ uname -m && prj_u2 prj_set ws_ " $tab_" && prj_u2 prj_set cws_ "[$ws_]" && prj_u2 prj_set cwsp_ "$cws_$cws_*" && define_c_() { sed_ "$1" "s%^\\($cws_*#$cws_*define$cwsp_$2$cwsp_\\)[^$ws_].*$%\\1$3%" } && define_make_() { eval "$1=\"\$$1$nl_"'s%^\\($cws_*$2$cws_*=$cws_*\\).*$%\\1$3%"' } && uncomment_c_() { eval "$1=\"\$$1$nl_"'s%^$cws_*/\\*$cws_*\\($2\\)$cws_*\\*/$cws_*$%\\1%"' } && fix_errno_() { while test "$#" != 0; do { sed_ "$1" 's%^extern int errno;$%#include %' && shift } || return "$?" done } && fix_ltconfig_() { rungcc_ && if test -d "$conflibc_"/.; then sed_ "${1-.}/ltconfig" 's% \(/lib/libc\)% '"$conflibc_"'\1%g s%^\([a-z_]*_path_spec=\"\)%\1'"$conflibc_"'/lib %' else : fi } && cur_link_() { if test "$SPF_COMPAT" = n; then return 0; else :; fi && set x "$SP_ROOT$1" && shift && if prj_not test -d "$1/$package_"/.; then mkdir -p "$1/$package_{new}" && rm -f "$1/$package_{new}/$package_" && ln -s "$current_" "$1/$package_{new}/$package_" && mv -f "$1/$package_{new}/$package_" "$1" && { rmdir "$1/$package_{new}" || :; } else : fi } && prj_unset dir_ file_ filenew_ && install_() { dir_=$1 && shift && mkdir -p "$dir_" && for arg_ in ${1+"$@"}; do { file_=$arg_ && filenew_=$dir_/$file_'{new}' && rm -f "$filenew_" && cp -p "$file_" "$filenew_" && mv -f "$filenew_" "$dir_/$file_" } || return "$?" done } && lib_links_() { dir_=${2-$prefix_/lib} && arg_=$dir_/$1 && set -- "$arg_".* && if test "$#:$dir_" = "1:$arg_.*" && prj_not test -f "$dir_" then return 0 else : fi && while :; do { file_=`basename "$1"` && shift && prj_capture filenew_ prj_sedarg1 's%\.[^.]*$%%' "$file_" && filenew_=$dir_/$filenew_ && { test -h "$filenew_" || test -f "$filenew_" || ln -s "$file_" "$filenew_"; } && if test "$filenew_" = "$arg_" then break else set -- "$filenew_" fi } || return "$?" done } && maybelink_() { ( cd "$1" && if prj_not test -f "$2" && test -f "$3"; then ln -s "$3" "$2"; else :; fi ) } && spf_current_() { dir_=$1 && file_=$2 && set -- "$dir_/$file_"[0-9]* && { test "$#" = 1 || prj_fail 'multiple versions found in '"$dir_"; } && mv -f "$1" "$dir_"/spf-current && ln -s spf-current "$1" } && needfile() { { test -e "$1"; } 2> /dev/null || test -d "$1"/. || test -f "$1" || prj_fail "required file is missing: $1" } && prj_unset link_ target_ && conffile_() { link_=$1 && target_=$2 && if prj_not test -f "$link_"; then needfile "$target_" && mkdir -p "$SPF_CONF" && ln -s "$target_" "$link_" else : fi } && prj_unset confdir_opt_ && confdir_() { for arg_ in ${1+"$@"}; do { if test -d "$SPF_CONF/$arg_/."; then continue; else :; fi && if prj_is_set confdir_opt_ then test -d "$SPF_PREFIX/$arg_/." || continue else needfile "$SPF_PREFIX/$arg_/." fi && mkdir -p "$SPF_CONF" && ln -s "$SPF_PREFIX/$arg_" "$SPF_CONF"/ } || return "$?" done } && prj_unset rpath_ conflib_include_ conflib_opt_ conflib_noescape_R_ \ conflib_run_path_ && conflib_() { rpath_=-Wl && for arg_ in ${1+"$@"}; do { if prj_is_set conflib_opt_; then test -d "$SPF_CONF/$arg_/." || test -d "$SPF_PREFIX/$arg_/." || \ continue else : fi && confdir_ "$arg_" && arg_=$SPF_CONF/$arg_ && if test "$conflib_include_" = env then prj_x2 prj_append CPATH "$arg_/include" else cppflags_="$cppflags_ -I$arg_/include" fi && ldflags_="$ldflags_ -L$arg_/lib" && if prj_is_set conflib_run_path_; then prj_x2 prj_append LD_RUN_PATH "$arg_/lib" elif prj_is_set conflib_noescape_R_; then ldflags_="$ldflags_ -R $arg_/lib" else rpath_=$rpath_,-R,$arg_/lib fi && if test -d "$arg_"/lib/pkgconfig/. then prj_x2 prj_append PKG_CONFIG_PATH "$arg_"/lib/pkgconfig else : fi && if test -d "$arg_"/lib/site_perl/. then prj_x2 prj_append PERL5LIB "$arg_"/lib/site_perl else : fi } || return "$?" done && case $rpath_ in -Wl,*) ldflags_="$ldflags_ $rpath_";; *) :;; esac } && selflib_() { if prj_is_set conflib_run_path_; then prj_x2 prj_append LD_RUN_PATH "$prefix_/lib" elif prj_is_set conflib_noescape_R_; then ldflags_="$ldflags_ -R $prefix_/lib" else ldflags_="$ldflags_ -Wl,-R,$prefix_/lib" fi } && ld_run_path_() { case $uname_s_ in Linux|SunOS);; *) warn_ "your ld must support LD_RUN_PATH";; esac && conflib_run_path_= } && solaris_static_libgcc_() { if test "$uname_s_" = SunOS then ldflags_="-static-libgcc $ldflags_" else : fi } && sp_foreign_path_() { mkdir -p sp-foreign-path && arg_=`pwd`/sp-foreign-path && case $PATH in "$arg_"|"$arg_":*);; *) prj_append arg_ "$PATH" && PATH=$arg_ && export PATH;; esac } && hide_commands_() { sp_foreign_path_ && ( cd sp-foreign-path && for arg_ in ${1+"$@"}; do { echo '#!/bin/sh' && echo 'exit 127'; } > "$arg_" || exit "$?" done && exec chmod +x ${1+"$@"} ) } && noop_commands_() { sp_foreign_path_ && ( cd sp-foreign-path && for arg_ in ${1+"$@"}; do { echo '#!/bin/sh' && echo 'exit 0'; } > "$arg_" || exit "$?" done && exec chmod +x ${1+"$@"} ) } && make_data_package_() { test -d "$SPF_CONF/$package_"-data/. || { arg_=$SPF_PREFIX/${package_}-data && if prj_not test -d "$arg_"/.; then arg_=${arg_}-0 && mkdir -p "$arg_" "$arg_{new}" && arg_=$arg_'{new}' && rm -f "$arg_/$package_"-data && ln -s "$package_"-data-0 "$arg_/$package_"-data && mv -f "$arg_/$package_"-data "$SPF_PREFIX"/ && rmdir "$arg_" else : fi && mkdir -p "$SPF_CONF" && ln -s "$SPF_PREFIX/$package_"-data "$SPF_CONF"/ } } && data_file_() { data_ "$1" "$2" f; } && data_dir_() { data_ "$1" "$2" d; } && data_other_() { data_ "$1" "$2" e; } && data_() { dir_=$1 && file_=$dir_/$2 && arg_=$3 && link_=$prefix_/$file_ && target_=$SPF_CONF/${package_}-data/$file_ && if test "$arg_" = d then mkdir -p "$link_" else touch "$link_" fi && if prj_not test -"$arg_" "$target_"; then ( cd "$prefix_" && exec tar -cf - "$file_" ) | \ ( cd "$SPF_CONF/${package_}-data" && exec tar -xf - ) else : fi && mv -f "$link_" "$link_".orig && if test "$dir_" = . then target_=spf/"${package_}-data/$2" else : fi && ln -s "$target_" "$prefix_/$dir_"/ } && ignore_args_() { if test "${1+x}" = x then warn_ "unused arguments:" "$@" else : fi } && rungcc_() { gcc -E -x c /dev/null > /dev/null; } && utc_() { prj_x2 prj_set TZ UTC0; } && if prj_not prj_is_set IMAKECPP; then x_=$PATH && PATH=$PATH:/lib && export PATH && prj_which IMAKECPP cpp && PATH=$x_ && export IMAKECPP else : fi && prj_unset CDPATH && prj_x2 prj_set RANDOM "$$" && #### config.guess breaks otherwise prj_u2 prj_set cppflags_ "$CPPFLAGS" && prj_u2 prj_set cxxflags_ "$CXXFLAGS" && prj_u2 prj_set cflags_ "$CFLAGS" && prj_u2 prj_set asflags_ "$ASFLAGS" && prj_u2 prj_set ldflags_ "$LDFLAGS" && prj_unset CPPFLAGS CXXFLAGS CFLAGS ASFLAGS LDFLAGS && pkg_before_setup_() { :; } && pkg_setup_() { prj_fail 'support for this package is incomplete'; } && pkg_after_setup_() { :; } && pkg_before_configure_() { :; } && pkg_configure_() { :; } && pkg_before_make_() { :; } && pkg_make_() { :; } && pkg_before_install_() { :; } && pkg_install_() { rm -f .spf-dirty-source && prj_fail 'support for this package is incomplete' } && pkg_after_install_() { :; } && pkg_check_() { :; } && doit_() { pkg_before_setup_ ${1+"$@"} && pkg_setup_ ${1+"$@"} && pkg_after_setup_ ${1+"$@"} && if test -f .spf-dirty-source; then prj_fail 'you already built this source directory; you need clean sources' else : fi && touch .spf-dirty-source && pkg_before_configure_ ${1+"$@"} && pkg_configure_ ${1+"$@"} && if test y = "${SPF_RUN_GCC_EARLY-n}"; then rungcc_; else :; fi && pkg_before_make_ ${1+"$@"} && pkg_make_ ${1+"$@"} && pkg_before_install_ ${1+"$@"} && pkg_install_ ${1+"$@"} && pkg_after_install_ ${1+"$@"} && if test y = "${SP_SKIP_TEST-n}"; then : elif test y = "${SP_IGNORE_TEST_FAIL-n}"; then pkg_check_ ${1+"$@"} || prj_warn "tests failed for $package_" else pkg_check_ ${1+"$@"} fi } && prj_unset setup_ setup_srcdir_ && setup_pkg_() { setup_="checkversion_ $1" && shift && setup_srcdir_=$packver_ && while test "$#" != 0; do { case $1 in srcdir:) setup_srcdir_=$2 && shift;; ld_run_path.) setup_="$setup_ && ld_run_path_";; selflib.) setup_="$setup_ && selflib_";; libs:) setup_="$setup_ && conflib_ $2" && shift;; optlibs:) setup_="$setup_ && conflib_opt_= && conflib_ $2 && unset conflib_opt_" && shift;; dirs:) setup_="$setup_ && confdir_ $2" && shift;; optdirs:) setup_="$setup_ && confdir_opt_= && confdir_ $2 && unset confdir_opt_" && shift;; data.) setup_="$setup_ && make_data_package_";; ignore_args.) setup_="$setup_ && "'ignore_args_ ${1+"$@"}';; need:) setup_="$setup_ && needfile $2" && shift;; *) prj_fail 'internal error: setup_pkg_: ' "$@";; esac && shift } || return "$?" done && eval 'pkg_setup_() { cd "$setup_srcdir_" && '"$setup_; }" } && djb_pkg_() { pkg_make_() { if test -f error.h; then fix_errno_ error.h; else :; fi && sed_ conf-home "1c\\${nl_}$prefix_\\${nl_}" && sed_ conf-cc "1c\\${nl_}gcc -O2 $cppflags_ $cflags_\\${nl_}" && sed_ conf-ld "1c\\${nl_}gcc -s $cppflags_ $cflags_ $ldflags_\\${nl_}" && make } && pkg_install_() { make setup check; } } && perl_pkg_() { pkg_configure_() { perl_configure_ ${1+"$@"}; } pkg_make_() { make; } pkg_install_() { make install; } pkg_check_() { prj_x2 prj_prepend PERL5LIB "$prefix_/lib/site_perl" && make test } } && perl_configure_() { "$SPF_CONF"/perl/bin/perl Makefile.PL PREFIX="$prefix_" \ CCFLAGS="$cppflags_ $cflags_" LDFLAGS="$cflags_ $ldflags_" ${1+"$@"} } && prj_u2 prj_set autoconf_path_ . && prj_unset nls_pkg_ x_pkg_ && autoconf_pkg_() { pkg_configure_() { autoconf_configure_ ${1+"$@"}; } && pkg_make_() { make; } && pkg_install_() { make install; } && pkg_check_() { make check; } } && autoconf_configure_() { autoconf_env_ && if prj_is_set nls_pkg_ && prj_is_set SPF_NO_NLS then set -- --disable-nls ${1+"$@"} else : fi && if prj_is_set x_pkg_ && test -d "$SPF_CONF"/xfree86/include/.; then set -- --x-includes="$SPF_CONF"/xfree86/include \ --x-libraries="$SPF_CONF"/xfree86/lib ${1+"$@"} else : fi && prj_unset had_libc_ had_gcc_ && if test -d "$conflibc_"/.; then had_libc_=; else :; fi && if test -d "$SPF_CONF"/gcc/.; then had_gcc_=; else :; fi && SPF_GCC_GCCLIB= "$autoconf_path_"/configure --prefix="$prefix_" ${1+"$@"} && { prj_is_set had_libc_ || rm -f "$conflibc_"; } && { prj_is_set had_gcc_ || rm -f "$SPF_CONF"/gcc; } } && prj_unset autoconf_no_O2_ && autoconf_env_() { { test "$ldflags_" = '' || prj_x2 prj_set LDFLAGS "$ldflags_"; } && { test "$asflags_" = '' || prj_x2 prj_set ASFLAGS "$asflags_"; } && CFLAGS=$cflags_ && { prj_is_set autoconf_no_O2_ || CFLAGS="-O2 $CFLAGS"; } && if test "$CFLAGS" = ''; then unset CFLAGS; else export CFLAGS; fi && { test "$cxxflags_" = '' || prj_x2 prj_set CXXFLAGS "$cxxflags_"; } && { test "$cppflags_" = '' || prj_x2 prj_set CPPFLAGS "$cppflags_"; } && prj_x2 prj_set CPP 'gcc -E' && prj_x2 prj_set CXXCPP 'g++ -E' } && python_pkg_() { pkg_configure_() { prj_u2 prj_capture python_site_dir_ "$SPF_CONF"/python/bin/python -c ' import sys from distutils.sysconfig import get_python_lib print get_python_lib(0, 0, sys.argv[1])' "$prefix_" } && pkg_make_() { "$SPF_CONF"/python/bin/python setup.py build; } && pkg_install_() { "$SPF_CONF"/python/bin/python setup.py install --prefix="$prefix_" } } && no_check_pkg_() { pkg_check_() { :; }; } && gcclib_check_pkg_() { pkg_check_() { arg_=0 && { SPF_GCC_GCCLIB= make check || arg_=$?; } && rm -f "$SPF_CONF"/gcc && set "$SPF_CONF"/* && if test "$#" = 1 && test "$1" = "$SPF_CONF/*" && prj_not test -d "$1"/. then rmdir "$SPF_CONF" else : fi && return "$arg_" } } && prj_unset x_ && if test -f "$SP_FOREIGN_DIR/$package_"; then . "$SP_FOREIGN_DIR/$package_" else case $package_ in a52dec) setup_pkg_ 0.7.4 && autoconf_pkg_ && set -- --enable-shared ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; };; acpid) setup_pkg_ '1.0.4 1.0.3' && pkg_install_() { mkdir "$prefix_"/bin && make INSTPREFIX="$prefix_" SBINDIR="$prefix_"/sbin \ BINDIR="$prefix_"/bin MAN8DIR="$prefix_"/man/man8 \ CFLAGS='-Wall -Werror -g $(DEFS) '"$cppflags_ $cflags_ $ldflags_" \ ${1+"$@"} all install };; agrep) setup_pkg_ 2.04 && pkg_install_() { make CFLAGS="$cppflags_ $cflags_ $ldflags_" ${1+"$@"} && mkdir "$prefix_"/bin "$prefix_"/man "$prefix_"/man/man1 && cp -p agrep "$prefix_"/bin/ && cp agrep.1 "$prefix_"/man/man1/ };; alsa-lib) setup_pkg_ '1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.2 1.0.1 0.9.6' && autoconf_pkg_ && pkg_before_configure_() { fix_ltconfig_ && noop_commands_ ldconfig };; alsa-utils) setup_pkg_ '1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.2 1.0.1 0.9.6' \ libs: 'alsa-lib ncurses' && case $version_ in 0.9.6|1.0.[124567]) :;; *) nls_pkg_=;; esac && autoconf_pkg_ && { test 1.0.8 != "$version_" || no_check_pkg_; };; antiword) setup_pkg_ '0.36.1 0.35 0.33' && pkg_install_() { define_c_ antiword.h GLOBAL_ANTIWORD_DIR "\"$prefix_/share\"" && make LOCAL_INSTALL_DIR="$prefix_"/bin \ LOCAL_RESOURCES_DIR="$prefix_"/share OPT="$cppflags_ -O2 $cflags_" \ LDFLAGS="$cppflags_ $cflags_ $ldflags_" ${1+"$@"} install && case $version_ in 0.36.1) #### report this chmod o+rx "$prefix_"/bin/* && chmod o+r "$prefix_"/share/*;; *) :;; esac };; atk) setup_pkg_ '1.10.1 1.8.0 1.6.1 1.6.0 1.2.4' libs: glib && autoconf_pkg_ && pkg_after_setup_() { mkdir "$prefix_"/include && ln -s . "$prefix_"/include/atk-1.0 } && pkg_before_configure_() { noop_commands_ ldconfig; };; audiofile) setup_pkg_ '0.2.6 0.2.4' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; aumix) setup_pkg_ 2.8 libs: ncurses optlibs: gpm && nls_pkg_= && autoconf_pkg_ && set -- --without-gtk --without-gtk1 ${1+"$@"};; autoconf) setup_pkg_ '2.60 2.59 2.58 2.57 2.54 2.53 2.52' && autoconf_pkg_ && case $version_ in 2.5*) :;; *) pkg_after_install_() { ln -s share/info share/man "$prefix_"/; };; esac && gcclib_check_pkg_;; automake) setup_pkg_ '1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.9.1 1.9 1.8.5 1.8.4 1.8.3 1.8.2 1.8 1.7.9 1.7.8 1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.7 1.5' \ optlibs: flex && autoconf_pkg_;; autotrace) setup_pkg_ 0.31.1 libs: 'imagemagick libpng xfree86 zlib' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; bash) setup_pkg_ '3.1 3.0 2.05b' \ srcdir: bash-"$version_" libs: 'readline ncurses' && if [ "$version_" = 2.05b ]; then :; else nls_pkg_=; fi && autoconf_pkg_ && pkg_configure_() { autoconf_configure_ --with-curses \ --with-installed-readline="$SPF_CONF"/readline ${1+"$@"} };; bc) ## needs flex-2.5.4a setup_pkg_ 1.06 optlibs: 'readline ncurses' && autoconf_pkg_ && pkg_before_configure_() { x_=`pwd`/lib && prj_append x_ "$PATH" && PATH=$x_ && export PATH && sed_ bc/scan.l 's+^\(_PROTOTYPE(char \*readline, (char \*));\)$+/*\1*/+' } && pkg_configure_() { if test -d "$SPF_CONF"/ncurses/include/. && test -d "$SPF_CONF"/readline/include/. then set -- --with-readline ${1+"$@"} else : fi && autoconf_configure_ ${1+"$@"} } && pkg_before_make_() { make timetest; };; bglibs) setup_pkg_ '1.041 1.040 1.031 1.028 1.027 1.026 1.024 1.023 1.022 1.021 1.020 1.019 1.018 1.017 1.016 1.015 1.011 1.010 1.009 1.008 1.006 1.005 1.002' \ ignore_args. && pkg_install_() { case $version_ in 1.0[01]*|1.020) sed_ conf-home "1c\\${nl_}$prefix_\\${nl_}";; *) sed_ conf-include "1c\\${nl_}$prefix_/include\\${nl_}" && sed_ conf-lib "1c\\${nl_}$prefix_/lib\\${nl_}" && if test 1.021 = "$version_" then mkdir "$prefix_"/include "$prefix_"/lib else sed_ conf-bin "1c\\${nl_}$prefix_/bin\\${nl_}" fi esac && case $version_ in 1.0[0123]*) :;; *) sed_ conf-man "1c\\${nl_}$prefix_/man\\${nl_}";; esac && sed_ conf-cc "1c\\${nl_}gcc -W -Wall -O2 $cppflags_ $cflags_\\${nl_}" && sed_ conf-ld \ "1c\\${nl_}gcc -s -L. $cppflags_ $cflags_ $ldflags_\\${nl_}" && make && case $version_ in 1.0[01]*|1.020) ./installer && ./instcheck && cur_link_ /usr/local;; *) make install;; esac };; bin86) setup_pkg_ '0.16.17 0.16.16 0.16.13 0.16.10 0.16.5' && pkg_after_setup_() { mkdir "$prefix_"/bin "$prefix_"/man "$prefix_"/man/man1 } && pkg_install_() { make PREFIX="$prefix_" CFLAGS="$cppflags_ -O2 -D_POSIX_SOURCE $cflags_" \ LDFLAGS="$ldflags_" ${1+"$@"} install };; bincimap) setup_pkg_ '1.2.13final 1.2.12final 1.2.11final 1.2.10final 1.2.9final 1.2.8final 1.2.7final 1.2.5 1.2.3' \ libs: zlib optlibs: openssl && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && pkg_configure_() { { test -d "$SPF_CONF"/openssl/include/. || set -- --without-ssl ${1+"$@"}; } && autoconf_configure_ ${1+"$@"} };; binutils) setup_pkg_ '2.17 2.16.1 2.16 2.15 2.14 2.13.2.1 2.13.1 2.13' && nls_pkg_= && autoconf_pkg_ && set -- --enable-shared ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; };; bison) setup_pkg_ '2.3 2.2 2.1 2.0 1.875b 1.875 1.50 1.35' optlibs: flex && nls_pkg_= && autoconf_pkg_ && gcclib_check_pkg_;; bochs) setup_pkg_ '2.1.1 2.1' libs: xfree86 optlibs: 'readline ncurses zlib' && x_pkg_= && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_ && no_check_pkg_;; ## there are no tests bochs-tools) setup_pkg_ '1.6.4' srcdir: bochstools-"$version_" && pkg_install_() { sed_ src/Makefile "/^CFLAGS *:=/s%\$% $cflags_%" && make PREFIX="$prefix_" INCLUDES="$cppflags_" LIBPATH="$ldflags_" \ ${1+"$@"} bins install };; bzip2) setup_pkg_ 1.0.2 && pkg_after_setup_() { if [ "$1" = shared ]; then x_=1 && shift; else :; fi && #### autodetect ignore_args_ ${1+"$@"} && if [ "$x_" = 1 ]; then selflib_; else :; fi && cflags_="-D_FILE_OFFSET_BITS=64 $cppflags_ $cflags_ $ldflags_" && cflags_="-O2 -fomit-frame-pointer -fno-strength-reduce $cflags_" && cflags_="-Wall -Winline $cflags_" } && pkg_install_() { if [ "$x_" = 1 ]; then make CFLAGS="-fpic -fPIC $cflags_" -f Makefile-libbz2_so && make CFLAGS="$cflags_" clean else : fi && make CFLAGS="$cflags_" && make CFLAGS="$cflags_" PREFIX="$prefix_" install && if [ "$x_" = 1 ]; then install_ "$prefix_"/bin bzip2-shared && install_ "$prefix_"/lib libbz2.so.1.0.* && lib_links_ libbz2.so else : fi };; cabextract) setup_pkg_ '1.1 1.0 0.6' && autoconf_pkg_;; cdb) setup_pkg_ 0.75 ignore_args. && djb_pkg_ && pkg_check_() { ./rts > rts.out && diff rts.exp rts.out };; cdparanoia) setup_pkg_ 3-alpha9.8 srcdir: "${package_}-III-alpha9.8" selflib. && autoconf_pkg_ && pkg_make_() { make all lib slib; } && pkg_after_install_() { chmod +x "$prefix_"/lib/*.so; } && no_check_pkg_;; ## there are no tests cdrtools) prj_unset PROMPT_COMMAND && setup_pkg_ '2.01 2.00.3 2.0 1.10' ignore_args. && pkg_install_() { autoconf_env_ && x_=`prj_id -g` && smake all install INS_BASE="$prefix_" DEFINSUSR=0 DEFINSGRP="$x_" \ CPPOPTX="$cppflags_" COPTX="$cflags_" LDOPTX="$ldflags_" };; check) setup_pkg_ '0.9.3 0.9.2 0.9.1 0.9.0 0.8.4' && autoconf_pkg_ && set -- --enable-plain-docdir ${1+"$@"};; checkpassword) setup_pkg_ 0.90 ignore_args. && djb_pkg_ && pkg_before_configure_() { mkdir "$prefix_"/bin; };; clamav) case $version_ in 0.7*) x_=;; 0.80) x_=curl;; *) x_=curl && set -- --with-zlib="$SPF_CONF"/zlib ${1+"$@"};; esac && setup_pkg_ '0.88.4 0.88.3 0.88.2 0.88.1 0.88 0.87.1 0.87 0.86.2 0.86.1 0.86 0.85.1 0.85 0.84 0.83 0.82 0.81 0.80 0.75.1 0.75 0.74 0.73 0.72 0.71 0.70' \ libs: "$x_ zlib" optlibs: 'bzip2 gmp' data. && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_after_install_() { data_dir_ . etc && case $version_.0 in 0.7*|0.8[01234567]*|0.88.[012]*) :;; *) ln -s share/man "$prefix_"/;; esac };; clockspeed) setup_pkg_ 0.62 data. ignore_args. && djb_pkg_ && if [ "$version_" = 0.62 ]; then pkg_before_make_() { sed_ clockview.c "2a\\${nl_}#include \\${nl_}" } else : fi && pkg_after_install_() { mkfifo -m 0600 "$prefix_"/adjust && data_other_ . adjust && rm -f "$prefix_"/adjust.orig && data_dir_ . etc && { cmp leapsecs.dat /etc/leapsecs.dat || :; } && rm -rf "$prefix_"/man/cat* && cur_link_ /usr/local };; compface) setup_pkg_ '1.5.1 1.4' && pkg_after_setup_() { mkdir "$prefix_"/bin "$prefix_"/include "$prefix_"/lib "$prefix_"/man \ "$prefix_"/man/man1 "$prefix_"/man/man3 } && autoconf_pkg_ && case $version_ in 1.4) pkg_before_make_() { fix_errno_ cmain.c uncmain.c; };; 1.5.1) pkg_before_configure_() { for x_ in *; do sed_ "$x_" 's/ $//' || return "$?"; done };; esac && no_check_pkg_;; ## there are no tests coreutils) setup_pkg_ '5.97 5.96 5.95 5.94 5.93 5.92 5.2.1 5.2.0' && nls_pkg_= && autoconf_pkg_ && prj_x2 prj_set RUN_EXPENSIVE_TESTS yes && prj_x2 prj_set_default DEFAULT_POSIX2_VERSION 199209 && case $version_ in 5.2.?) :;; *) pkg_after_install_() { ln -s share/info share/man "$prefix_"/; };; esac;; courier-imap) setup_pkg_ \ '3.0.8 3.0.7 3.0.6 3.0.5 3.0.4 3.0.3 3.0.2 3.0.1 3.0.0 2.2.1 2.2.0 2.1.2 2.1.1 2.1.0 2.0.0 1.7.3 1.7.1' \ libs: 'gdbm openssl' && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_ && set -- --with-db=gdbm --enable-unicode=iso-8859-1,utf-8 ${1+"$@"} && pkg_install_() { make install-strip install-configure; };; cpio) setup_pkg_ '2.6 2.5' && if test "$version_" = 2.5 then : else nls_pkg_= fi && autoconf_pkg_;; cups) setup_pkg_ '1.1.23 1.1.22 1.1.21 1.1.20' \ optlibs: 'jpeg libpng openssl tiff zlib' && autoconf_pkg_ && set -- --with-rcdir="$prefix_"/etc/init.d ${1+"$@"} && prj_x2 prj_set SPF_GCC_GCCLIB '' && pkg_before_configure_() { prj_x2 prj_set DSOFLAGS "$ldflags_" && if [ "$version_" = 1.1.20 ] then sed_ systemv/Makefile '/\$(INSTALL_BIN) -m 4755/s%^%#%' else : fi } && pkg_after_install_() { for x_ in . es fr; do rm -rf "$prefix_"/man/"$x_"/cat* || return "$?" done } && pkg_check_() { echo 1 > spf-test-input && make check < spf-test-input };; curl) setup_pkg_ \ '7.15.1 7.14.0 7.13.2 7.13.1 7.13.0 7.12.3 7.12.2 7.12.1 7.12.0 7.11.2 7.11.1 7.11.0 7.10.8 7.10.3 7.9.2' \ libs: 'openssl zlib' && utc_ && autoconf_pkg_ && set -- --with-zlib="$SPF_CONF"/zlib --disable-debug --disable-ipv6 \ --with-ssl="$SPF_CONF"/openssl ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; };; cvm) setup_pkg_ '0.76 0.75 0.71 0.60 0.50 0.33 0.32 0.31 0.30 0.20 0.18 0.17 0.16 0.15' \ ignore_args. libs: bglibs && pkg_install_() { case $version_ in 0.17) sed_ insthier.c 's/\(0644, "sasl.\)h/\1a/';; 0.20) ln -s . cvm;; *) :;; esac && case $version_ in 0.[123]*) sed_ conf-home "1c\\${nl_}$prefix_\\${nl_}";; *) mkdir "$prefix_"/bin "$prefix_"/include "$prefix_"/lib && sed_ conf-bin "1c\\${nl_}$prefix_/bin\\${nl_}" && sed_ conf-include "1c\\${nl_}$prefix_/include\\${nl_}" && sed_ conf-lib "1c\\${nl_}$prefix_/lib\\${nl_}";; esac && sed_ conf-bgincs "1c\\${nl_}$SPF_CONF/bglibs/include" && sed_ conf-bglibs "1c\\${nl_}$SPF_CONF/bglibs/lib" && sed_ conf-cc "1c\\${nl_}gcc -O2 $cppflags_ $cflags_\\${nl_}" && sed_ conf-ld "1c\\${nl_}gcc -s $cppflags_ $cflags_ $ldflags_\\${nl_}" && make && case $version_ in 0.[123456]*|0.71) make installer instcheck && ./installer && ./instcheck;; *) make install;; esac };; cvs) setup_pkg_ \ '1.11.20 1.11.19 1.11.18 1.11.17 1.11.16 1.11.15 1.11.14 1.11.13 1.11.12 1.11.11 1.11.10 1.11.9 1.11.8 1.11.7 1.11.6 1.11.5 1.11.4' && autoconf_pkg_ && prj_unset TMPDIR && TESTDIR=`prj_unset PWD && exec sh -c pwd` && prj_x2 prj_set TESTDIR \ "$TESTDIR/$package_-$version_/sp-foreign-cvs-sanity" && utc_ && set -- --without-krb4 --without-kerberos ${1+"$@"} && pkg_check_() { make localcheck; };; cyrus-sasl) setup_pkg_ '2.1.22 2.1.21 2.1.19 2.1.18 2.1.17 2.1.15 2.1.14 2.1.13 2.1.12' \ libs: 'db openssl' && autoconf_pkg_ && set -- --disable-gssapi ${1+"$@"} && pkg_before_configure_() { fix_ltconfig_ config && fix_ltconfig_ saslauthd/config && noop_commands_ ldconfig && x_=`gcc -print-file-name=libpthread.so` && if test libpthread.so != "$x_" then prj_x2 prj_append LIBS -lpthread ' ' else : fi };; db) setup_pkg_ '4.4.20 4.4.16 4.3.29 4.3.28 4.3.27 4.3.21 4.2.52 4.1.25 4.0.14 3.3.11' \ srcdir: "$packver_"/build_unix && autoconf_path_=../dist && prj_unset old_ && case $version_ in 3.3.*|4.0.*|4.1.*) old_=y;; *) old_=n;; esac && if test "$old_" = y; then :; else prj_x2 prj_set SPF_GCC_GCCLIB ''; fi && autoconf_pkg_ && set -- --enable-compat185 --enable-cxx ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_after_install_() { if test "$old_" = y; then chmod +x "$prefix_"/lib/*.so; else :; fi && x_=$prefix_/include/db && { test -d "$x_"3/. || ln -s . "$x_"3; } && case $version_ in 4.*) test -d "$x_"4/. || ln -s . "$x_"4;; *) :;; esac } && no_check_pkg_;; ## there are no tests dd-rescue) setup_pkg_ '1.11 1.10' srcdir: "dd_rescue" && pkg_install_() { make DESTDIR="$prefix_" EXTRA_CFLAGS="$cppflags -O2 $cflags_ $ldflags_" \ INSTASROOT= ${1+"$@"} default install };; device-mapper) setup_pkg_ '1.01.01 1.01.00 1.00.19' \ srcdir: "$package_.$version_" selflib. && nls_pkg_= && autoconf_pkg_ && x_=`id -u` && set -- --with-user="$x_" ${1+"$@"} && x_=`id -g` && set -- --with-group="$x_" --with-optimisation= ${1+"$@"} && no_check_pkg_;; ## there are no tests dhcp) setup_pkg_ '3.0.4 3.0.3 3.0.2 3.0.1 3.0pl2' && pkg_install_() { case $version_ in 3.0.[12]) sed_ includes/dhcpd.h \ 's/binding_state_t __attribute__/int __attribute__/';; *) :;; esac && { prj_echo "COPTS +=$cppflags_ -O2 $cflags_" && prj_echo "LFLAGS +=$ldflags_" && prj_echo "USERBINDIR =$prefix_/bin" && prj_echo "BINDIR =$prefix_/sbin" && prj_echo "CLIENTBINDIR=$prefix_/sbin" && prj_echo "ADMMANDIR =$prefix_/man/man8" && prj_echo "FFMANDIR =$prefix_/man/man5" && prj_echo "LIBMANDIR =$prefix_/man/man3" && prj_echo "USRMANDIR =$prefix_/man/man1" && prj_echo "VARDB =$prefix_/var/state" && prj_echo "LIBDIR =$prefix_/lib" && prj_echo "INCDIR =$prefix_/include" && prj_echo "CLIENT_PATH ='\"PATH=$path_\"'" && for x_ in ${1+"$@"}; do prj_echo "$x_" || return "$?"; done } > site.conf && ./configure && make all install };; dhcpcd) setup_pkg_ '1.3.22-pl4 1.3.22-pl1' && autoconf_pkg_ && set -- --mandir="$prefix_"/man ${1+"$@"} && pkg_before_configure_() { define_make_ x_ bindir @bindir@ && define_make_ x_ sbindir @sbindir@ && define_make_ x_ mandir @mandir@ && sed_ Makefile.in "$x_" };; dietlibc) setup_pkg_ '0.28 0.27 0.25 0.24 0.23 0.22 0.21 0.17' && pkg_install_() { uncomment_c_ x_ '#define WANT_FASTER_STRING_ROUTINES' && uncomment_c_ x_ '#define WANT_FULL_POSIX_COMPAT' && uncomment_c_ x_ '#define WANT_MALLOC_ZERO' && sed_ dietfeatures.h "$x_" && unset SPF_CONF && make prefix="$prefix_" ${1+"$@"} all install && for x_ in "$prefix_"/lib-*; do { x_=$x_/libcrypt.a && { test -f "$x_" || ar cr "$x_"; } } || return "$?" done && cd "$prefix_" && set lib-* && ln -s "$1" lib ## there are no tests };; diffstat) setup_pkg_ '1.38 1.37 1.34' && autoconf_pkg_ && if test "$version_" = 1.34 then no_check_pkg_ ## there are no tests else : fi;; diffutils) setup_pkg_ '2.8.1 2.8' && nls_pkg_= && autoconf_pkg_ && prj_x2 prj_set_default DEFAULT_POSIX2_VERSION 199209;; distcc) setup_pkg_ '2.18.3 2.18.2 2.18 2.17 2.14 2.13 2.12.1 2.12 2.11.2' \ libs: popt && autoconf_pkg_ && pkg_check_() { make maintainer-check; };; djbdns) setup_pkg_ 1.05 ignore_args. && pkg_after_setup_() { cflags_="-Wshadow -Wcast-qual -Wcast-align -Wwrite-strings $cflags_" && cflags_="-Wcomment -Wchar-subscripts -Wuninitialized $cflags_" && cflags_="-Wimplicit -Wunused $cflags_" } && djb_pkg_ && pkg_after_install_() { if test -d "$prefix_"/etc/.; then # stricthome patch make_data_package_ && data_dir_ . etc else : fi };; dosfstools) setup_pkg_ '2.10 2.8' && pkg_install_() { cflags_="$cppflags_ $cflags_" && ldflags_="$cflags_ $ldflags_" && make PREFIX="$prefix_" MANDIR='$(PREFIX)/man/man8' LDFLAGS="$ldflags_" \ DEBUGFLAGS="$cflags_" ${1+"$@"} all install ## there are no tests };; e2fsprogs) setup_pkg_ '1.38 1.37 1.36' selflib. && autoconf_pkg_ && nls_pkg_= && pkg_configure_() { if test 1.37 = "$version_"; then #### report this sed_ lib/e2p/Makefile.in \ 's%-DTEST_PROGRAM -o%$(ALL_CFLAGS) $(ALL_LDFLAGS) &%' else : fi && mkdir build && cd build && autoconf_path_=.. && noop_commands_ ldconfig && autoconf_configure_ --enable-fsck --enable-elf-shlibs \ --with-ldopts="$ldflags_" ${1+"$@"} } && pkg_install_() { make install install-libs; };; ed) setup_pkg_ 0.2 && autoconf_pkg_;; egd) setup_pkg_ 0.9 dirs: perl && perl_pkg_;; elvis) setup_pkg_ '2.1_4' libs: ncurses && #### optlibs: xfree86 autoconf_pkg_ && pkg_configure_() { mkdir "$prefix_"/bin "$prefix_"/man "$prefix_"/man/man1 && rungcc_ && sed_ configure ' s%^\(XINCPATH="\)\(.*\)%\1'"$conflibc_/include $SPF_CONF/xfree86/include "'\2% s%/usr\(/include/termcap\.h\)%'"$SPF_CONF"'/ncurses\1%' && if test -d "$conflibc_"/.; then sed_ configure ' s%/usr\(/include/sys/\)%'"$conflibc_"'\1% s%/usr\(/include/netinet/\)%'"$conflibc_"'\1% s%/usr\(/include/arpa/\)%'"$conflibc_"'\1% s%/usr\(/include/termio\)%'"$conflibc_"'\1% s%/usr\(/include/unistd\)%'"$conflibc_"'\1% s%/usr\(/include/string\)%'"$conflibc_"'\1%' else : fi && x_="$SPF_CONF"/xfree86 && if test -d "$x_"/include/. then set -- --x-includes="$x_"/include --x-libraries="$x_"/lib else : fi && ./configure --bindir="$prefix_"/bin --datadir="$prefix_"/lib/elvis \ --verbose ${1+"$@"} } && pkg_make_() { make CFLAGS='$(FLAGI)os$(OS) '"$cppflags_ $cflags_ $ldflags_" } && no_check_pkg_;; ## there are no tests emacs) setup_pkg_ '21.4 21.3 21.2' \ libs: 'ncurses xfree86 libpng libungif tiff jpeg zlib' data. && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { case $version_ in 21.[234]) x_='s%\(LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE\) $(LDFLAGS)%\1%' x_=$x_$nl_'s%\(YMF_PASS_LDFLAGS (${STARTFLAGS} ${ALL_LDFLAGS})\)%' x_=$x_'\1 $(LDFLAGS)%' sed_ src/Makefile.in "$x_";; *) :;; esac && rungcc_ && if test -d "$conflibc_"/. then sed_ src/s/gnu-linux.h "s%/usr/lib%$conflibc_/lib%g" else : fi } && pkg_after_install_() { data_dir_ share/emacs site-lisp; };; ettercap) setup_pkg_ 0.6.b optlibs: 'ncurses openssl gtk+ glib pango atk xfree86' && autoconf_pkg_ && pkg_configure_() { if prj_not test -d "$SPF_CONF"/gtk+/include/. then set -- --disable-gtk ${1+"$@"} else : fi && x_=$SPF_CONF/openssl && if test -d "$x_"/include/. then set -- --with-openssl="$x_" ${1+"$@"} else : fi && autoconf_configure_ ${1+"$@"} } && pkg_make_() { prj_u2 prj_set y_ '' && define_make_ y_ ALLOPT '$(CFLAG) $(COPTS) '"$cppflags_ $cflags_" && for x_ in Makefile plugins/Makefile plugins/*/Makefile; do sed_ "$x_" "$y_" || return "$?" done && make all plug-ins } && pkg_install_() { make install plug-ins_install; };; expat) case $version_ in 1.95.8) x_='optlibs: check';; *) x_='';; esac && setup_pkg_ '2.0.0 1.95.8' $x_ && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig && case $version_ in 2.0.0) cppflags_="-I$prefix_/include $cppflags_";; *) :;; esac } && case $version_ in 2.0.0) pkg_after_install_() { prj_x2 prj_set SPF_GCC_GCCLIB ''; };; *) :;; esac;; expect) x_=`prj_sedarg1 's%\.[0-9]*$%%' "$version_"` && setup_pkg_ '5.39.0' \ srcdir: "$package_-$x_" libs: 'tk tcl xfree86' && x_pkg_= && autoconf_pkg_ && set -- --with-tcl="$SPF_CONF"/tcl/lib --with-tk="$SPF_CONF"/tk/lib \ ${1+"$@"} && pkg_before_configure_() { cflags_="$cppflags_ $cflags_"; } && no_check_pkg_;; #### tests require "runtest" (DejaGNU?) ezmlm-idx) setup_pkg_ '0.443 0.442 0.441 0.440 0.435 0.434 0.421 0.40' \ srcdir: ezmlm-0.53 need: '../"$packver_"/.' dirs: qmail && pkg_install_() { mv -f ../"$packver_"/* . && patch < idx.patch && fix_errno_ error.h && { prj_which x_ crontab 2> /dev/null || x_=/command/crontab; } && x_=`dirname "$x_"` && sed_ conf-bin "1c\\${nl_}/command\\${nl_}" && sed_ conf-cc "1c\\${nl_}gcc -O2 $cppflags_ $cflags_\\${nl_}" && sed_ conf-ld \ "1c\\${nl_}gcc -s $cppflags_ $cflags_ $ldflags_\\${nl_}" && sed_ conf-cron "1c\\${nl_}$x_\\${nl_}" && sed_ conf-qmail "1c\\${nl_}$SPF_CONF/qmail\\${nl_}" && sed_ conf-man "1c\\${nl_}$prefix_/man\\${nl_}" && make ${1+"$@"} clean it man install && ./install "$prefix_"/bin < BIN && ./install "$prefix_"/man < MAN && rm -rf "$prefix_"/man/cat* && { id -u eztest > /dev/null 2>&1 || return 0; } && # 0.443 may not care prj_unset eztest_ && eztest_=`id -u eztest` && x_=`id -u` && case $x_ in "$eztest_") ./ezmlm-test;; 0) { prj_which x_ setuidgid 2> /dev/null || return 0; } && setuidgid eztest ./ezmlm-test;; *) :;; esac };; fam) setup_pkg_ '2.6.10' data. && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_after_install_() { data_dir_ . etc; };; fetchmail) ## unmaintained setup_pkg_ 6.2.5 optlibs: openssl nls_pkg_= autoconf_pkg_ pkg_configure_() { if test -d "$SPF_CONF"/openssl/include/.; then set -- --with-ssl ${1+"$@"} fi cflags_="$cppflags_ $cflags_" autoconf_configure_ ${1+"$@"} } no_check_pkg_;; ## there are no tests fftw) setup_pkg_ '3.1.2 3.1.1 3.1 3.0.1 2.1.5' && if [ "$version_" = 2.1.5 ]; then x_=`uname -m` && case $x_ in i[567]86) set -- --enable-i386-hacks ${1+"$@"};; *) :;; esac else : fi && set -- --enable-shared ${1+"$@"} && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && case $version_.0 in 2.*|3.0.*|3.1.[01]*) :;; *) pkg_after_install_() { ln -s share/info share/man "$prefix_"/; };; esac;; file) setup_pkg_ '4.16 4.13 4.12 4.10 4.09 4.08 4.07 4.05' optlibs: zlib && autoconf_pkg_ && set -- --enable-fsect-man5 ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig && fix_ltconfig_ };; findutils) setup_pkg_ '4.2.28 4.2.27 4.2.26 4.2.25 4.2.23 4.2.20 4.2.18 4.2.15 4.1.20 4.1.7 4.1' && nls_pkg_= && autoconf_pkg_ && if [ "$version_" = 4.1 ]; then pkg_before_configure_() { unset nls_pkg_ && sed_ lib/savedir.c 's%^char \*stpcpy ();$%%' && sed_ lib/nextelem.c 's%^char \*strdup ();$%%' && sed_ xargs/xargs.c 's%^char \*strdup ();$%%' && sed_ find/fstype.c 's%^char \*strdup ();$%%' && sed_ find/pred.c "17i\\${nl_}#define _GNU_SOURCE\\${nl_}" && sed_ lib/savedir.c "19i\\${nl_}#define _GNU_SOURCE\\${nl_}" && sed_ find/defs.h \ 's%^\(char \*\)\(basename P_((char \*fname));\)$%\1find_\2%' && sed_ find/util.c 's%^basename (fname)$%find_&%' && sed_ find/pred.c 's%basename (pathname);$%find_&%' && x_="s%^$tab_-@mv site\\.exp site\\.bak\$%$tab_%" && x_=$x_$nl_"s%^$tab_-@sed '1,/\^## All variables above are\.\*##/ d'" && x_=$x_" site\.bak >> site\.exp\$%$tab_%" && sed_ testsuite/Makefile.in "$x_" && ln -s ../xargs/version.o find/version.o } && no_check_pkg_ else : fi && case $version_.0 in 4.1.*|4.2.1*|4.2.2[01234567]*) :;; *) pkg_after_install_() { ln -s share/info share/man "$prefix_"/; };; esac;; flac) setup_pkg_ 1.1.0 optlibs: libogg autoconf_pkg_ pkg_before_configure_() { noop_commands_ ldconfig; } gcclib_check_pkg_;; flash-player) setup_pkg_ 7.0.25.0 srcdir: install_flash_player_7_linux && pkg_install_() { ignore_args_ ${1+"$@"} && install_ "$prefix_"/plugins flashplayer.xpt libflashplayer.so && install_ "$prefix_"/doc Readme.htm Readme.txt };; flex) if [ "$version_" = 2.5.4a ]; then x_=flex-2.5.4 else x_=flex-$version_ && nls_pkg_= fi && setup_pkg_ '2.5.31 2.5.4a' srcdir: "$x_" && autoconf_pkg_ && gcclib_check_pkg_;; fltk) # 1.1.7: optlibs alsa setup_pkg_ '1.1.7 1.1.6 1.1.5 1.1.4' \ selflib. libs: 'xfree86' optlibs: 'jpeg libpng zlib' && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { cflags_="$cppflags_ $cflags_" && cxxflags_="$cppflags_ $cxxflags_" } && no_check_pkg_;; ## there are no tests fluxbox) setup_pkg_ '0.9.15.1 0.9.14 0.9.13 0.9.11 0.9.10 0.1.14' libs: xfree86 && nls_pkg_= && x_pkg_= && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_ && pkg_before_configure_() { fix_ltconfig_ && if [ "$version_" = 0.1.14 ]; then sed_ util/fbrun/FbRun.cc \ '/^#include $/'"a\\$nl_#include \\$nl_" else : fi } && if [ "$version_" = 0.1.14 ]; then pkg_before_make_() { make config.h && sed_ config.h \ 's%^/\* #undef HAVE_STRFTIME \*/$%#define HAVE_STRFTIME 1%' } else : fi;; fluxter) setup_pkg_ 0.1.0 libs: xfree86 && x_pkg_= && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_;; fnord) setup_pkg_ '1.9 1.8 1.7 1.5' && pkg_install_() { set CFLAGS="$cppflags_ -Os -fomit-frame-pointer $cflags_ $ldflags_" \ DIET= ${1+"$@"} all && if [ "$uname_s_" = FreeBSD ] then gmake "$@" else make "$@" fi && install_ "$prefix_"/bin fnord fnord-cgi fnord-conf ## there are no tests };; fontconfig) setup_pkg_ '2.3.2 2.2.3 2.2.2 2.2.1' \ libs: 'expat freetype' optlibs: zlib data. && autoconf_pkg_ && set -- --with-freetype-config="$SPF_CONF"/freetype/bin/freetype-config \ --with-default-fonts="$prefix_/fonts" ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_after_install_() { data_file_ etc/fonts local.conf && data_dir_ . fonts };; fontforge) setup_pkg_ '20040703' \ optlibs: 'jpeg freetype libungif libpng libxml2 tiff xfree86 zlib' && autoconf_pkg_ && set -- --with-multilayer ${1+"$@"} && pkg_configure_() { noop_commands_ ldconfig && if test -d "$SPF_CONF"/xfree86/include/. then x_pkg_= else set -- --without-x ${1+"$@"} fi && sed_ configure 's%/usr\(/include/freetype2\)%'"$SPF_CONF/freetype\\1%g" sed_ configure 's%/usr\(/include/libxml2\)%'"$SPF_CONF/libxml2\\1%g" cflags_="$cppflags_ $cflags_ $ldflags_" && #### -c -o sed_ fontforge/Makefile.dynamic.in '/\$(LIBTOOL).*OBJ/s%$% $(CFLAGS)%' && autoconf_configure_ ${1+"$@"} } && no_check_pkg_;; ## there are no tests freetype) setup_pkg_ '2.1.10 2.1.9 2.1.7 2.1.5' optlibs: zlib && autoconf_pkg_ && pkg_after_setup_() { mkdir "$prefix_"/include && ln -s . "$prefix_"/include/freetype2 } && pkg_before_configure_() { noop_commands_ ldconfig; };; gaim) setup_pkg_ '1.0.0 0.82.1 0.81 0.79 0.78 0.76 0.74' \ libs: 'gtk+ atk pango glib xfree86' \ optlibs: 'audiofile gnutls libao libgcrypt' && nls_pkg_= && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; gawk) setup_pkg_ '3.1.5 3.1.4 3.1.3 3.1.2 3.1.1' && nls_pkg_= && autoconf_pkg_;; gcc) nls_pkg_= && prj_u2 prj_set as_ "$SPF_CONF"/binutils/bin/as && prj_u2 prj_set ld_ "$SPF_CONF"/binutils/bin/ld && case $version_.0 in 2.*) prj_u2 prj_set v2_ y;; *) prj_u2 prj_set v2_ n;; esac && if test "$v2_" = y then : else set -- --enable-libgcj ${1+"$@"} fi && pkg_setup_() { needfile "$packver_"/. && checkversion_ \ 4.1.1 4.0.3 4.0.2 4.0.1 4.0.0 3.4.6 3.4.5 3.4.4 3.4.3 3.4.2 \ 3.4.1 3.4.0 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 3.2.3 3.1.1 2.95.3 && mkdir "$packver_"-build && cd "$packver_"-build && confdir_opt_= && confdir_ binutils && if test -d "$SPF_CONF"/binutils/bin/.; then :; else as_=$SPF_CONF/as && prj_which x_ as && conffile_ "$as_" "$x_" && ld_=$SPF_CONF/ld && prj_which x_ ld && conffile_ "$ld_" "$x_" fi && x_=/bin/sh && if [ "$uname_s_" = SunOS ]; then case $uname_r_ in 5.*) x_=/bin/ksh;; *) :;; esac else : fi && prj_x2 prj_set CONFIG_SHELL "${CONFIG_SHELL-$x_}" && rungcc_ && if test -d "$conflibc_"/.; then if test "$v2_" = y then prj_x2 prj_append CPATH "$conflibc_"/include else : fi && for x_ in C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH; do prj_x2 prj_append "$x_" "$conflibc_"/include || return "$?" done && prj_u2 prj_set lib_ "$conflibc_"/lib && prj_x2 prj_append LIBRARY_PATH "$lib_" && prj_u2 prj_set dyn_ "$lib_"/ld.so.1 && { prj_exists "$dyn_" || dyn_=$lib_/ld-linux.so.2; } && ldflags_="-Wl,--dynamic-linker,$dyn_ $ldflags_" && ldflags_="$ldflags_ -Wl,-R,$lib_" else : fi && cflags_="-g $cflags_" } && autoconf_no_O2_= && autoconf_path_=../"$packver_" && autoconf_pkg_ && pkg_configure_() { case $version_.0 in 2.*|3.[0123].*) x_="s%^ *\\(LDFLAGS=\"\\)%$tab_ \\1%";; *) x_=;; esac && define_make_ x_ LDFLAGS_FOR_TARGET "$ldflags_" && sed_ ../"$packver_"/Makefile.in "$x_" && if test "$v2_" = y; then sed_ ../"$packver_"/libstdc++/std/complext.h \ 's%^\(extern "C" double hypot\)%//\1%' && sed_ ../"$packver_"/config.if \ 's%\(\${CC-cc}\)%\1 $CPPFLAGS $CFLAGS $LDFLAGS%' else if test -d "$conflibc_"/.; then x_= && define_make_ x_ NATIVE_SYSTEM_HEADER_DIR "$conflibc_"/include && sed_ ../"$packver_"/gcc/Makefile.in "$x_" else : fi && case $version_ in 3.*) fix_ltconfig_ ../"$packver_"/boehm-gc;; *) :;; esac fi && fix_ltconfig_ ../"$packver_" && noop_commands_ ldconfig && autoconf_configure_ --with-as="$as_" --with-ld="$ld_" --enable-threads \ ${1+"$@"} } && pkg_make_() { case $version_ in 3.4.[3456]) prj_x2 prj_set_default SPF_PKG_GCC_MAKE bootstrap;; *) :;; esac && make STAGE1_CFLAGS="$cflags_" BOOT_CFLAGS="-O2 $cflags_" \ LDFLAGS="$ldflags_" BOOT_LDFLAGS="$ldflags_" HOST_LDFLAGS="$ldflags_" \ ${SPF_PKG_GCC_MAKE-bootstrap-lean} && rm -f "$SPF_CONF"/gcc } && no_check_pkg_;; #### tests require DejaGNU gd) setup_pkg_ '2.0.28 2.0.15' libs: 'jpeg libpng zlib' optlibs: xfree86 && autoconf_pkg_ && pkg_before_configure_() { if test -d "$SPF_CONF"/xfree86/include/.; then x_pkg_=; else :; fi && noop_commands_ ldconfig };; gdb) setup_pkg_ '6.5 6.4 6.3 6.2.1 6.2 6.1.1 6.1 6.0 5.3' libs: ncurses && nls_pkg_= && autoconf_pkg_ && pkg_before_configure_() { cflags_="$cppflags_ $cflags_ $ldflags_" && ### -c -o fix_ltconfig_ && noop_commands_ ldconfig } && no_check_pkg_;; #### tests require "runtest" (DejaGNU?) gdbm) setup_pkg_ '1.8.3 1.8.0' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig && x_="s%^\($tab_\$(INSTALL_DATA)\) -o \$(BINOWN) -g \$(BINGRP)%\1%" && ### define_make_ x_ prefix @prefix@ && sed_ Makefile.in "$x_" } && pkg_install_() { make install install-compat; } && no_check_pkg_;; ## there are no tests getmail) setup_pkg_ '4.6.3 4.6.2 4.6.1 4.6.0 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.14 4.3.13 4.3.12 4.3.11 4.3.10 4.3.9 4.3.8 4.3.7 4.3.6 4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.6 4.2.5 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0' \ ignore_args. dirs: python && python_pkg_ && pkg_before_make_() { x_="/^import sys$/a\\${nl_}" && x_=$x_"sys.path.insert(0, '$python_site_dir_')\\$nl_" && sed_ getmail "$x_" && sed_ getmail_maildir "$x_" && sed_ getmail_mbox "$x_" && ln -s share/man "$prefix_"/ };; gettext) setup_pkg_ '0.14.4 0.14.1 0.13.1 0.13 0.12.1 0.12' optlibs: expat && nls_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_after_install_() { ln -s share/man "$prefix_"/; } && if prj_match '0.12.*' "$version_." then gcclib_check_pkg_ else prj_x2 prj_set SPF_GCC_GCCLIB '' fi;; ghostscript) setup_pkg_ '8.31 8.15 8.14 8.13 8.12 8.11' dirs: ghostscript-fonts \ libs: 'libpng zlib jpeg' optlibs: xfree86 && x_pkg_= && autoconf_pkg_ && #### test -r $LIBJPEGDIR/jmemsys.h pkg_configure_() { rungcc_ && if test -d "$conflibc_"/.; then x_= && define_make_ x_ INCLUDE "$conflibc_"/include && sed_ src/unix-aux.mak "$x_" else : fi && if test -d "$SPF_CONF"/xfree86/include/. then : else set -- --without-x ${1+"$@"} fi && autoconf_configure_ ${1+"$@"} } && pkg_make_() { make XCFLAGS="$cppflags_ $cflags_" XLDFLAGS="$cflags_ $ldflags_" } && pkg_after_install_() { ln -s "$SPF_CONF"/ghostscript-fonts/fonts "$prefix_/share/$package_/" && spf_current_ "$prefix_/share/$package_" } && no_check_pkg_;; ghostscript-fonts) setup_pkg_ '8.11-6.0 6.0-6.0' srcdir: fonts ignore_args. && pkg_install_() { tar -cf "$prefix_"/fonts.tar * && cd "$prefix_" && ( rm -f fonts.tar && mkdir fonts && cd fonts && exec tar -xf - ) < fonts.tar };; ghostview) ## unmaintained setup_pkg_ 1.5 pkg_install_() { ln -s . "$prefix_"/usr x_='s%^extern char \*sys_errlist\[\];$%%' x_=$x_$nl_'/^extern int errno;$/' x_=$x_"c\\$nl_#ifndef errno\\${nl_}extern int errno;\\$nl_#endif\\$nl_" sed_ SelFile.c "$x_" sed_ misc.c "$x_" cppflags="$cppflags_ -I/usr/X11R6/include" autoconf_env_ make all install install.man CC=gcc CPP="$CPP \$(STD_CPP_DEFINES)" \ PREPROCESSCMD='gcc -E $(STD_CPP_DEFINES)' CCOPTIONS="-O2 $cflags_" \ LOCAL_LDFLAGS="$ldflags_ -L/usr/X11R6/lib" INCLUDES="$cppflags_" \ DEPEXTENSIONLIB= DEPXLIB= DEPXAUTHLIB= DEPXDMCPLIB= DEPXMULIB= \ DEPOLDXLIB= DEPXTOOLLIB= DEPXAWLIB= DEPXILIB= DEPPHIGSLIB= \ DEPXBSDLIB= DESTDIR="$prefix_" MKDIRHIER=mkdirhier ${1+"$@"} #### notest };; glib) setup_pkg_ '2.6.5 2.6.3 2.4.8 2.4.6 2.4.5 2.4.0 2.2.3 2.2.2 1.2.10' && autoconf_pkg_ && if [ "$version_" = 1.2.10 ]; then pkg_after_setup_() { mkdir "$prefix_"/include && ln -s . "$prefix_"/include/glib-1.2 } && pkg_before_configure_() { fix_ltconfig_; } else nls_pkg_= && pkg_after_setup_() { mkdir "$prefix_"/include "$prefix_"/lib && ln -s . "$prefix_"/include/glib-2.0 && ln -s glib-2.0 "$prefix_"/lib/glib } && pkg_before_configure_() { noop_commands_ ldconfig; } && gcclib_check_pkg_ fi;; glibc) pkg_setup_() { needfile "$packver_"/. && checkversion_ 2.3.6 2.3.5 2.3.4 2.3.3 2.3.2 && prj_set_default SPF_PKG_GLIBC_RAW_HEADERS n && if test "$SPF_PKG_GLIBC_RAW_HEADERS" = y; then prj_u2 prj_set linux_ "$SPF_CONF"/linux && { test -d "$linux_"/include/asm/. || linux_=$SPF_PREFIX/linux; } && needfile "$linux_"/include/asm/. && needfile "$linux_"/include/linux/. && { grep 'UTS_RELEASE.*"2.[0-4].' "$linux_"/include/linux/version.h > \ /dev/null || prj_fail 'for kernels 2.5.* and later, use linux-libc-headers'; } else confdir_ linux-libc-headers && prj_u2 prj_set linux_ "$SPF_CONF"/linux-libc-headers fi && confdir_ tzdata && make_data_package_ && mkdir "$packver_"-build && cd "$packver_"-build } && autoconf_pkg_ && prj_x2 prj_set LANGUAGE C && prj_x2 prj_set LC_ALL C && autoconf_path_=../"$packver_" && pkg_configure_() { hide_commands_ autoconf && if prj_match '2.3.[456]' "$version_"; then sed_ ../"$packver_"/nptl/sysdeps/pthread/pt-initfini.c '/defs\.h/a\ asm ("\\n#ifdef __i686");\ asm ("\\n#undef __i686");\ asm ("\\n#define __i686 __i686");\ asm ("\\n#endif");\ ' else : fi && if prj_match '2.3.[23456]' "$version_"; then sed_ ../"$packver_"/csu/Makefile 's%echo "\\"%echo -E "\\"%' && sed_ ../"$packver_"/sysdeps/generic/sysdep.h '1i\ #ifdef __i686\ #undef __i686\ #define __i686 __i686\ #endif\ ' else : fi && if test "$version_" = 2.3.2; then sed_ ../"$packver_"/stdio-common/sscanf.c ' /const char \*/d s%(s, format)$%(const char *s, const char *format, ...)%' else : fi && autoconf_configure_ --with-headers="$linux_"/include --without-gd \ --without-cvs --disable-profile --enable-add-ons ${1+"$@"} } && pkg_before_make_() { x_=$SPF_CONF && unset SPF_CONF && rm -f "$conflibc_" && if test -d ../"$packver_"/linuxthreads/. then make -C ../"$packver_"/linuxthreads/man else : fi } && pkg_after_install_() { prj_x2 prj_set SPF_CONF "$x_" && prj_x2 prj_set SPF_LIBC glibc && ln -s "$prefix_" "$conflibc_" && if test -d ../"$packver_"/linuxthreads/.; then mkdir "$prefix_"/man "$prefix_"/man/man3 && make -C ../"$packver_"/linuxthreads/man MANDIR="$prefix_"/man/man3 \ install else : fi && if prj_is_set SPF_NO_NLS then : else make localedata/install-locales fi && if test "$SPF_PKG_GLIBC_RAW_HEADERS" = y; then ( cd "$linux_" && exec tar -cf "$prefix_"/include.tar include/. ) && ( cd "$prefix_" && exec tar -xf "$prefix_"/include.tar ) && rm -f "$prefix_"/include.tar else for x_ in "$linux_"/include/*; do { x_=`basename "$x_"` && if test -d "$prefix_"/include/"$x_"/. then : else ln -s "$linux_"/include/"$x_" "$prefix_"/include/ fi } || return "$?" done fi && #### report: enable-static-nss breaks with 2.3.4 and later if test -f "$prefix_"/lib/libnss_files.a; then mkdir sp-foreign-libc && ( cd sp-foreign-libc && ar x "$prefix_"/lib/libc.a && ar x "$prefix_"/lib/libnss_files.a && ar x "$prefix_"/lib/libnss_dns.a && ar x "$prefix_"/lib/libresolv.a && ar cr "$prefix_"/lib/libc-spf-nss.a * && mv -f "$prefix_"/lib/libc.a "$prefix_"/lib/libc-spf-orig.a && exec ln -s libc-spf-nss.a "$prefix_"/lib/libc.a ) else : fi && mv -f "$prefix_"/share/zoneinfo "$prefix_"/share/zoneinfo.orig && ln -s "$SPF_CONF"/tzdata/zoneinfo "$prefix_"/share && data_dir_ . etc && { test -f "$prefix_"/etc/localtime || \ test -h "$prefix_"/etc/localtime || \ ln -s "$SPF_PREFIX"/tzdata/zoneinfo/Factory "$prefix_"/etc/localtime } && x_=$prefix_/libexec/pt_chown && chmod +x "$x_" && if test -u "$x_" then : else echo && warn_ "$x_ should be setuid root$nl_" fi } && pkg_check_() { x_=0 && { SPF_GCC_GCCLIB= make -k check || x_=$?; } && rm -f "$conflibc_" "$SPF_CONF"/gcc && return "$x_" };; gmp) setup_pkg_ '4.2 4.1.4 4.1.3 4.1.2' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; gnuplot) setup_pkg_ 4.0.0 \ libs: 'zlib' optlibs: 'freetype gd libpng ncurses readline xfree86' && x_pkg_= && autoconf_pkg_ && pkg_configure_() { if test -d "$SPF_CONF"/readline/include/. then set -- --with-readline="$SPF_CONF"/readline ${1+"$@"} else : fi && if test -d "$SPF_CONF"/gd/include/. then : else set -- --without-gd ${1+"$@"} fi && if test -d "$SPF_CONF"/libpng/include/. then : else set -- --without-png ${1+"$@"} fi && if test -d "$SPF_CONF"/xfree86/include/. then : else set -- --without-x ${1+"$@"} fi && autoconf_configure_ ${1+"$@"} };; gnus) setup_pkg_ '5.10.6 5.10.1' optdirs: 'w3 url' autoconf_pkg_ pkg_configure_() { if test -d "$SPF_CONF"/w3/share/.; then set -- --with-gnus="$SPF_CONF"/w3/"$site_lisp" ${1+"$@"} fi if test -d "$SPF_CONF"/url/share/.; then set -- --with-url="$SPF_CONF"/url/"$site_lisp" ${1+"$@"} elif test -d "$SPF_CONF"/w3/share/.; then set -- --with-url="$SPF_CONF"/w3/"$site_lisp" ${1+"$@"} fi autoconf_configure_ ${1+"$@"} } no_check_pkg_;; ## there are no tests gnutls) case $version_ in 1.0.*|1.2.[0123456]) x_=;; *) x_='readline ncurses';; esac && case $version_. in 1.[02].*) :;; *) nls_pkg_=;; esac && setup_pkg_ '1.4.1 1.4.0 1.2.10 1.2.9 1.2.8 1.2.7 1.2.6 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.0.23 1.0.21 1.0.20 1.0.19 1.0.16 1.0.14' \ libs: 'libcfg+ libgcrypt libgpg-error opencdk zlib' \ optlibs: "libtasn1 lzo $x_" && autoconf_pkg_ && set -- --with-libopencdk-prefix="$SPF_CONF"/opencdk \ --with-libgcrypt-prefix="$SPF_CONF"/libgcrypt ${1+"$@"} && pkg_configure_() { noop_commands_ ldconfig && x_=$SPF_CONF/libtasn1 && if test -d "$x_"/include/. then set -- --with-libtasn1-prefix="$SPF_CONF"/libtasn1 ${1+"$@"} else : fi && autoconf_configure_ ${1+"$@"} } && case $version_ in 1.4.0|1.2.*|1.0.*) :;; *) pkg_after_install_() { ln -s share/info share/man "$prefix_"/; };; esac;; gperf) setup_pkg_ 3.0.1 && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_;; gpm) setup_pkg_ '1.20.1' selflib. optlibs: ncurses data. && autoconf_pkg_ && if test 1.20.1 != "$version_"; then :; else pkg_before_make_() { sed_ Makefile.include.in 's%\(@MAKEINFO@\) --no-split%\1%' && sed_ doc/Makefile.in 's%\(\$(MAKEINFO)\)\( \$<\)%\1 --no-split\2%' } fi && pkg_after_install_() { lib_links_ libgpm.so && #### report this chmod +x "$prefix_"/lib/*.so && #### report this ( cd conf && install_ "$prefix_"/etc gpm-root.conf ) && data_dir_ . etc };; grep) setup_pkg_ 2.5.1 && nls_pkg_= && autoconf_pkg_ && set -- --disable-perl-regexp ${1+"$@"};; groff) setup_pkg_ '1.19.1 1.19 1.18.1 1.18' && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_;; grub) setup_pkg_ '0.97 0.96 0.95 0.94' optlibs: ncurses && autoconf_pkg_;; gtk+) prj_unset y_ && if [ "$version_" = 1.2.10 ]; then pkg_after_setup_() { mkdir "$prefix_"/include && ln -s . "$prefix_"/include/gtk-1.2 } && pkg_before_configure_() { fix_ltconfig_; } else x_='atk pango libpng tiff jpeg zlib' && y_='fontconfig freetype' && pkg_after_setup_() { mkdir "$prefix_"/include "$prefix_"/lib && ln -s . "$prefix_"/include/gtk-2.0 && ln -s gtk-2.0 "$prefix_"/lib/gtk } && pkg_before_configure_() { noop_commands_ ldconfig; } fi && setup_pkg_ '2.6.9 2.6.4 2.4.14 2.4.10 2.4.9 2.4.4 2.4.0 2.2.4 2.2.2 1.2.10' \ libs: "$x_ glib xfree86" optlibs: "$y_" && prj_x2 prj_set GLIB_CONFIG "$SPF_CONF"/glib/bin/glib-config && nls_pkg_= && x_pkg_= && autoconf_pkg_;; guile) if [ "$uname_s_" = SunOS ]; then x_=selflib.; else x_=; fi && prj_unset libs_ && case $version_ in 1.[46].*) :;; *) nls_pkg_= && libs_='gmp libtool';; esac && setup_pkg_ '1.8.0 1.6.8 1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.4.1' \ $x_ libs: "$libs_" optlibs: 'readline ncurses' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig && case $version_ in 1.4.1) sed_ libltdl/ltdl.c 's%!found%found%';; 1.6.5|1.6.6) x_=`pwd` && prj_x2 prj_append LD_LIBRARY_PATH "$x_"/libguile-ltdl/.libs;; *) :;; esac };; guile-oci8) ## unmaintained setup_pkg_ '0.9' selflib. libs: guile autoconf_pkg_;; guile-web) ## unmaintained setup_pkg_ '0.3' autoconf_pkg_;; gv) case $version_ in 3.6.0) x_='srcdir: gv';; *) x_=;; esac && setup_pkg_ '3.6.1 3.6.0' $x_ libs: xfree86 && x_pkg_= && autoconf_pkg_;; gzip) setup_pkg_ 1.3.5 && autoconf_pkg_;; hdparm) setup_pkg_ '5.9 5.8 5.7 5.6 5.5 5.4 5.3' && pkg_install_() { x_=$prefix_/man && mkdir "$prefix_"/sbin "$x_" "$x_"/man8 && make binprefix="$prefix_" mandir="$x_" oldmandir="$x_" \ CFLAGS="$cppflags_ $cflags_" LDFLAGS="-s $ldflags_" ${1+"$@"} \ all install };; help2man) setup_pkg_ '1.35.1 1.33.1' && nls_pkg_= && autoconf_pkg_ && no_check_pkg_;; ## there are no tests iana-etc) setup_pkg_ '1.04 1.03 1.02 1.01' && pkg_install_() { if [ "$version_" = 1.01 ] then mkdir "$prefix_"/etc else : fi && make PREFIX="$prefix_" ${1+"$@"} all install };; imagemagick) x_=`prj_sedarg1 's%-[0-9]*$%%' "$version_"` && setup_pkg_ '6.2.3-6 6.1.4-4 6.0.8-1 6.0.1-3 6.0.0-4' \ srcdir: ImageMagick-"$x_" dirs: ghostscript-fonts \ libs: 'bzip2 freetype jpeg libpng libxml2 tiff xfree86 zlib' && x_pkg_= && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && pkg_before_configure_() { ### cppflags_="$cppflags_ -I$prefix_/include" noop_commands_ ldconfig } && set -- --with-modules --with-hdf --with-x --without-perl \ --with-gs-font-dir="$SPF_CONF"/ghostscript-fonts/fonts ${1+"$@"};; inetutils) setup_pkg_ 1.4.2 libs: 'ncurses zlib' && autoconf_pkg_ && pkg_after_install_() { chmod +x "$prefix_"/bin/*; };; intlfonts) setup_pkg_ '1.2.1 1.2' && autoconf_pkg_ && set -- --with-pcf --with-bdf --with-type1 --with-truetype \ --enable-compress=gzip ${1+"$@"} && pkg_after_install_() { ln -s share/emacs/fonts "$prefix_"/; } && no_check_pkg_;; ## there are no tests iptables) setup_pkg_ '1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 1.3.0 1.2.11' && pkg_install_() { case $* in *NO_SHARED_LIBS=1*) ldflags_="-static $ldflags_";; *) ldflags_="-rdynamic $ldflags_";; esac && rungcc_ && if test -d "$conflibc_"/include/. then set -- KERNEL_DIR="$conflibc_" ${1+"$@"} else : fi && make PREFIX="$prefix_" COPT_FLAGS="-O2 $cppflags_ $cflags_" \ LDFLAGS="$ldflags_" ${1+"$@"} default install install-devel };; iptraf) setup_pkg_ 2.7.0 data. libs: ncurses && pkg_install_() { mkdir "$prefix_"/doc "$prefix_"/man "$prefix_"/man/man8 && ( cd Documentation && exec tar -cf - . ) > "$prefix_"/doc/tmp.tar && ( cd "$prefix_"/doc && rm tmp.tar && tar -xf - && mv *.8 ../man/man8/ && rm README Makefile *.gz ) < "$prefix_"/doc/tmp.tar && cflags_="-Wall $cflags_" && cflags_="$cppflags_ $cflags_" && ( cd support && exec make INCLUDEDIR="$cflags_" ${1+"$@"} all ) && cd src && define_c_ dirs.h LOCKDIR "\"$prefix_/lock\"" && make TARGET="$prefix_"/bin CFLAGS="$cflags_" \ LDOPTS="$cppflags_ $cflags_ $ldflags_" ${1+"$@"} all && install_ "$prefix_"/bin iptraf rvnamed && mkdir -m 0700 "$prefix_"/lock && data_dir_ . lock };; jabberd) # http://www.jabberstudio.org/files/jabberd2/jabberd-2.0s4.tar.gz setup_pkg_ '2.0s4' optlibs: 'cyrus-sasl libidn openldap openssl' && autoconf_pkg_ && pkg_configure_() { { test -d "$SPF_CONF"/libidn/include/. || set -- --disable-idn ${1+"$@"}; } && { test -d "$SPF_CONF"/openssl/include/. || set -- --disable-ssl ${1+"$@"}; } && { prj_not test -d "$SPF_CONF"/openldap/include/. || set -- --enable-ldap ${1+"$@"}; } && autoconf_configure_ --disable-mysql ${1+"$@"} };; jbigkit) setup_pkg_ '1.6 1.4' srcdir: "$package_" && pkg_install_() { set CCFLAGS="$cppflags_ -O2 -W $cflags_ $ldflags_" ${1+"$@"} && make ${1+"$@"} all && ( cd pbmtools && install_ "$prefix_"/bin jbgtopbm pbmtojbg && install_ "$prefix_"/man/man1 jbgtopbm.1 pbmtojbg.1 && install_ "$prefix_"/man/man5 pbm.5 pgm.5 ) && ( cd libjbig && install_ "$prefix_"/include jbig.h && install_ "$prefix_"/lib libjbig.a ) && make ${1+"$@"} test };; jfsutils) setup_pkg_ '1.1.7 1.1.4' libs: e2fsprogs && autoconf_pkg_;; jmk-x11-fonts) setup_pkg_ 3.0 ignore_args. && pkg_install_() { xmkmf && rm -f "$conflibc_" && if test -d "$SPF_CONF"; then rmdir "$SPF_CONF"; else :; fi && sed_ Makefile 's%\%GZIPCMD2%g' && make && make install INSTALL_DIR="$prefix_" ## there are no tests };; joe) setup_pkg_ '3.2 3.1 3.0 2.9.8' data. libs: ncurses && autoconf_pkg_ && pkg_after_install_() { data_dir_ . etc; };; jpeg) setup_pkg_ 6b && pkg_after_setup_() { mkdir "$prefix_"/bin "$prefix_"/include "$prefix_"/lib "$prefix_"/man \ "$prefix_"/man/man1 } && autoconf_pkg_ && set -- --enable-static --enable-shared ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig && define_c_ jpeglib.h D_MAX_BLOCKS_IN_MCU 64 } && pkg_after_install_() { cp -p cderror.h jchuff.h jdct.h jmemsys.h jpegint.h jversion.h cdjpeg.h \ jdhuff.h jinclude.h transupp.h "$prefix_"/include/ };; kbd) setup_pkg_ '1.12 1.11' && pkg_install_() { ./configure ${SPF_NO_NLS+--disable-nls} --prefix="$prefix_" && cflags_="$cppflags_ -O2 $cflags_" && ldflags_="$cflags_ $ldflags_" && make setowner= CFLAGS="$cflags_" LDFLAGS="$ldflags_" ${1+"$@"} \ all install ## there are no tests };; lame) setup_pkg_ '3.96.1 3.95.1 3.93.1 3.93' \ optlibs: 'gtk+ glib ncurses xfree86' && pkg_after_setup_() { x_=`gcc -dumpversion` && case $x_ in 3.0*) warn_ "lame should not be compiled with gcc 3.0";; *) :;; esac } && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig && fix_ltconfig_ };; less) setup_pkg_ '382 381 378 358' libs: ncurses && autoconf_pkg_;; lesspipe) setup_pkg_ '1.44 1.43 1.42 1.41 1.37' && pkg_install_() { ./configure --prefix="$prefix_" --default ${1+"$@"} && make install };; lesstif) setup_pkg_ '0.94.4 0.94.2 0.94.0 0.93.97 0.93.96 0.93.94' \ libs: 'flex xfree86' optlibs: 'fontconfig freetype zlib' && x_pkg_= && autoconf_pkg_ && set -- --enable-static ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig && sp_foreign_path_ && echo "#!/bin/sh path='$prefix_' && echo \"\$path\"/share/aclocal" > sp-foreign-path/aclocal && chmod +x sp-foreign-path/aclocal };; lftp) setup_pkg_ \ '3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.13 3.0.12 3.0.11 3.0.9 3.0.8 3.0.7 3.0.5 3.0.4 3.0.3 3.0.2 3.0.1 3.0.0 2.6.12 2.6.11 2.6.10 2.6.9 2.6.8' \ libs: 'readline ncurses openssl' optlibs: expat data. && nls_pkg_= && case $version_ in 3.2.*) set -- --with-openssl="$SPF_CONF"/openssl \ --without-gnutls ${1+"$@"};; *) :;; esac && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && pkg_after_install_() { data_dir_ . etc; };; libao) setup_pkg_ '0.8.6 0.8.5 0.8.4' optlibs: alsa-lib && autoconf_pkg_ && set -- --enable-static --enable-alsa --enable-alsa09 --enable-arts \ ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; };; libcap) setup_pkg_ 1.10 selflib. && pkg_install_() { rungcc_ && x_='s%-/sbin/ldconfig%:%' && if test -d "$conflibc_"/. then x_=$x_$nl_"s%/usr/include%$conflibc_/include%g" else : fi && sed_ libcap/Makefile "$x_" && make prefix="$prefix_" COPTFLAG="$cppflags_ -O2 $cflags_" \ LDFLAGS="-s $cflags_ $ldflags_" ${1+"$@"} all install && chmod +x "$prefix_"/lib/*.so };; libcfg+) setup_pkg_ '0.6.2' && autoconf_pkg_;; libdockapp) setup_pkg_ '0.5.0' srcdir: dockapp libs: xfree86 && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { fix_ltconfig_ && noop_commands_ ldconfig && hide_commands_ autoconf autoheader autom4te autoreconf autoscan \ autoupdate ifnames aclocal automate libtool libtoolize && : >> fonts/fonts.dir && : >> fonts/fonts.alias && define_make_ x_ XFONTDIR "$prefix_"/lib/X11/fonts && sed_ fonts/Makefile.in "$x_" && x_='/SHAPEDIR/s%^%#%'$nl_ && define_make_ x_ SHAREDIR "$prefix_"/share && sed_ examples/Makefile.in "$x_" };; libdvdcss) setup_pkg_ '1.2.8 1.2.5 1.2.4 1.2.2' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libdvdnav) setup_pkg_ '0.1.10' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libdvdread) setup_pkg_ '0.9.5 0.9.4' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libgcrypt) setup_pkg_ '1.2.2 1.2.1 1.2.0 1.1.94 1.1.91' libs: libgpg-error && autoconf_pkg_ && set -- --with-gpg-error-prefix="$SPF_CONF"/libgpg-error ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig && sed_ src/libgcrypt-config.in ' /--prefix)/i\ --prefix=*) prefix=$optarg;;\ --exec-prefix=*) exec_prefix=$optarg;;\ ' #### report this };; libglade) setup_pkg_ '2.4.2 2.4.1 2.4.0 2.3.6' \ libs: 'gtk+ atk pango glib libxml2 zlib' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libgpg-error) setup_pkg_ '1.3 1.2 0.7 0.6' && nls_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libid3tag) setup_pkg_ '0.15.1b 0.15.0b' libs: zlib && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libidl) setup_pkg_ '0.8.6 0.8.5 0.8.4 0.8.3 0.8.2 0.6.8' \ srcdir: libIDL-"$version_" libs: 'flex glib' && autoconf_pkg_ && if [ "$version_" = 0.6.8 ]; then pkg_before_configure_() { fix_ltconfig_ && exec < /dev/null ## configure tries "gcc -I foo.c" } else pkg_after_setup_() { mkdir "$prefix_"/include && ln -s . "$prefix_"/include/libIDL-2.0 } && pkg_before_configure_() { noop_commands_ ldconfig; } fi;; libidn) setup_pkg_ '0.6.0 0.5.19 0.5.15 0.5.13 0.5.12 0.5.11 0.5.10 0.5.8' && nls_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libmad) setup_pkg_ '0.15.1b 0.15.0b' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libogg) setup_pkg_ '1.1.2 1.1 1.0' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libpcap) setup_pkg_ '0.9.4 0.8.3 0.8.1 0.7.1' && autoconf_pkg_ && set -- --enable-ipv6 ${1+"$@"} && pkg_before_configure_() { rungcc_ && if test -d "$conflibc_"/. then sed_ configure 's%\(test -r \)/usr\(/include\)%\1'"$conflibc_\\2%" else : fi } && no_check_pkg_;; ## there are no tests libpng) setup_pkg_ '1.2.8 1.2.7 1.2.6 1.2.5' ld_run_path. libs: zlib && pkg_after_setup_() { cflags_="$cppflags_ -Wall -O2 $cflags_" && ldflags_="$cflags_ $ldflags_ -lz -lm" && x_=`pwd` && prj_x2 prj_append LD_LIBRARY_PATH "$x_" } && pkg_install_() { if [ "$#" = 0 ]; then case $uname_s_ in Linux) x_=`uname -m` && case $x_ in i[6789]86) x_=gcmmx;; *) x_=linux;; esac;; NetBSD|OpenBSD|FreeBSD) x_=linux;; SunOS) x_=solaris;; *) x_=std;; esac else x_=$1 && shift fi && needfile scripts/makefile."$x_" && ln -s scripts/makefile."$x_" Makefile && make prefix="$prefix_" CFLAGS="$cflags_" LFLAGS="-L. -lpng $ldflags_" \ LFLAGS_A="libpng.a $ldflags_" ZLIBINC="$SPF_CONF"/zlib/include \ ZLIBLIB="$SPF_CONF"/zlib/lib ${1+"$@"} all install test };; libtasn1) setup_pkg_ '0.3.4 0.2.18 0.2.17 0.2.14 0.2.13 0.2.10 0.2.7 0.2.6' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; libtool) setup_pkg_ '1.5.22 1.5.20 1.5.18 1.5.16 1.5.14 1.5.12 1.5.10 1.5.8 1.5.6 1.5.4 1.5.2 1.5 1.4.3 1.4.2' && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && case $version_ in 1.4.*|1.5|1.5.?|1.5.1*|1.5.20) :;; *) pkg_after_install_() { ln -s share/info "$prefix_"/; };; esac;; libungif) setup_pkg_ '4.1.4 4.1.3' libs: xfree86 && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && no_check_pkg_;; ## "make check" is interactive and requires xv libvorbis) setup_pkg_ '1.1.1 1.0.1 1.0' libs: libogg && autoconf_pkg_ && pkg_configure_() { noop_commands_ ldconfig && x_=$SPF_CONF/libogg && ldflags_="$ldflags_ -Wl,-R,$x_/lib" && autoconf_configure_ --with-ogg="$x_" ${1+"$@"} };; libxml2) setup_pkg_ \ '2.6.23 2.6.20 2.6.17 2.6.16 2.6.15 2.6.14 2.6.13 2.6.11 2.6.10 2.6.9 2.6.7 2.6.6 2.6.4 2.5.1 2.4.28 2.4.24' \ libs: 'readline ncurses zlib' && autoconf_pkg_ && set -- --with-history ${1+"$@"} && pkg_before_configure_() { if prj_match '2.4.*|2.5.*|2.6.?|2.6.10' "$version_" then fix_ltconfig_ else : fi && noop_commands_ ldconfig } && case $version_ in 2.[45].*|2.6.?|2.6.1*) :;; *) pkg_check_() { make check && make tests; };; esac;; lilo) setup_pkg_ \ '22.7.1 22.7 22.6.1 22.6 22.5.9 22.5.8 22.5.7.2 22.5.7 22.5.6 22.5.5 22.5.4 22.5.3 22.5.2 22.5.1 22.5' && pkg_after_setup_() { x_=`gcc -dumpversion` && case $x_ in 3.[01]*|3.2) warn_ "lilo cannot be built with gcc 3.0-3.2; use 2.95.3 or 3.2.*";; *) :;; esac && x_=$prefix_/etc && mkdir "$x_" && { echo BDATA && echo BOOT_FILE && echo DSECS=3 && echo LBA32 && echo LVM && echo ONE_SHOT && echo PASS160 && echo READONLY && echo REISERFS && echo SOLO_CHAIN && echo USE_TMPDIR && echo VERSION && case $version_ in 22.[34].*) echo BUILTIN && echo M386 && echo UNIFY && echo VARSETUP;; *) :;; esac } > "$x_"/tmp0 && sed 's%^%-D%' < "$x_"/tmp0 > "$x_"/tmp1 && tr "$nl_" ' ' < "$x_"/tmp1 > "$x_"/lilo.defines && echo >> "$x_"/lilo.defines && rm "$x_"/tmp[01] } && pkg_install_() { sed_ geometry.c '/^#define/s%, 1)$%, int)%' && sed_ second.S 's%^#error.*WR_ENABLE=1"$%/* & */%' && rungcc_ && x_='s%\(\$(PCONFIG)\)%\1 '"$cppflags_%g" && if test -d "$conflibc_"/. then x_=$x_$nl_"s%/usr/include%$conflibc_/include%g" else : fi && sed_ Makefile "$x_" && prj_x2 prj_set ROOT "$prefix_" && make OPT="-O2 $cflags_" LDFLAGS="$ldflags_" ${1+"$@"} && make USRSBIN_DIR=/sbin MAN_DIR=/man install ## there are no tests };; lilypond) # if fonts are missing, mktextfm should help setup_pkg_ '2.2.6 2.2.5 2.0.1 2.0.0 1.8.2 1.8.1 1.8.0 1.7.29' \ libs: 'flex guile python tetex' && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_;; links) setup_pkg_ '2.1pre15 2.1pre14 2.1pre13 2.1pre7 2.1pre3' \ libs: 'libpng jpeg tiff openssl xfree86 zlib' && x_pkg_= && autoconf_pkg_ && set -- --enable-javascript --enable-graphics --with-ssl ${1+"$@"};; linux) if prj_match '2.4.*' "$version_." then prj_u2 prj_set v2_4_ y && prj_u2 prj_set modules_ modutils else prj_u2 prj_set v2_4_ n && prj_u2 prj_set modules_ module-init-tools fi && setup_pkg_ \ '2.6.17.10 2.6.17.9 2.6.17.8 2.6.17.7 2.6.17.6 2.6.17.1 2.6.16.20 2.6.15.6 2.6.15.5 2.6.15.4 2.6.15.3 2.6.15.2 2.6.15.1 2.6.15 2.6.14.5 2.6.14.4 2.6.14.3 2.6.14.2 2.6.14.1 2.6.14 2.6.13.4 2.6.13.3 2.6.13.2 2.6.13.1 2.6.13 2.6.12.6 2.6.12.5 2.6.12.4 2.6.12.3 2.6.12.2 2.6.12.1 2.6.12 2.6.11.12 2.6.11.11 2.6.11.10 2.6.11.9 2.6.11.8 2.6.11.7 2.6.11.6 2.6.11.5 2.6.11.4 2.6.11.3 2.6.11.2 2.6.11.1 2.6.11 2.6.10 2.6.9 2.6.8.1 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.4.31 2.4.30 2.4.29 2.4.28 2.4.27 2.4.26 2.4.25 2.4.24 2.4.23 2.4.22 2.4.21 2.4.20 2.4.19' \ dirs: "$modules_" data. && pkg_install_() { if test -f .config; then :; else x_=$SPF_CONF/linux-data && for x_ in "$x_"/.config-"$version_" "$x_"/.config; do if test -f "$x_" then cp "$x_" .config && break else : fi || return "$?" done fi && prj_u2 prj_set ncurses_ "$SPF_PREFIX"/ncurses && prj_u2 prj_set kimage_ bzImage && if test "$v2_4_" = y; then prj_u2 prj_set ko_ o && x_="1i\\${nl_}HOSTCFLAGS += -I$ncurses_/include\\$nl_" && x_=$x_$nl_"s%\(-lncurses\) \(lxtemp\.c\)%\1 -I$ncurses_/include \2%" && ncurses_=$ncurses_/lib && x_=$x_$nl_'s%\($(HOSTCC)\)%\1'" -L$ncurses_ -Wl,-R,$ncurses_%" && sed_ scripts/lxdialog/Makefile "$x_" else prj_u2 prj_set ko_ ko && if test "$ARCH" = um; then kimage_=linux && rungcc_ && if test -d "$conflibc_"/lib/.; then x_="s%/usr\\(/lib\\)%$conflibc_\\1%" && sed_ arch/um/Makefile "$x_" && sed_ arch/um/kernel/tt/Makefile "$x_" else : fi else : fi && x_="s%/usr/%$ncurses_/%g" && case $version_. in 2.6.?.*|2.6.1[012345].*) x_=$x_$nl_"/^HOST_LOADLIBES$cws_*:=/s%\$%" && x_=$x_" -L$ncurses_/lib -Wl,-R,$ncurses_/lib%" && sed_ scripts/lxdialog/Makefile "$x_";; *) sed_ scripts/kconfig/lxdialog/check-lxdialog.sh "$x_ 1a\\ LIBRARY_PATH=$ncurses_/lib\${LIBRARY_PATH+:\$LIBRARY_PATH} &&\\ export LIBRARY_PATH &&\\ " && sed_ scripts/kconfig/lxdialog/Makefile " /^HOST_EXTRACFLAGS$cws_*=/s%\$% -I$ncurses_/include% /^HOST_LOADLIBES$cws_*=/s%\$% -L$ncurses_/lib -Wl,-R,$ncurses_/lib% ";; esac fi && if test "$#" = 0 then x_=oldconfig else x_=$1 && shift fi && set -- ${1+"$@"} "$x_" && if test "$v2_4_" = y then set GENKSYMS=genksyms ${1+"$@"} dep clean else set SHELL=bash ${1+"$@"} fi && #### 2.6.4: bzImage => all?; modules? make DEPMOD=: INSTALL_MOD_PATH="$prefix_" ${1+"$@"} "$kimage_" modules \ modules_install && ## there are no tests rm -f "$conflibc_" && prj_u2 prj_capture asm_ readlink include/asm && set System.map .config include/asm-generic include/"$asm_" && if test "$v2_4_" = y; then set "$@" include/asm include/linux else for x_ in include/*; do if prj_not prj_match 'include/asm-*' "$x_" then set "$@" "$x_" else : fi || return "$?" done fi && tar -cf "$prefix_"/install.tar "$@" && ( cd "$prefix_" && exec tar -xf install.tar ) && rm -f "$prefix_"/install.tar && if test "$kimage_" = linux; then cp -p "$kimage_" "$prefix_"/ else set arch/*/boot/"$kimage_" && cp -p "$1" "$prefix_"/ fi && spf_current_ "$prefix_"/lib/modules && if test "$v2_4_" = y; then { x_=$prefix_/lib/modules/spf-current && prj_echo path="$x_" && prj_echo depfile="$x_"/modules.dep && prj_echo generic_stringfile="$x_"/modules.generic_string && prj_echo ieee1394mapfile="$x_"/modules.ieee1394map && prj_echo isapnpmapfile="$x_"/modules.isapnpmap && prj_echo parportmapfile="$x_"/modules.parportmap && prj_echo pcimapfile="$x_"/modules.pcimap && prj_echo pnpbiosmapfile="$x_"/modules.pnpbiosmap && prj_echo usbmapfile="$x_"/modules.usbmap } > "$prefix_"/modules.conf else mkdir -p "$prefix_$SPF_PREFIX" && ln -s "$prefix_" "$prefix_$SPF_PREFIX"/linux fi && prj_u2 prj_capture qprefix_ prj_quote_sh "$prefix_" && if test "$v2_4_" = y then x_='-arC modules.conf' else x_="-b "$qprefix_ fi && prj_u2 prj_capture kernver_ sed '/^#define UTS_RELEASE /!d s%^[^"]*"\([^"]*\)".*$%\1%' < "$prefix_"/include/linux/version.h && kernver_=`prj_quote_sh "$kernver_"` && prj_echo > "$prefix_"/update-modules "#!/bin/sh cd $qprefix_ && exec spf/$modules_/sbin/depmod $x_ -eF System.map $kernver_" && chmod +x "$prefix_"/update-modules && "$prefix_"/update-modules && echo " $prj_program: remember to update the boot loader configuration and re-run the boot loader installer." };; linux-libc-headers) setup_pkg_ '2.6.12.0 2.6.11.2 2.6.11.0 2.6.10.0 2.6.9.1 2.6.8.1 2.6.8.0 2.6.7.0' && pkg_install_() { ignore_args_ ${1+"$@"} && x_=`uname -m` && prj_u2 prj_set sed_cmds_ ' s/i.86/i386/ s/sun4u/sparc64/ s/arm.*/arm/ s/sa110/arm/ s/s390x/s390/ s/parisc64/parisc/ s/ppc.*/powerpc/ s/mips.*/mips/ ' && x_=asm-`prj_sedarg1 "$sed_cmds_" "$x_"` && mkdir "$prefix_"/include && ln -s "$x_" "$prefix_"/include/asm && set doc include/"$x_" && for x_ in include/*; do if prj_match 'include/asm-*' "$x_" then : else set "$@" "$x_" fi || return "$?" done && tar -cf "$prefix_"/install.tar "$@" && ( cd "$prefix_" && tar -xf "$prefix_"/install.tar ) && rm -f "$prefix_"/install.tar && case $version_ in 2.6.8.1|2.6.8.0|2.6.7.0) chmod -R +rX "$prefix_"/.;; *) ;; esac };; #linux-pam) doit_() { #### unfinished # cd Linux-PAM-"$version_" # checkversion_ 0.75 # conflib_ db flex pwdb # make_data_package_ # mkdir "$prefix_"/man "$prefix_"/man/man3 "$prefix_"/man/man8 # sed_ modules/Makefile 's%/bin/\(ls\)%\1%' # sed_ modules/pam_pwdb/Makefile 's%\($(CC) \)-o%'"\1$cflags_ $ldflags_ -o%" # define_make_ x_ DOCDIR "$prefix_"/doc # define_make_ x_ MANDIR "$prefix_"/man # sed_ doc/Makefile "$x_" # sed_ configure 's%\(INSTALL=\)/usr/bin/\(install\)%\1\2%' # autoconf_targets_=install ## there are no tests # autoconf_ --enable-includedir="$prefix_"/include --enable-static-libpam \ # ${1+"$@"} # data_dir_ . etc # rm -rf "$prefix_"/man/man'{3,8}' # cd "$prefix_"/lib # x_=libpam.so # maybelink_ "$x_".0 "$x_".0.* # x_=libpam_misc.so # maybelink_ "$x_".0 "$x_".0.* # x_=libpamc.so # maybelink_ "$x_".0 "$x_".0.* #};; lsof) setup_pkg_ '4.77 4.76 4.75 4.74 4.73 4.72 4.71 4.70' \ srcdir: "$package_"_"$version_" && pkg_install_() { if [ "$#" = 0 ]; then case $uname_s_ in Linux) x_=linux;; SunOS) x_=solaris;; NetBSD) x_=netbsd;; FreeBSD) x_=freebsd;; OpenBSD) x_=openbsd;; *) prj_fail 'you must specify a system type';; esac else x_=$1 && shift fi && tar -xf lsof_*_src.tar && cd "$package_"_*_src/. && { echo y && # run Inventory echo y && # run Customize echo y && # HASSECURITY: enable echo && # HASNOSOCKETSECURITY: default (disabled) echo && # WARNINGSTATE: default (enabled) echo && # HASKERNIDCK: default (disabled) echo y # replace machine.h } > sp-foreign-input && LINUX_LSEEK=y ./Configure "$x_" < sp-foreign-input && x_="/^CDEF=/s%$% $cppflags_%" && x_=$x_$nl_"/^CFLAGS=/s%$% -O2 $cflags_%" && x_=$x_$nl_"/^CFGL=/s%$% $cppflags_ -O2 $cflags_ $ldflags_%" && sed_ Makefile "$x_" && sed_ lib/Makefile "$x_" && make ${1+"$@"} && install_ "$prefix_"/bin lsof && install_ "$prefix_"/man/man8 lsof.8 } && pkg_check_() { cd tests && x_=0 && { make silent || x_=$?; } && echo && echo 'If you want lsof to be usable by unprivileged users, you need' && echo 'to make it setuid root, or setgid kmem, or whatever. See' && echo "${package_}_$version_/${package_}_${version_}_src/00README" && echo 'for details.' && return "$x_" };; lvm) case $version_ in 1.*) setup_pkg_ '1.0.8 1.0.7' srcdir: LVM/"$version_" selflib.;; *) setup_pkg_ '2.01.09 2.01.06 2.01.04 2.01.03 2.00.32 2.00.29 2.00.25 2.00.24 2.00.20 2.00.19' \ srcdir: LVM2."$version_" libs: device-mapper \ optlibs: 'ncurses readline' data.;; esac && autoconf_pkg_ && x_=`id -u` && set -- --with-user="$x_" ${1+"$@"} && x_=`id -g` && set -- --with-group="$x_" ${1+"$@"} && case $version_ in 1.*) set -- --with-kernel_dir="$SPF_PREFIX"/src/linux ${1+"$@"} && pkg_before_configure_() { cflags_="$cppflags_ $cflags_"; };; *) nls_pkg_= && pkg_configure_() { #### report these sed_ lib/config/defaults.h "s%DEFAULT_SYS_DIR \"%&$prefix_%" && sed_ configure 's% =\(= x[a-z]* \];\)% \1%' && prj_x2 prj_set INCLUDES "$cppflags_" && if test -d "$SPF_CONF"/readline/include/. then set -- --enable-readline ${1+"$@"} else : fi && autoconf_configure_ --with-confdir="$prefix_"/etc \ --with-optimisation= ${1+"$@"} } && pkg_after_install_() { data_dir_ . etc; };; esac && no_check_pkg_;; ## there are no tests lynx) setup_pkg_ 2-8-5 srcdir: "$package_$version_" \ libs: 'ncurses openssl zlib' data. && nls_pkg_= && autoconf_pkg_ && set -- --with-screen=ncurses --with-zlib --with-ssl --disable-full-paths \ --enable-externs --enable-nested-tables --enable-nsl-fork \ --enable-read-eta --enable-gzip-help ${1+"$@"} && pkg_install_() { make install install-help install-doc && data_file_ lib lynx.cfg } && no_check_pkg_;; ## there are no tests lzo) setup_pkg_ '2.01 1.08' optlibs: zlib && autoconf_pkg_ && set -- --enable-shared ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; };; lzop) setup_pkg_ '1.01' libs: lzo && autoconf_pkg_;; m4) setup_pkg_ '1.4.6 1.4.4 1.4.3 1.4.2 1.4.1 1.4' && autoconf_pkg_ && case $version_ in 1.4) pkg_before_configure_() { sed_ configure '/^CPP="\$ac_cv_prog_CPP"$/s%^%#%' };; 1.4.[1234]) :;; *) pkg_after_install_() { ln -s share/info share/man "$prefix_"/; };; esac;; maildirsync) setup_pkg_ '1.1 1.0 0.6' ignore_args. && pkg_install_() { install_ "$prefix_"/bin maildirsync.pl && install_ "$prefix_"/doc maildirsync.pod };; maildrop) setup_pkg_ '1.8.0 1.7.0 1.6.3' optdirs: qmail optlibs: 'gdbm' && prj_x2 prj_set SPF_GCC_GCCLIB '' && set -- --with-etcdir="$prefix_"/etc ${1+"$@"} && autoconf_pkg_ && pkg_before_configure_() { sed_ maildrop/configure "s%/var/qmail%$SPF_CONF/qmail%" } && pkg_install_() { make install-strip install-man; };; make) setup_pkg_ '3.81 3.80 3.79.1' && nls_pkg_= && autoconf_pkg_;; man) setup_pkg_ '1.6d 1.6c 1.6b 1.6a 1.6 1.5o 1.5m2 1.5l 1.5k 1.5j' \ ignore_args. data. && pkg_after_setup_() { mkdir "$prefix_"/bin "$prefix_"/share "$prefix_"/share/misc \ "$prefix_"/man "$prefix_"/var "$prefix_"/httpd } && pkg_install_() { { echo && # we have nroff source echo && # default troff command echo && # default nroff command echo && # default jnroff command echo && # default eqn command echo && # default neqn command echo && # default jneqn command echo && # default tbl command echo && # default col command echo && # default vgrind command echo && # default refer command echo && # default grap command echo && # default pic command echo && # default pager command case $version_ in 1.5*) :;; *) echo && # default browser command echo;; # default htmlpager command esac && echo && # default cmp command echo && # default cat command echo && # default awk command echo && # don't put cat pages in /var/cache/man echo && # don't put cat pages in /var/catman prj_echo "$prefix_"/bin && # where to install executables prj_echo "$prefix_"/bin && # where to install makewhatis prj_echo "$prefix_"/man && # where to install man pages prj_echo "$prefix_"/share/misc && # where to install man.conf echo && # default extension for section 1 pages echo && # default extension for section 5 pages echo && # default extension for section 8 pages echo && # don't install non-English pages echo && # don't make man setuid echo && # default list of sections echo && # compress formatted pages prj_which x_ bzip2 && prj_echo "$x_" && # compression command echo && # default extension for compressed files echo && # default gunzip command echo && # default bunzip2 command echo && # default unpack command echo && # default uncompress command echo && # default melt command echo # default unyabba command } > sp-foreign-input && ./configure -ask < sp-foreign-input && make CPPFLAGS="$cppflags_" CFLAGS="-O2 $cflags_" LDFLAGS="$ldflags_" && x_= && define_make_ x_ bindir "$prefix_/bin" && define_make_ x_ vardir "$prefix_/var" && define_make_ x_ httpdir "$prefix_/httpd" && sed_ man2html/Makefile "$x_" && make CPPFLAGS="$cppflags_" CFLAGS="-O2 $cflags_" LDFLAGS="$ldflags_" \ install && prj_unset var_ && x_= && for var_ in TROFF NROFF JNROFF EQN NEQN JNEQN TBL COL REFER PIC VGRIND \ GRAP PAGER CAT CMP COMPRESS \\.gz \\.bz2 \\.z \\.Z \\.F \ \\.Y; do x_=$x_$nl_"/^$var_/s,/.*/,," || return "$?" done && sed_ "$prefix_"/share/misc/man.conf "$x_" && data_file_ share/misc man.conf ## there are no tests };; mess822) setup_pkg_ 0.58 dirs: qmail ignore_args. && pkg_before_make_() { sed_ conf-qmail "1c\\${nl_}$SPF_CONF/qmail\\${nl_}" } && djb_pkg_ && pkg_after_install_() { { cmp leapsecs.dat /etc/leapsecs.dat || :; } && rm -rf "$prefix_"/man/cat* };; mftrace) setup_pkg_ '1.0.34 1.0.33 1.0.19' && autoconf_pkg_ && no_check_pkg_;; ## there are no tests micq) ## unmaintained setup_pkg_ 0.4.7 autoconf_pkg_;; mktemp) setup_pkg_ 1.5 && autoconf_pkg_;; module-init-tools) setup_pkg_ '3.2.2 3.2.1 3.1 3.0' optlibs: zlib data. && autoconf_pkg_ && pkg_configure_() { case $version_ in 3.2.[12]) prj_which x_ bash && sed_ tests/runtests "1c\\${nl_}#!${x_}\\${nl_}";; *) :;; esac && touch *.[0123456789] && sed_ modprobe.c "s%/etc/%$prefix_&%" if test -d "$SPF_CONF"/zlib/include/. then set -- --enable-zlib ${1+"$@"} else : fi && autoconf_configure_ --with-moddir="$SPF_PREFIX"/linux/lib/modules \ ${1+"$@"} } && pkg_after_install_() { data_dir_ . etc && case $version_ in 3.[01]) :;; *) ln -s share/man "$prefix_"/;; esac };; modutils) setup_pkg_ '2.4.27 2.4.26 2.4.25 2.4.24 2.4.22 2.4.20 2.4.19 2.4.16' && autoconf_pkg_ && set -- --enable-insmod-static ${1+"$@"} && pkg_before_configure_() { cflags_="$cppflags_ $cflags_"; } && #### no_check_pkg_;; ## there are no tests mozilla|firefox) x_=$SPF_CONF/gtk+/lib && if prj_not test -d "$x_"/.; then x_=$SPF_PREFIX/gtk+/lib; else :; fi && if test -f "$x_"/pkgconfig/gtk+-2.0.pc; then set -- --enable-default-toolkit=gtk2 ${1+"$@"} && prj_u2 prj_set morelibs_ 'atk pango' else prj_u2 prj_set morelibs_ '' fi && if test "$package_" = mozilla then x_='1.7.6 1.7.5 1.7.3 1.7.1 1.7' else x_='1.5.0.6 1.5.0.5 1.0.6 1.0.3 1.0.2 1.0.1 1.0 1.0rc1 0.10.1' fi && setup_pkg_ "$x_" srcdir: mozilla \ libs: "gtk+ $morelibs_ libidl glib freetype jpeg libpng xfree86 zlib" \ optlibs: 'fontconfig' data. && x_pkg_= && autoconf_pkg_ && set -- \ --with-system-jpeg="$SPF_CONF"/jpeg \ --with-system-png="$SPF_CONF"/libpng \ --with-system-zlib="$SPF_CONF"/zlib \ --with-ft-prefix="$SPF_CONF"/freetype \ --with-gtk-prefix="$SPF_CONF"/gtk+ \ --with-glib-prefix="$SPF_CONF"/glib \ --with-libIDL-prefix="$SPF_CONF"/libidl \ ${1+"$@"} && #--with-system-mng[=PFX] Use system libmng [installed at prefix PFX] #--with-default-mozilla-five-home # Set the default value for MOZILLA_FIVE_HOME prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_no_O2_= && pkg_before_configure_() { cflags_="-O $cflags_" && if test "$package_" = firefox then echo '. $topsrcdir/browser/config/mozconfig' >> .mozconfig else : fi } && pkg_after_install_() { spf_current_ "$prefix_"/lib "$package_"- && x_=$prefix_/lib/spf-current/plugins && mv -f "$x_" "$x_"-spf-orig && mkdir "$x_" && ( cd "$x_"-spf-orig && prj_unset plugin_ && for plugin_ in *; do ln -s "$current_"/lib/spf-current/plugins-spf-orig/"$plugin_" \ "$x_"/ || return "$?" #### done ) && data_dir_ lib/spf-current plugins && if test "$package_" = firefox; then prj_tmpdir x_ && HOME=$x_ "$prefix_"/bin/firefox -register && rm -rf "$x_" else : fi } && no_check_pkg_;; ## there are no tests mpage) setup_pkg_ '2.5.4 2.5.3 2.5.2' && pkg_install_() { make default install CFLAGS="$cppflags_ -O2 -s \$(DEFS) $cflags_" \ LIBS="$ldflags_" PREFIX="$prefix_" PAGESIZE=Letter ${1+"$@"} ## there are no tests };; mpg123) setup_pkg_ 0.59r && pkg_after_setup_() { if [ "$#" = 0 ]; then case $uname_s_ in Linux) x_=linux;; FreeBSD) x_=freebsd;; SunOS) x_=solaris-gcc;; *) x_=generic;; esac else x_=$1 && shift && ignore_args_ ${1+"$@"} fi } && pkg_install_() { make "$x_" install PREFIX="$prefix_" ## there are no tests };; mpg321) setup_pkg_ 0.2.10 libs: 'libao libid3tag libmad zlib' && autoconf_pkg_ && set -- --with-ao="$SPF_CONF"/libao ${1+"$@"};; mplayer) setup_pkg_ '1.0pre8 1.0pre7 1.0pre6 1.0pre5try2 1.0pre5' \ srcdir: "MPlayer-$version_" data. libs: 'xfree86' optlibs: \ 'alsa-lib cdparanoia jpeg lame libdvdnav libdvdread libpng libungif libvorbis libogg libmad sdl zlib' && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && pkg_configure_() { noop_commands_ ldconfig && x_=$SPF_CONF/libdvdnav/include/dvdnav && if test -d "$x_"/.; then cppflags_="$cppflags_ -I$x_"; else :; fi && sed_ vidix/drivers/Makefile "/-shared/s%\$% $ldflags_%" && x_=`pwd`/sp-foreign-empty && mkdir "$x_" && { test -d "$SPF_CONF"/sdl/include/. || set -- --disable-sdl ${1+"$@"}; } && case $version_ in 1.0pre[567]*) set x ${SPF_NO_NLS+--disable-i18n} ${1+"$@"} && shift;; *) :;; esac && autoconf_configure_ --enable-largefiles \ --with-extraincdir="$x_ $cppflags_" \ --with-extralibdir="$x_ $ldflags_" \ --with-x11incdir="$x_" --with-x11libdir="$x_" ${1+"$@"} } && pkg_after_install_() { data_dir_ . etc && data_dir_ share font && data_dir_ share Skin && maybelink_ "$prefix_"/bin gmplayer mplayer } && no_check_pkg_;; ## there are no tests multimedia) setup_pkg_ 2.1 srcdir: "$package_" selflib. libs: xfree86 && pkg_install_() { noop_commands_ ldconfig && sed_ Makefile "/CPP=/s%\$% COPTS='\$(COPTS)'%${nl_}s% -o root%%" && sed_ XPlaycd/hardware.c \ '/^#include $/a'"\\$nl_#include \\$nl_" && sed_ XPlaycd/scsi.c 's%^#include $%%' && sed_ McTools/McApp.c 's%^#include $%%' && x_=$prefix_/lib/X11/app-defaults && define_c_ config.h RESOURCE_PATH "\"$x_/\"" && set BUILD_SHARED=YES BINDIR="$prefix_"/bin DEFAULTDIR="$x_" \ MANDIR="$prefix_"/man/man1 LIBDIR="$prefix_"/lib LEXTRA="$ldflags_" \ CEXTRA="$cppflags_ $cflags_" ${1+"$@"} && make "$@" depend && make "$@" && make "$@" install && lib_links_ libMcTools.so };; multitee) setup_pkg_ 3.0 ignore_args. && pkg_install_() { gcc -c -O2 $cppflags_ $cflags_ fmt.c && gcc -c -O2 $cppflags_ $cflags_ getopt.c && gcc -c -O2 $cppflags_ $cflags_ multitee.c && gcc -c -O2 $cppflags_ $cflags_ ralloc.c && gcc -c -O2 $cppflags_ $cflags_ scan.c && gcc -c -O2 $cppflags_ $cflags_ sigdfl.c && gcc -c -O2 $cppflags_ $cflags_ sigsched.c && gcc -c -O2 $cppflags_ $cflags_ tee.c && ar cr sigdfl.a sigdfl.o && ar cr sigsched.a sigsched.o && gcc -s $cppflags_ $cflags_ $ldflags_ -o multitee multitee.o ralloc.o \ getopt.o fmt.o scan.o sigdfl.a sigsched.a && gcc -s $cppflags_ $cflags_ $ldflags_ -o tee tee.o getopt.o ralloc.o \ fmt.o && install_ "$prefix_"/bin multitee tee && install_ "$prefix_"/include sigdfl.h sigsched.h && install_ "$prefix_"/lib sigdfl.a sigsched.a && install_ "$prefix_"/man/man1 multitee.1 tee.1 && install_ "$prefix_"/man/man3 sigdfl.3 sigsched.3 };; mutella) setup_pkg_ '0.4.5' libs: 'ncurses readline zlib' && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '';; mutt) setup_pkg_ '1.4.2.2 1.4.2.1 1.4.2 1.4.1' libs: ncurses data. && nls_pkg_= && autoconf_pkg_ && pkg_after_install_() { data_dir_ . etc; };; naim) setup_pkg_ \ '0.11.8.2 0.11.8.1 0.11.8 0.11.7.3.1 0.11.7.2 0.11.7.1 0.11.7 0.11.6.7 0.11.6.6 0.11.6.5 0.11.6.4 0.11.6.3' \ libs: ncurses && autoconf_pkg_ && pkg_after_install_() { ln -s share/man "$prefix_"/; } && no_check_pkg_;; ## tests are interactive nasm) setup_pkg_ '0.98.39 0.98.38 0.98.35 0.98.34' && pkg_after_setup_() { mkdir "$prefix_"/bin "$prefix_"/man "$prefix_"/man/man1 } && autoconf_pkg_ && no_check_pkg_;; ## there are no tests ncurses) case $uname_s_ in SunOS|NetBSD|FreeBSD) x_=ld_run_path.;; #### LDFLAGS for gcc vs. ld *) :;; esac && setup_pkg_ '5.5 5.4 5.3' $x_ selflib. optlibs: gpm && autoconf_pkg_ && pkg_configure_() { noop_commands_ ldconfig && if test -d "$SPF_CONF"/gpm/include/. then set -- --with-gpm ${1+"$@"} else : fi && autoconf_configure_ --enable-overwrite --with-shared ${1+"$@"} } && pkg_after_install_() { ln -s . "$prefix_"/include/ncurses && chmod +x "$prefix_"/lib/*.so && set "$prefix_"/lib/libncursesw.* && if test -f "$1"; then ( cd "$prefix_"/lib && prj_unset nonwide_ && set lib[*]w.so lib*w.so && if test "$1 $2" = 'lib[*]w.so lib*w.so' then shift else : fi && shift && for x_ in ${1+"$@"}; do { nonwide_=`prj_sedarg1 's/w\.so$/.so/' "$x_"` && ln -s "$x_" "$nonwide_" } || return "$?" done && set lib[*]w.a lib*w.a && if test "$1 $2" = 'lib[*]w.a lib*w.a' then shift else : fi && shift && prj_unset nonwide_ && for x_ in ${1+"$@"}; do { nonwide_=`prj_sedarg1 's/w\.a/.a/' "$x_"` && ln -s "$x_" "$nonwide_" } || return "$?" done ) else : fi } && no_check_pkg_;; ## there are no tests net-tools) setup_pkg_ 1.60 ignore_args. && pkg_after_setup_() { mkdir "$prefix_"/bin && cflags_="$cppflags_ -D_GNU_SOURCE -O2 -Wall -g $cflags_" && ldflags_="$cflags_ $ldflags_" } && pkg_install_() { { if prj_is_set SPF_NO_NLS then echo # n i18n else echo y # i18n fi && echo && # y AFUNIX echo && # y AFINET echo && # n AFINET6 echo && # y AFIPX echo && # y AFATALK echo && # y AFAX25 echo && # y AFNETROM echo && # n AFROSE echo && # y AFX25 echo && # n AFECONET echo && # n AFDECnet echo && # n AFASH echo && # y HWETHER echo && # y HWARC echo && # y HWSLIP echo && # y HWPPP echo && # y HWTUNNEL echo && # y HWSTRIP echo && # y HWTR echo && # y HWAX25 echo && # n HWROSE echo && # y HWNETROM echo && # y HWX25 echo && # y HWFR echo && # n HWSIT echo && # n HWFDDI echo && # n HWHIPPI echo && # n HWASH echo && # y HAVE_HWHDLCLAPB echo && # y HWIRDA echo && # n HWEC echo && # n FW_MASQUERADE echo && # n IP_TOOLS echo # n MII } > sp-foreign-input && make COPTS="$cflags_" LOPTS="$ldflags_" config < sp-foreign-input && make COPTS="$cflags_" LOPTS="$ldflags_" && make COPTS="$cflags_" LOPTS="$ldflags_" BASEDIR="$prefix_" update && ln -s usr/share/man "$prefix_"/man ## there are no tests };; netpbm) setup_pkg_ '10.25 10.24 10.18.17' && pkg_after_setup_() { ldflags_="$ldflags_ -Wl,-R,$prefix_/lib" && for x_ in libpng tiff jpeg zlib; do { confdir_ "$x_" && ldflags_=$ldflags_,-R,$SPF_CONF/$x_/lib } || return "$?" done && cflags_="-O3 -Wall -Wno-uninitialized -Wmissing-declarations $cflags_" && cflags_="$cppflags_ -pedantic $cflags_" } && pkg_install_() { x_= && define_make_ x_ CFLAGS_SHLIB -fPIC && define_make_ x_ TIFFHDR_DIR "$SPF_CONF"/tiff/include && define_make_ x_ TIFFLIB "$SPF_CONF"/tiff/lib/libtiff.so && define_make_ x_ JPEGHDR_DIR "$SPF_CONF"/jpeg/include && define_make_ x_ JPEGLIB "$SPF_CONF"/jpeg/lib/libjpeg.so && define_make_ x_ PNGHDR_DIR "$SPF_CONF"/libpng/include && define_make_ x_ PNGLIB "$SPF_CONF"/libpng/lib/libpng.so && define_make_ x_ ZHDR_DIR "$SPF_CONF"/zlib/include && define_make_ x_ ZLIB "$SPF_CONF"/zlib/lib/libz.so && if test SunOS = "$uname_s_"; then define_make_ x_ NETWORKLD '-lsocket -lnsl' && define_make_ x_ NEED_RUNTIME_PATH Y && define_make_ x_ LDSHLIB '-Wl,-Bdynamic,-G,-h,$(SONAME)' && define_make_ x_ LEX lex && define_make_ x_ TIFFLIB_LDFLAGS -lz && if test "$version_" = 10.24; then sed_ editor/pamflip.c ' s/char \* cursor/&, * tok_start/ s/cursor =/tok_start =/ s/strsep(\&cursor, ",");/strtok_r(tok_start, ",", \&cursor); tok_start=NULL;/ ' else : fi else : fi && cp -p Makefile.config.in Makefile.config && sed_ Makefile.config "$x_" && { echo && for x_ in "CFLAGS = $cflags_" "LDFLAGS = $ldflags_" ${1+"$@"}; do prj_echo "$x_" || return "$?" done } >> Makefile.config && if test "$version_" = 10.25 then sed_ lib/libpbm3.c "/for (col =0/i\\${nl_}int col;\\$nl_" else : fi && make pkgdir="$prefix_"/tmp default package && echo \ "You're using sp-foreign, so you don't need to run installnetpbm." && cd "$prefix_" && mv tmp/* . && rm -f README VERSION pkginfo link/*.so && mv -f misc/* link/* bin/doc.url lib/ && rmdir misc link tmp && lib_links_ libnetpbm.so ## there are no tests };; normalize) setup_pkg_ 0.7.6 optlibs: 'audiofile flac glib gtk+ lame libmad' && nls_pkg_= && autoconf_pkg_;; nullmailer) setup_pkg_ '1.01 1.00 1.00RC7' data. && pkg_after_setup_() { id nullmail > /dev/null; } && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_ && pkg_after_install_() { make install-root && data_dir_ . etc && data_dir_ . var };; octave) setup_pkg_ '2.1.57 2.1.52 2.1.51' libs: 'ncurses readline' optlibs: fftw && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_;; ogle) setup_pkg_ '0.9.2 0.9.1 0.8.5' \ libs: 'a52dec jpeg libdvdcss libdvdread libxml2 libmad xfree86 zlib' && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; opencdk) setup_pkg_ '0.5.8 0.5.7 0.5.5 0.5.4 0.5.3' libs: libgcrypt optlibs: zlib && autoconf_pkg_ && set -- --with-libgcrypt-prefix="$SPF_CONF"/libgcrypt && pkg_before_configure_() { noop_commands_ ldconfig; };; openldap) setup_pkg_ \ '2.3.27 2.3.24 2.3.20 2.3.19 2.3.17 2.3.11 2.2.30 2.2.26 2.2.24 2.2.23 2.2.20 2.2.19 2.2.18 2.2.17 2.2.15 2.1.30 2.1.29 2.1.28 2.1.27 2.1.25 2.1.24 2.1.23 2.1.22 2.1.21 2.1.20 2.1.19 2.1.17 2.1.16' \ libs: 'db cyrus-sasl openssl readline ncurses' && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_ && set -- --enable-dynamic ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_before_make_() { make depend; } && pkg_check_() { make test; };; openssh) setup_pkg_ \ '4.3p2 4.3p1 4.2p1 4.1p1 4.0p1 3.9p1 3.8.1p1 3.8p1 3.7.1p2 3.7.1p1 3.7p1 3.6.1p2 3.6.1p1 3.6p1' \ libs: 'openssl zlib' optdirs: xfree86 data. && autoconf_pkg_ && if prj_is_set SPF_BARE; then set -- --without-pam --without-tcp-wrappers --disable-libutil ${1+"$@"} else : fi && #optlibs: linux-pam pwdb --with-pam set -- --with-ssl-dir="$SPF_CONF"/openssl \ --with-zlib="$SPF_CONF"/zlib --with-privsep-path="$prefix_"/privsep \ --with-md5-passwords --with-shadow --without-skey --without-kerberos4 \ --without-afs --with-mantype=man --with-default-path="$path_" \ ${1+"$@"} && pkg_configure_() { mkdir "$prefix_"/privsep && prj_u2 prj_set path_tmp_ "$PATH" && prj_x2 prj_set PATH "$SPF_CONF/xfree86/bin:$PATH" && if prj_which x_ xauth 2> /dev/null then set -- --with-xauth="$x_" ${1+"$@"} else : fi && prj_x2 prj_set PATH "$path_tmp_" && autoconf_configure_ ${1+"$@"} } && pkg_after_install_() { data_dir_ . etc && x_=$prefix_/bin/ssh && { test -u "$x_" || chmod +r "$x_"; } && # Solaris arp doesn't understand -n if [ "$uname_s_" = SunOS ] && test -f "$prefix_"/etc/ssh_prng_cmds then sed_ "$prefix_"/etc/ssh_prng_cmds 's%^\("arp .*-n\)%#\1%' else : fi #useradd -g 65534 -c 'sshd privilege separation' -d /nil/user/sshd/home \ # -s /nil/user/sshd/shell sshd } && no_check_pkg_;; ## there are no tests openssl) setup_pkg_ '0.9.7j 0.9.7i 0.9.7h 0.9.7g 0.9.7f 0.9.7e 0.9.7d 0.9.7c 0.9.7b 0.9.7a 0.9.7' \ selflib. libs: zlib data. && pkg_install_() { if [ "$uname_s_" = SunOS ] then set no-shared no-asm ${1+"$@"} else set shared ${1+"$@"} fi && ./config --prefix="$prefix_" threads ${1+"$@"} && set make CFLAG="$cppflags_ -O $cflags_ $ldflags_" \ SHARED_LDFLAGS="$ldflags_" && "$@" && "$@" install && if [ "$version_" = 0.9.7c ] then chmod 755 "$prefix_"/lib/pkgconfig/. else : fi && ln -s ssl/man "$prefix_"/ && data_dir_ ssl certs && data_dir_ ssl private && data_file_ ssl openssl.cnf && "$@" test };; pango) # optlibs http://cairographics.org/ setup_pkg_ '1.8.2 1.8.1 1.6.0 1.4.0 1.2.5 1.2.3' libs: 'glib xfree86' \ optlibs: 'fontconfig freetype zlib' && x_pkg_= && autoconf_pkg_ && pkg_after_setup_() { mkdir "$prefix_"/include && ln -s . "$prefix_"/include/pango-1.0 } && pkg_before_configure_() { noop_commands_ ldconfig; };; parted) setup_pkg_ '1.7.1 1.7.0 1.6.23 1.6.22 1.6.21 1.6.15 1.6.12 1.6.11 1.6.9 1.6.6 1.6.5 1.6.4 1.6.3 1.4.24' \ libs: 'readline ncurses e2fsprogs' && nls_pkg_= && autoconf_pkg_ && set -- --with-readline ${1+"$@"} && pkg_before_configure_() { noop_commands_ ldconfig && case $version_ in 1.[46].*) fix_ltconfig_;; *) :;; esac };; patch) setup_pkg_ '2.5.8 2.5.4' && autoconf_pkg_;; pciutils) setup_pkg_ '2.1.11' data. && pkg_install_() { make ROOT="$prefix_" PREFIX="$prefix_" LDFLAGS="$ldflags_" \ OPT="$cppflags_ -O2 -fomit-frame-pointer $cflags_" ${1+"$@"} \ all install && data_dir_ . share ## there are no tests };; pcmcia-cs) setup_pkg_ '3.2.6 3.2.4' && pkg_install_() { ln -s . "$prefix_"/usr && ./Configure -n --kernel="$SPF_PREFIX"/src/linux --target="$prefix_" \ --moddir="$prefix_"/modules --uflags="$cppflags_ $cflags_" --notrust \ --cardbus --nopnp --apm ${1+"$@"} && define_make_ x_ MANDIR /man/ && sed_ config.mk "$x_" && make all && make install ## there are no tests };; pcmciautils) ## needs flex-2.5.4a setup_pkg_ '011 010' libs: 'sysfsutils' && pkg_install_() { rungcc_ && cppflags_=$cppflags_' -DPCMCIAUTILS_VERSION=\"$(VERSION)\"' && x_=`pwd` && make prefix="$prefix_" pcmciaconfdir='${etcdir}/pcmcia' \ mandir='${prefix}/man' GCCINCDIR="$x_"/src \ CFLAGS="$cppflags_ $cflags_" LDFLAGS="$cppflags_ $cflags_ $ldflags_" \ ${1+"$@"} all install };; pcre) setup_pkg_ '6.5 6.4 5.0 4.5 4.4' && case $version_ in [45].*) :;; *) prj_x2 prj_set SPF_GCC_GCCLIB '';; esac && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; pdksh|pdksh-sh) setup_pkg_ 5.2.14 srcdir: pdksh-"$version_" && autoconf_pkg_ && set -- --enable-path="$path_" ${1+"$@"} && if [ "$package_" = pdksh-sh ] then set -- --enable-shell=sh ${1+"$@"} else : fi;; perl) setup_pkg_ '5.8.7 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.0' dirs: gdbm && pkg_install_() { set -- -de ${1+"$@"} && rungcc_ && x_=$conflibc_/lib && if test -d "$x_"/.; then set -- -Aglibpth="$x_" ${1+"$@"}; else :; fi && x_=$SPF_CONF/gdbm && cflags_="$cppflags_ -O2 $cflags_" && ldflags_="$cflags_ $ldflags_ -Wl,-R,$x_/lib" && # 5.8.2: don't need -Uinstallusrbinperl # 5.8.4: path => pathexp ./Configure -Dprefix="$prefix_" -Uinstallusrbinperl \ -Dlocincpth="$x_"/include -Dloclibpth="$x_"/lib \ -Aprepend:cppflags="$cppflags_" -Accflags="$cflags_" \ -Aprepend:ldflags="$ldflags_" -Dusemorebits ${1+"$@"} && if test -d "$conflibc_"/. then sed_ ext/Errno/Errno_pm.PL 's%/usr\(/include\)%'"$conflibc_\\1%" else : fi && make all install && ( if test -d "$conflibc_"/include/. then cd "$conflibc_"/include else cd /usr/include fi && "$prefix_"/bin/h2ph *.h && for x_ in */; do if test -d "$x_". then "$prefix_"/bin/h2ph "$x_"*.h else : fi || exit "$?" done ) && chmod +x installhtml && for x_ in 1 2; do ./installhtml --recurse --htmldir="$prefix_"/html \ --libpods=perlfunc:perlguts:perlvar:perlrun:perlop \ --splithead=pod/perlipc --splititem=pod/perlfunc || return "$?" done ##cd pod; make tex; process-latex-files } && pkg_check_() { utc_ && make test };; pkgconfig) setup_pkg_ '0.15.0 0.12.0' && autoconf_pkg_;; plotutils) setup_pkg_ 2.4.1 libs: xfree86 optlibs: 'flex libpng zlib' && autoconf_pkg_ && pkg_before_configure_() { fix_ltconfig_ && fix_ltconfig_ libxmi && noop_commands_ ldconfig };; polipo) setup_pkg_ '0.9.8 0.9.7 0.9.6 0.9.5 0.9.4 0.9.3 0.9.2 0.9.1' && pkg_install_() { if [ "$uname_s_" = SunOS ]; then cppflags_="-DSVR4 $cppflags_" && set LDLIBS='-lsocket -lnsl -lresolv' ${1+"$@"} else : fi && make PREFIX="$prefix_" LOCAL_ROOT="$prefix_"/localroot \ PLATFORM_DEFINES="$cppflags_ $cflags_" LDFLAGS="$ldflags_" ${1+"$@"} \ all install };; popt) setup_pkg_ '1.9 1.7 1.6.4' && nls_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; };; potrace) setup_pkg_ '1.7 1.5' libs: zlib && autoconf_pkg_;; ppp) setup_pkg_ '2.4.2' data. && pkg_install_() { ./configure && x_='/^ *FILTER *= *y/s%^%#%' && rungcc_ && if test -d "$conflibc_"/. then x_=$x_$nl_'s%/usr/\(include\|lib\)%'$conflibc_'/\1%' else : fi && sed_ pppd/Makefile "$x_" && cppflags_="-D_ROOT_PATH=\"\\\"$prefix_\\\"\" $cppflags_" && make INSTALL=install BINDIR="$prefix_/sbin" INCDIR="$prefix_/include" \ MANDIR="$prefix_/man" ETCDIR="$prefix_/etc/ppp" LIBDIR="$prefix_/lib" \ COPTS="$cppflags_ $cflags_" \ MFLAGS="BINDIR='\$(BINDIR)' INCDIR='\$(INCDIR)' MANDIR='\$(MANDIR)' ETCDIR='\$(ETCDIR)' COPTS='\$(COPTS)'" \ ${1+"$@"} all install && data_dir_ . etc #mknod -m 0600 /dev/ppp c 108 0 ## there are no tests };; procps) setup_pkg_ '3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 3.2.0 3.1.15 3.1.14' \ selflib. libs: ncurses && pkg_after_setup_() { ln -s . "$prefix_"/usr && ln -s . "$prefix_"/share } && pkg_install_() { make DESTDIR="$prefix_" CPPFLAGS="$cppflags_" CFLAGS="-O2 $cflags_" \ LDFLAGS="$ldflags_" install='install -D' ldconfig=true ${1+"$@"} \ all install ## there are no tests };; psmisc) setup_pkg_ '21.5 21.4 21.3 21.2 20.2' libs: ncurses && nls_pkg_= && autoconf_pkg_ && pkg_after_install_() { maybelink_ "$prefix_"/bin pidof killall; };; ptyget) setup_pkg_ 0.50 ignore_args. && pkg_install_() { sed_ conf-home.h "s%/usr/local%$prefix_%" && define_make_ x_ CC "'gcc -O2 $cppflags_ $cflags_'" && define_make_ x_ LD "'gcc -s $cppflags_ $cflags_ $ldflags_'" && sed_ conf-cc.sh "$x_" && fix_errno_ error.h && make && make setup && install_ "$prefix_"/man/man1 *.1 && install_ "$prefix_"/man/man8 *.8 && rm -rf "$prefix_"/man/cat* ## there are no tests };; publicfile) setup_pkg_ 0.52 ignore_args. && djb_pkg_ && pkg_after_install_() { cur_link_ /usr/local; };; #pwdb) doit_() { # cd "$packver_" # checkversion_ 0.61.2 # ln -s . "$prefix_"/usr # mkdir "$prefix_"/lib # make PPFIX="$prefix_" CC="gcc $cppflags_ $cflags_ $ldflags_" \ # LDCONFIG=true ${1+"$@"} all install # cd "$prefix_"/lib # x_=libpwdb.so # maybelink_ "$x_".0 "$x_".0.* # maybelink_ "$x_".0.61 "$x_".0.61.* #};; pymsgauth) setup_pkg_ 2.1.0 ignore_args. && pkg_install_() { mkdir "$prefix_"/bin "$prefix_"/doc "$prefix_"/lib && python -c 'import ConfParser; import pymsgauth' && chmod -R ugo+r . && chmod +x pymsgauth-clean pymsgauth-confirm pymsgauth-mail && cp -p pymsgauth.html pymsgauth.css "$prefix_"/doc && cp -p ConfParser.py ConfParser.pyc pymsgauth.py pymsgauth.pyc \ pymsgauth-clean pymsgauth-confirm pymsgauth-mail "$prefix_"/lib && cd "$prefix_"/bin && ln -s ../lib/pymsgauth-* . };; python) setup_pkg_ '2.4.3 2.4.2 2.4.1 2.4 2.3.4 2.3.3 2.3.2 2.3.1 2.3' \ srcdir: Python-"$version_" data. selflib. \ libs: 'ncurses openssl readline gdbm db zlib' && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && set -- --enable-shared ${1+"$@"} && pkg_before_make_() { module_() { grep < Modules/Setup.config "^$cws_*$1$cws_" > /dev/null 2>&1 || \ prj_echo "$1 $2" } && { module_ _weakref _weakref.c && module_ array arraymodule.c && module_ cmath 'cmathmodule.c -lm' && module_ math 'mathmodule.c -lm' && module_ operator operator.c && module_ struct structmodule.c && module_ time 'timemodule.c -lm' && echo '*shared*' && module_ _locale _localemodule.c && module_ _socket socketmodule.c && x_=$SPF_CONF/openssl && x_="-I$x_/include -I$x_/include/openssl -L$x_/lib -Wl,-R,$x_/lib" && module_ _ssl "_ssl.c -DUSE_SSL $x_ -lssl -lcrypto" && module_ _testcapi _testcapimodule.c && module_ audioop audioop.c && module_ binascii binascii.c && x_=$SPF_CONF/db && x_="-I$x_/include -L$x_/lib -Wl,-R,$x_/lib" && module_ _bsddb "_bsddb.c -ldb $x_" && module_ cPickle cPickle.c && module_ crypt 'cryptmodule.c -lcrypt' && module_ cStringIO cStringIO.c && x_=$SPF_CONF/ncurses && x_="-I$x_/include -L$x_/lib -Wl,-R,$x_/lib" && module_ _curses "_cursesmodule.c $x_ -lncurses" && module_ _curses_panel "_curses_panel.c $x_ -lpanel -lncurses" && #module_ dbm dbmmodule.c && module_ dl dlmodule.c && module_ fcntl fcntlmodule.c && module_ fpectl fpectlmodule.c && module_ fpetest fpetestmodule.c && x_=$SPF_CONF/gdbm && x_="-I$x_/include -L$x_/lib -Wl,-R,$x_/lib" && module_ gdbm "gdbmmodule.c $x_ -lgdbm" && module_ grp grpmodule.c && module_ imageop imageop.c && if [ "$uname_s_" = Linux ] then module_ linuxaudiodev linuxaudiodev.c else : fi && module_ md5 'md5module.c md5c.c' && module_ mmap mmapmodule.c && #x_=$SPF_CONF/gmp && #module_ mpz "mpzmodule.c -I$x_/include -L$x_/lib -lgmp" && if [ "$uname_s_" = SunOS ] then module_ nis 'nismodule.c -lnsl' else : fi && module_ parser parsermodule.c && module_ pwd pwdmodule.c && #...=/usr/local/src/expat && #module_ pyexpat pyexpat.c -I.../xmlparse -L... -lexpat & x_=$SPF_CONF/readline && prj_u2 prj_set y_ "$SPF_CONF"/ncurses && x_="-I$x_/include -L$x_/lib -L$y_/lib -Wl,-R,$x_/lib,-R,$y_/lib" && module_ readline "readline.c $x_ -lreadline -lncurses" && module_ resource resource.c && module_ rgbimg rgbimgmodule.c && case $version_. in 2.3.*) module_ rotor rotormodule.c;; *) :;; esac && module_ select selectmodule.c && module_ sha shamodule.c && if [ "$uname_s_" = SunOS ] then module_ sunaudiodev sunaudiodev.c else : fi && module_ syslog syslogmodule.c && module_ termios termios.c && module_ timing timingmodule.c && module_ unicodedata unicodedata.c && case $version_. in 2.3.*) module_ xreadlines xreadlinesmodule.c.c;; *) :;; esac && x_=$SPF_CONF/zlib && x_="-I$x_/include -L$x_/lib -Wl,-R,$x_/lib" && module_ zlib "zlibmodule.c $x_ -lz" } > Modules/Setup.local && sleep 1 && touch Modules/Setup.local ## must be newer than something } && pkg_after_install_() { lib_links_ libpython2.3.so && spf_current_ "$prefix_"/lib python && data_dir_ lib/spf-current site-packages && ( cd Misc && install_ "$prefix_/$site_lisp" python-mode.el ) } && pkg_check_() { utc_ && make test \ TESTOPTS='-l -u largefile -x test_linuxaudiodev -x test_sunaudiodev' };; qmail) setup_pkg_ 1.03 data. ignore_args. && pkg_install_() { sed_ conf-qmail "1c\\$nl_$prefix_\\$nl_" && sed_ conf-cc "1c\\${nl_}gcc -O2 $cppflags_ $cflags_\\$nl_" && sed_ conf-ld "1c\\${nl_}gcc -s $cppflags_ $cflags_ $ldflags_\\$nl_" && sed_ conf-spawn "1c\\${nl_}255\\$nl_" && fix_errno_ error.h && make && make man setup check && ./config && rm -rf "$prefix_"/man/cat* && data_dir_ . alias && data_dir_ . control && data_dir_ . users && cur_link_ /var };; qmailanalog) setup_pkg_ 0.70 ignore_args. && djb_pkg_ && pkg_after_install_() { rm -rf "$prefix_"/man/cat* && cur_link_ /usr/local };; qtools) setup_pkg_ 0.56 dirs: qmail ignore_args. && pkg_after_setup_() { x_=$SPF_CONF/ezmlm-idx-bin && prj_u2 prj_set ezbin_ "$SPF_PREFIX"/ezmlm-idx/bin && { test -d "$x_"/. || { needfile "$ezbin_"/. && mkdir -p "$SPF_CONF" && ln -s "$ezbin_" "$x_" } } } && pkg_before_make_() { sed_ conf-ezmlm "1c\\$nl_$x_\\$nl_" && sed_ conf-qmail "1c\\$nl_$SPF_CONF/qmail\\$nl_" } && djb_pkg_;; readline) case $uname_s_ in SunOS) prj_x2 prj_set SPF_GCC_GCCLIB '';; NetBSD) x_=ld_run_path.;; ### LDFLAGS is passed to ld, not gcc, here *) ;; esac && setup_pkg_ '5.1 5.0 4.3' $x_ libs: ncurses && autoconf_pkg_ && set -- --with-curses ${1+"$@"} && if [ "$version_" = 4.3 ]; then pkg_before_configure_() { sed_ shlib/Makefile.in 's,\(@SHLIB_XLDFLAGS@\),@LDFLAGS@ \1,' } else : fi && pkg_after_install_() { case $version_ in 4.3|5.0) lib_links_ libhistory.so && lib_links_ libreadline.so;; *) :;; esac && chmod +x "$prefix_"/lib/*.so };; reiserfsprogs) setup_pkg_ '3.6.19 3.6.18 3.6.17 3.6.16' optlibs: e2fsprogs && autoconf_pkg_;; rpm) setup_pkg_ '4.0.3' data. libs: 'bzip2 popt zlib' && nls_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_after_install_() { mkdir -p "$prefix_"/var/tmp && { test -f "$prefix_"/var/lib/rpm/Packages || "$prefix_"/bin/rpm --initdb } && data_dir_ . src && data_dir_ . var } && no_check_pkg_;; ### "make check" operates on the global database rsync) if prj_match '2.6.0|2.5.[67]' "$version_" then x_= else x_=data. fi && setup_pkg_ '2.6.8 2.6.7 2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.7 2.5.6' \ libs: popt $x_ && if [ "$x_" = data. ]; then set -- --with-rsyncd-conf="$prefix_"/etc/rsyncd.conf && pkg_after_install_() { mkdir "$prefix_"/etc && : >> "$prefix_"/etc/rsyncd.conf && data_dir_ . etc } else : fi && if prj_which x_ ssh 2> /dev/null then prj_x2 prj_set rsync_enable_ssh_tests yes else : fi && if prj_not prj_match '2.5.*|2.6.[01234]' "$version_" && prj_is_set SPF_NO_NLS then set -- --disable-locale ${1+"$@"} else : fi && autoconf_pkg_;; safecat) setup_pkg_ '1.12 1.11' ignore_args. && djb_pkg_ && pkg_before_configure_() { touch conf-home && sed_ conf-root "1c\\${nl_}$prefix_\\${nl_}" } && pkg_after_install_() { rm -rf "$prefix_"/man/cat*; };; samba) setup_pkg_ \ '3.0.23b 3.0.23a 3.0.23 3.0.21c 3.0.21b 3.0.21a 3.0.21 3.0.20b 3.0.20a 3.0.20 3.0.14a 3.0.13 3.0.12 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.4 3.0.3 3.0.2a 3.0.2 3.0.1 3.0.0 2.2.12 2.2.11 2.2.9 2.2.8a 2.2.8 2.2.7a 2.2.7 2.2.6' \ srcdir: "$packver_"/source libs: 'openssl popt readline ncurses' data. && #### optlibs: cups autoconf_pkg_ && case $version_ in 2.*);; *) set -- --enable-static ${1+"$@"};; esac && set -- --with-smbmount --with-ssl ${1+"$@"} && pkg_after_install_() { data_file_ lib smb.conf; } && no_check_pkg_;; #### tests require DejaGNU screen) setup_pkg_ '4.0.2 3.9.15' data. libs: ncurses && autoconf_pkg_ && set -- --disable-socket-dir ${1+"$@"} && if prj_not prj_is_set SPF_NO_NLS then set -- --enable-locale ${1+"$@"} else : fi && pkg_after_install_() { mkdir "$prefix_"/etc && cp -p etc/etcscreenrc "$prefix_"/etc/screenrc && data_dir_ . etc };; sdl) setup_pkg_ '1.2.11 1.2.10 1.2.9 1.2.8 1.2.7 1.2.6' \ srcdir: SDL-"$version_" libs: xfree86 && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && case $version_ in 1.2.[6789]) :;; *) no_check_pkg_;; esac;; sed) setup_pkg_ '4.1.4 4.1.2 4.1.1 4.1 4.0.9 4.0.7 4.0.6 4.0.5 4.0 3.02a' && nls_pkg_= && autoconf_pkg_;; serialmail) setup_pkg_ 0.75 dirs: qmail ignore_args. && djb_pkg_ && pkg_before_make_() { sed_ conf-qmail "1c\\${nl_}$SPF_CONF/qmail\\${nl_}" } && pkg_after_install_() { rm -rf "$prefix_"/man/cat*; };; setserial) setup_pkg_ 2.17 && pkg_after_setup_() { ln -s . "$prefix_"/usr && mkdir "$prefix_"/bin "$prefix_"/man "$prefix_"/man/man8 } && autoconf_pkg_ && pkg_install_() { make DESTDIR="$prefix_" install; } && no_check_pkg_;; ## there are no tests shadow) setup_pkg_ '4.0.7 4.0.6 4.0.5 4.0.4.1' && nls_pkg_= && autoconf_pkg_ && set -- --enable-shared --without-libcrack --without-libpam ${1+"$@"} && pkg_before_configure_() { case $version_ in 4.0.5|4.0.4.1) sed_ libmisc/xmalloc.c \ 's%^\(extern \)char\( \*malloc (\)\();\)$%\1void\2size_t\3%';; *) :;; esac && noop_commands_ ldconfig };; sharutils) setup_pkg_ '4.6 4.5 4.3.78 4.3.77 4.2.1' && nls_pkg_= && autoconf_pkg_;; shttpd) setup_pkg_ 0.53 ignore_args. && djb_pkg_ && pkg_after_install_() { cur_link_ /usr/local; };; slang) setup_pkg_ 1.4.9 optlibs: ncurses && autoconf_pkg_ && prj_x2 prj_set FINKPREFIX "$SPF_CONF"/ncurses && pkg_before_configure_() { cflags_="$cppflags_ $cflags_"; } && pkg_install_() { make elf && make install install-elf install-links && chmod +x "$prefix_"/lib/*.so && ( cd slsh && exec make slsh install ) } && pkg_check_() { make runtests; };; smake) prj_capture x_ prj_sedarg1 's%a[0-9]*$%%' "$version_" && setup_pkg_ '1.2a23 1.2a22 1.2a21 1.2a20' \ srcdir: "$package_-$x_" ignore_args. && pkg_install_() { autoconf_env_ && ( cd psmake && exec ./MAKE-all ) && x_=`id -g` && psmake/smake INS_BASE="$prefix_" DEFINSUSR=0 DEFINSGRP="$x_" \ CPPOPTX="$cppflags_" COPTX="$cflags_" LDOPTX="$ldflags_" all install ## there are no tests };; smartmontools) setup_pkg_ '5.33 5.32 5.31 5.30 5.29 5.26' data. && autoconf_pkg_ && pkg_after_install_() { data_file_ etc smartd.conf; };; sox) setup_pkg_ '12.18.1 12.17.9 12.17.8 12.17.7 12.17.6 12.17.5 12.17.4 12.17.3' \ optlibs: 'alsa-lib lame libmad libvorbis libogg' && autoconf_pkg_ && pkg_check_() { ( case $version_ in 12.17.[345]) :;; *) cd src;; esac && ./tests.sh && ./testall.sh ) };; spamassassin) setup_pkg_ 2.63 srcdir: Mail-SpamAssassin-"$version_" dirs: perl && perl_pkg_ && set PERL_BIN="$SPF_CONF"/perl/bin/perl SYSCONFDIR="$prefix_"/etc \ ${1+"$@"};; splay) setup_pkg_ 0.9.5.2 && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '';; strace) setup_pkg_ '4.5.14 4.5.9 4.5.8 4.5.6 4.5.3 4.5.1' && autoconf_pkg_;; stunnel) setup_pkg_ '4.14 4.12 4.11 4.10 4.09 4.08 4.07 4.06 4.05' libs: openssl && autoconf_pkg_ && set -- --enable-dh --with-ssl="$SPF_CONF"/openssl ${1+"$@"} && case $version_ in 4.0*|4.10) :;; *) set -- --disable-libwrap ${1+"$@"};; esac && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_make_() { { echo . && echo . echo . && echo . && echo . && hostname } > sp-foreign-input && make < sp-foreign-input } && pkg_install_() { make install < sp-foreign-input; };; sudo) setup_pkg_ '1.6.8p12 1.6.8p11 1.6.8p9 1.6.8p8 1.6.8p7 1.6.8p6 1.6.8p5 1.6.8p4 1.6.8p2 1.6.8p1 1.6.8 1.6.7p5' \ data. && autoconf_pkg_ && set -- --with-stow && pkg_after_install_() { data_dir_ . etc; };; sysfsutils) setup_pkg_ 1.3.0 && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_before_make_() { x_= && define_make_ x_ includedir "$prefix_"/include/sysfs && sed_ Makefile "$x_" };; t1lib) setup_pkg_ '5.1.0 5.0.2 5.0.0 1.3.1' libs: xfree86 data. && x_pkg_= && autoconf_pkg_ && pkg_before_configure_() { noop_commands_ ldconfig; } && pkg_make_() { make without_doc; } && pkg_after_install_() { data_file_ share/t1lib t1lib.config && chmod +x "$prefix_"/lib/*.so } && no_check_pkg_;; ## there are no tests t1utils) setup_pkg_ '1.32 1.28' && autoconf_pkg_;; tar) setup_pkg_ '1.15.1 1.14 1.13.92 1.13.25' && nls_pkg_= && autoconf_pkg_;; tcl) setup_pkg_ '8.4.9 8.4.7 8.4.6 8.4.2 8.4.1' \ srcdir: "$package_$version_"/unix && autoconf_pkg_ && set -- --enable-threads --enable-64bit ${1+"$@"} && case $version_ in 8.4.[1-6]) :;; *) prj_x2 prj_set SPF_GCC_GCCLIB '';; esac && pkg_before_configure_() { cflags_="$cppflags_ $cflags_"; } && pkg_after_install_() { ( cd "$prefix_"/bin && maybelink_ . tclsh tclsh[0123456789]* ) } && pkg_check_() { utc_; make test; };; tcp-wrappers) setup_pkg_ '7.6-ipv6.4 7.6-ipv6.2' srcdir: tcp_wrappers_"$version_" && pkg_install_() { if prj_which x_ gcc 2> /dev/null then sed_ Makefile "1i\\${nl_}CC=gcc\\$nl_" else : fi && if [ "$#" = 0 ]; then case $uname_s_ in Linux) x_=linux;; SunOS) x_=sunos5 && set IPV6=-DHAVE_IPV6 ${1+"$@"};; NetBSD) x_=netbsd;; *) x_=generic;; esac else x_=$1 && shift fi && prj_unset daemondir_ && for daemondir_ in /command /usr/sbin /usr/libexec /usr/etc /etc; do if test -f "$daemondir_"/telnetd || test -f "$daemondir_"/in.telnetd then break else : fi || return "$?" done && sed_ Makefile "s%^CFLAGS$cws_*=%& $cppflags_ $cflags_ $ldflags_%" && make REAL_DAEMON_DIR="$daemondir_" ${1+"$@"} "$x_" && install_ "$prefix_"/bin safe_finger tcpd tcpdchk tcpdmatch try-from };; ## there are no tests tcpdump) setup_pkg_ '3.9.4 3.8.3 3.8.1 3.7.1' libs: libpcap optlibs: openssl && autoconf_pkg_ && set -- --enable-ipv6 ${1+"$@"} && pkg_before_configure_() { rungcc_ && if test -d "$conflibc_"/. then sed_ configure 's%/usr\(/include/netinet\)%'"$conflibc_\\1%" else : fi && x_='s%^\(for dir in\)\( .* /usr/local/ssl\)%\1 '$SPF_CONF'/openssl\2%' && sed_ configure "$x_" && cflags_="$cppflags_ $cflags_" } && no_check_pkg_;; ## there are no tests tcsh) setup_pkg_ '6.13.00 6.12.00 6.11.00' libs: ncurses && autoconf_pkg_ && pkg_install_() { make install install.man; } && no_check_pkg_;; ## there are no tests tetex) setup_pkg_ 2.0.2 srcdir: tetex-src-"$version_" selflib. \ libs: 'libpng ncurses t1lib xfree86 zlib' dirs: tetex-texmf && x_pkg_= && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && #### VARTEXFONTS #### tetex-texmf #### w3c-libwww --with-system-wwwlib #### --enable-ipc set -- --disable-multiplatform --without-texinfo --enable-shared --with-x \ --with-system-ncurses --with-system-pnglib --with-system-t1lib \ --with-system-zlib ${1+"$@"} && pkg_after_setup_() { need_writable_dir_ "$SPF_CONF"/tetex-texmf; } && pkg_before_configure_() { noop_commands_ ldconfig && fix_ltconfig_ config && fix_ltconfig_ libs/libwww/config && mkdir "$prefix_"/share && ln -s "$SPF_CONF"/tetex-texmf "$prefix_"/share/texmf } && pkg_after_install_() { PATH=$prefix_/bin:$PATH && export PATH && ( cd "$prefix_"/share/texmf && exec mktexlsr ) && for x_ in cmbxti8 cmbxti14 cmcsc7 cmcsc12 cmtt17 cmbx14 cmbx17 cmtt6 \ cmbxti5 cmti6 cmti5 cmss5 cmss6 cmss7 ecbm14 ecrm12; do mktextfm "$x_" || return "$?" done };; texinfo) setup_pkg_ '4.8 4.7 4.6 4.5 4.4 4.3 4.2' libs: ncurses && nls_pkg_= && autoconf_pkg_;; tiff) if test "$version_" = 3.6.1 then setup_pkg_ '3.6.1' srcdir: "${package_}-v${version_}" \ ld_run_path. selflib. libs: 'jpeg zlib' else setup_pkg_ '3.8.0 3.7.3 3.7.2 3.7.1 3.7.0' libs: 'jpeg zlib' fi && autoconf_pkg_ && if test "$version_" = 3.6.1; then pkg_before_configure_() { prj_echo " JPEG=yes ZIP=yes HTML=yes NONINTERACTIVE=yes DIR_BIN=$prefix_/bin DIR_LIB=$prefix_/lib DIR_INC=$prefix_/include DIR_MAN=$prefix_/man DIR_HTML=$prefix_/html DIRS_LIBINC=\"\$DIRS_LIBINC $SPF_CONF/jpeg/include $SPF_CONF/zlib/include\" DIR_JPEGLIB=$SPF_CONF/jpeg/lib DIR_GZLIB=$SPF_CONF/zlib/lib MANSCHEME=bsd-source-cat-strip GCOPTS=\"$cppflags_ $cflags_\" OPTIMIZER=-O2 LDFLAGS=\"$cppflags_ $cflags_ $ldflags_\" LARGEFILE=yes " >> config.site && for x_ in ${1+"$@"}; do prj_echo "$x_" || return "$?" done >> config.site } && pkg_check_() { make test; } else pkg_before_configure_() { noop_commands_ ldconfig && if test "$version_" = 3.7.1; then #### report this for x_ in tools contrib/addtiffo contrib/dbs contrib/iptcutil \ test; do sed_ "$x_"/Makefile.in 's%\$(CCLD)%$(CXX)%' || return "$?" done else : fi } && if test "$version_" = 3.7.0 then pkg_after_install_() { ln -s libtiff "$prefix_"/lib/libtiff.so; } else prj_x2 prj_set SPF_GCC_GCCLIB '' fi fi;; tightvnc) setup_pkg_ 1.2.9 srcdir: vnc_unixsrc libs: 'jpeg xfree86 zlib' && pkg_after_setup_() { ignore_args_ ${1+"$@"}; } && pkg_install_() { mkdir "$prefix_"/bin "$prefix_"/man "$prefix_"/man/man1 \ "$prefix_"/classes && sed_ vncserver "s%/usr/local/vnc%$prefix_%" && xmkmf && make Makefiles && define_make_ x_ JPEG_INC "$cppflags_" && define_make_ x_ ZLIB_INC "$cppflags_" && define_make_ x_ JPEG_LIB "$ldflags_ -ljpeg" && define_make_ x_ ZLIB_LIB "$ldflags_ -lz" && prj_unset subdir_ && for subdir_ in . Xvnc vncpasswd vncviewer libvncauth vncconnect; do sed_ "$subdir_"/Makefile "$x_" || return "$?" done && make depend && make all && ( cd Xvnc && ./configure && rungcc_ && if test -d "$conflibc_"/.; then for x_ in Makefile */Makefile */*/Makefile */*/*/Makefile \ */*/*/*/Makefile; do sed_ "$x_" "/^ *STD_INCLUDES *=/s%$%-I$conflibc_/include%" || return "$?" done else : fi && for x_ in Makefile */Makefile */*/Makefile */*/*/Makefile \ */*/*/*/Makefile; do sed_ "$x_" 's%/lib/cpp%cpp%' || return "$?" done && sed_ lib/font/fontfile/Makefile ' /ZLIBINC/a\ ZLIBINC='"$SPF_CONF"'/zlib/include\ ' && sed_ programs/Xserver/hw/vnc/Makefile \ "/^ *STD_INCLUDES *=/s%$% $cppflags_%" && x_= && define_make_ x_ ZLIB "$ldflags_ -lz" && sed_ programs/Xserver/Makefile "$x_" && exec make ) && ./vncinstall "$prefix_"/bin "$prefix_"/man && cp -p classes/* "$prefix_"/classes };; time) setup_pkg_ 1.7 && autoconf_pkg_;; timidity++) setup_pkg_ 2.13.0 srcdir: TiMidity++-"$version_" data. && autoconf_pkg_ && set -- --without-x ${1+"$@"} && pkg_after_install_() { mkdir "$prefix_"/share && data_dir_ . share };; tk) setup_pkg_ '8.4.9 8.4.7 8.4.6 8.4.2 8.4.1' \ srcdir: "$package_$version_"/unix libs: xfree86 && x_pkg_= && autoconf_pkg_ && set -- --enable-threads --enable-64bit --with-x ${1+"$@"} && case $version_ in 8.4.[1-6]) :;; *) prj_x2 prj_set SPF_GCC_GCCLIB '';; esac && pkg_before_configure_() { cflags_="$cppflags_ $cflags_"; } && pkg_after_install_() { ( cd "$prefix_"/bin && maybelink_ . wish wish[0123456789]* ) } && pkg_check_() { make test; };; tkeca) setup_pkg_ '4.0.2 3.2.1 3.2.0' ignore_args. && pkg_install_() { mkdir "$prefix_"/bin && cp -p tkeca.tcl "$prefix_"/bin/ };; tla) setup_pkg_ '1.2.1 1.2' ignore_args. && pkg_configure_() { cd src && mkdir =build && cd =build && ../configure --prefix "$prefix_" } && pkg_make_() { make; } && pkg_install_() { make install; } && pkg_check_() { make test; };; tnef) setup_pkg_ '1.3.4 1.3.3 1.3.2 1.2.3.1 1.2.1' && autoconf_pkg_;; traceroute) setup_pkg_ 1.4a12 && pkg_after_setup_() { mkdir "$prefix_"/sbin "$prefix_"/man "$prefix_"/man/man8 } && autoconf_pkg_ && pkg_before_configure_() { x_="s%^\($tab_\$(INSTALL) -m 4555\) -o root -g bin%\\1%" && x_=$x_$nl_"s%^\($tab_\$(INSTALL) -m 444\) -o bin -g bin%\\1%" && sed_ Makefile.in "$x_" } && pkg_after_install_() { make install-man; } && no_check_pkg_;; ## there are no tests tzdata) doit_() { checkversion_ \ 2005q 2005k 2005i 2005h 2005f 2005e 2005c 2005b 2005a 2004g 2004e \ 2004d 2004b 2004a && ignore_args_ ${1+"$@"} && mkdir "$prefix_"/zoneinfo "$prefix_"/zoneinfo/right && set africa antarctica asia australasia etcetera europe factory \ northamerica pacificnew solar87 solar88 solar89 southamerica systemv \ backward && zic -d "$prefix_"/zoneinfo -L /dev/null ${1+"$@"} && zic -d "$prefix_"/zoneinfo/right -L leapseconds ${1+"$@"} && ln -s . "$prefix_"/zoneinfo/posix && cp iso3166.tab zone.tab "$prefix_"/zoneinfo/ && if test -d /usr/share/.; then test -d /usr/share/zoneinfo/. || \ ln -s "$SPF_PREFIX"/"$package_"/zoneinfo /usr/share/ else : fi };; ucspi-proxy) setup_pkg_ 0.96 ignore_args. libs: bglibs && pkg_install_() { sed_ conf-bin "1c\\${nl_}$prefix_/bin\\${nl_}" && sed_ conf-man "1c\\${nl_}$prefix_/man\\${nl_}" && sed_ conf-bgincs "1c\\${nl_}$prefix_/spf/bglibs/include\\${nl_}" && sed_ conf-bglibs "1c\\${nl_}$prefix_/spf/bglibs/lib\\${nl_}" && sed_ conf-cc "1c\\${nl_}gcc -W -Wall -Wshadow -O -g -DDEBUG $cppflags_ $cflags_\\${nl_}" && sed_ conf-ld \ "1c\\${nl_}gcc -s $cppflags_ $cflags_ $ldflags_\\${nl_}" && make && make install };; ucspi-tcp) setup_pkg_ 0.88 ignore_args. && djb_pkg_;; uml-utilities) setup_pkg_ '20040406 20040114' srcdir: tools libs: 'readline ncurses' && pkg_install_() { x_="/^CFLAGS$cws_*=/s%\$% $cppflags_ -O2 $cflags_ $ldflags_%" && rungcc_ && if test -d "$conflibc_"/include/. then x_="$x_${nl_}s%/usr/include%$conflibc_/include%g" else : fi && prj_unset y_ && for y_ in Makefile */Makefile; do sed_ "$y_" "$x_" || return "$?" done && make BIN_DIR="$prefix_"/bin LIB_DIR="$prefix_"/lib/uml ${1+"$@"} \ all install };; unzip) setup_pkg_ '5.52 5.51 5.50 5.42' && pkg_install_() { if [ "$#" != 0 ]; then x_=$1 && shift elif [ "$uname_s_" = Linux ]; then x_=linux else x_=generic fi && ln -s unix/Makefile ./ && x_="$x_ install" && case $x_ in linux|bsdi|*asm*) x_=${x_}_asm;; *) case $cflags_ in *ASM*) x_=${x_}_asm;; *) :;; esac;; esac && prj_u2 prj_set flags_ \ '-DUNIXBACKUP -DSFX_EXDIR -DUSE_UNSHRINK -DUSE_CRYPT' && flags_="$flags_ -DPASSWD_FROM_STDIN -O2 $cppflags_ $cflags_" && TZ=CET make prefix="$prefix_" LF2="$cppflags_ $cflags_ -s $ldflags_" \ LOCAL_UNZIP="$flags_" ${1+"$@"} $x_ check };; url) setup_pkg_ 4.0pre.47 optdirs: gnus && autoconf_pkg_ && pkg_configure_() { if test -d "$SPF_CONF"/gnus/share/. then set -- --with-gnus="$SPF_CONF"/gnus/"$site_lisp" ${1+"$@"} else : fi && autoconf_configure_ ${1+"$@"} } && no_check_pkg_;; ## there are no tests util-linux) case $version_ in 2.12b|2.12a|2.12) x_=;; *) x_=e2fsprogs;; esac && setup_pkg_ '2.12q 2.12j 2.12i 2.12b 2.12a 2.12' \ optlibs: "$x_ ncurses zlib" data. && pkg_install_() { define_make_ x_ ETC_DIR "$prefix_"/etc && define_make_ x_ SBIN_DIR "$prefix_"/sbin && define_make_ x_ USRSBIN_DIR "$prefix_"/usr/sbin && define_make_ x_ USRLIB_DIR "$prefix_"/usr/lib && define_make_ x_ USRBIN_DIR "$prefix_"/usr/bin && define_make_ x_ USRSHAREMISC_DIR "$prefix_"/usr/share/misc && define_make_ x_ LOCALE_DIR "$prefix_"/usr/share/locale && define_make_ x_ BIN_DIR "$prefix_"/bin && define_make_ x_ MAN_DIR "$prefix_"/usr/share/man && define_make_ x_ INFO_DIR "$prefix_"/usr/share/info && # install login, chfn, chsh, newgrp, passwd, vipw define_make_ x_ HAVE_SHADOW no && # install simpleinit, shutdown define_make_ x_ HAVE_SYSVINIT no && # install last, mesg, wall define_make_ x_ HAVE_SYSVINIT_UTILS no && # don't install wall and write setgid define_make_ x_ USE_TTY_GROUP no && # install reset define_make_ x_ HAVE_RESET no && if prj_is_set SPF_NO_NLS then define_make_ x_ DISABLE_NLS yes else : fi && # don't install anything setuid define_make_ x_ INSTALLSUID '$(INSTALL) -m $(BINMODE)' && sed_ MCONFIG "$x_" && x_="s%/etc/adjtime%$prefix_&%" && sed_ hwclock/hwclock.c "$x_" && sed_ hwclock/hwclock.8 "$x_" && ln -s . "$prefix_"/usr && ln -s . "$prefix_"/share && prj_x2 prj_set CFLAGS "$cppflags_ -O2 $cflags_" && prj_x2 prj_set LDFLAGS "$ldflags_" && prj_unset y_ && prj_which y_ rpcgen && prj_which x_ cpp && x_=`dirname "$x_"` && sp_foreign_path_ && prj_echo > sp-foreign-path/rpcgen \ "#!/bin/sh -e exec '$y_' -Y '$x_' "'${1+"$@"}' && chmod +x sp-foreign-path/rpcgen && x_="s%'\\\$CC%& \$LDFLAGS%" && x_=$x_$nl_"s%/usr/include%$SPF_CONF/ncurses/include%" && x_=$x_$nl_"s%--foreign-user %&hwclock/hwclock.c %" && x_=$x_$nl_"s%echo '%echo -E '%" && sed_ configure "$x_" && ./configure && make ${1+"$@"} all install && chmod u-s "$prefix_"/bin/mount "$prefix_"/bin/umount && data_dir_ . etc ## there are no tests };; uudeview) setup_pkg_ '0.5.20 0.5.18' optlibs: 'tcl tk' && autoconf_pkg_ && pkg_configure_() { if test -d "$SPF_CONF"/tcl/include/. then set -- --enable-tcl="$SPF_CONF"/tcl ${1+"$@"} else : fi && if test -d "$SPF_CONF"/tk/include/. then set -- --enable-tk="$SPF_CONF"/tk ${1+"$@"} else : fi && autoconf_configure_ ${1+"$@"} } && no_check_pkg_;; vorbis-tools) setup_pkg_ '1.1.1 1.0.1 1.0' libs: 'curl openssl zlib' \ dirs: 'libvorbis libogg libao' && prj_u2 prj_set ao_ "$SPF_CONF"/libao && prj_u2 prj_set ogg_ "$SPF_CONF"/libogg && prj_u2 prj_set vorbis_ "$SPF_CONF"/libvorbis && prj_u2 prj_set curl_ "$SPF_CONF"/curl && pkg_after_setup_() { ldflags_="$ldflags_ -Wl,-R,$ao_/lib/ao,-R,$ao_/lib,-R,$ogg_/lib" && ldflags_=$ldflags_,-R,$vorbis_/lib,-R,$curl_/lib } && nls_pkg_= && autoconf_pkg_ && set -- --with-ao="$ao_" --with-ogg="$ogg_" --with-vorbis="$vorbis_" \ --with-curl_="$curl_" ${1+"$@"};; w3) setup_pkg_ 4.0pre.47 optdirs: 'gnus url' && autoconf_pkg_ && pkg_configure_() { if test -d "$SPF_CONF"/gnus/share/. then set -- --with-gnus="$SPF_CONF"/gnus/"$site_lisp" ${1+"$@"} else : fi && if test -d "$SPF_CONF"/url/share/. then set -- --with-url="$SPF_CONF"/url/"$site_lisp" ${1+"$@"} else : fi && autoconf_configure_ ${1+"$@"} } && no_check_pkg_;; ### I don't know how to run the tests w3c-libwww) #### unfinished #http://www.w3.org/Library/Distribution.html #http://www.w3.org/INSTALL.html setup_pkg_ 5.4.0 optlibs: 'expat openssl zlib' autoconf_pkg_ pkg_configure_() { noop_commands_ ldconfig fix_ltconfig_ config sed_ config/ltmain.sh 's%\(test \)\(\$[a-z_][a-z_]*\)%\1"\2"%g' if test -d "$SPF_CONF"/zlib/include/.; then set -- --with-zlib ${1+"$@"} fi if test -d "$SPF_CONF"/openssl/include/.; then set -- --with-ssl ${1+"$@"} cppflags_="$cppflags_ -I$SPF_CONF/openssl/include/openssl" fi if test -d "$SPF_CONF"/expat/include/.; then set -- --with-expat ${1+"$@"} fi autoconf_configure_ ${1+"$@"} };; webalizer) setup_pkg_ '2.01-10' libs: 'gd libpng zlib' && autoconf_pkg_ && set -- --with-etcdir="$prefix_"/etc --with-gd="$SPF_CONF"/gd/include \ --with-gdlib="$SPF_CONF"/gd/lib ${1+"$@"} && pkg_before_configure_() { cflags_="$cppflags_ $cflags_" && sed_ configure '/gd headers not found/s%^%GDLIB=does-not-exist #%' && mkdir "$prefix_"/bin "$prefix_"/etc "$prefix_"/man "$prefix_"/man/man1 } && no_check_pkg_;; ## there are no tests wget) setup_pkg_ '1.10.2 1.10.1 1.10 1.9.1 1.8.2' optlibs: openssl data. && autoconf_pkg_ && nls_pkg_= && pkg_after_install_() { data_dir_ . etc; };; which) setup_pkg_ '2.16 2.14 2.13' && autoconf_pkg_;; wireless-tools) setup_pkg_ '28 27 26' srcdir: wireless_tools."$version_" selflib. && pkg_install_() { mkdir "$prefix_"/sbin "$prefix_"/lib "$prefix_"/include "$prefix_"/man \ "$prefix_"/man/man8 && noop_commands_ ldconfig && make HEADERS="$cppflags_ $cflags_" \ LDFLAGS="$ldflags_" PICFLAG="-fPIC $ldflags_" PREFIX="$prefix_" \ ${1+"$@"} all install };; worker) setup_pkg_ '2.9.0 2.8.5 2.8.4 2.8.3 2.8.1' \ libs: xfree86 optlibs: 'bzip2 zlib' && x_pkg_= && prj_x2 prj_set SPF_GCC_GCCLIB '' && autoconf_pkg_;; wmix) setup_pkg_ '3.1 3.0' libs: xfree86 && pkg_install_() { mkdir "$prefix_"/bin && if [ "$version_" = 3.0 ]; then x_="//a\\$nl_#include \\$nl_" && sed_ mixer-oss.c "$x_" && sed_ ui_x.c "$x_" else : fi && sed_ Makefile "s%^CFLAGS$cws_*=.*\$%& $cppflags_ $cflags_%" && make PREFIX="$prefix_" LDFLAGS="$ldflags_" ${1+"$@"} wmix install };; wvdial) ## unmaintained setup_pkg_ 1.53 libs: wvstreams && pkg_install_() { ln -s . "$prefix_"/share && prj_x2 prj_set PKGINC "$SPF_CONF"/wvstreams/include/wvstreams && set make PREFIX="$prefix_" PPPDIR="$prefix_"/etc/ppp/peers \ CPPOPTS="$cppflags_" COPTS="$clags_" LDOPTS="$ldflags_" ${1+"$@"} && "$@" && "$@" install #### notest };; wvstreams) ## unmaintained setup_pkg_ 3.70 libs: 'openssl zlib' && pkg_install_() { prj_append cppflags_ -I"$SPF_CONF"/openssl/include/openssl ' ' && set make PREFIX="$prefix_" CPPOPTS="$cppflags_" COPTS="$clags_" \ LDOPTS="$ldflags_" ${1+"$@"} && "$@" && "$@" install #### notest };; xcdroast) x_=$SPF_CONF/gtk+/lib && if prj_not test -d "$x_"/.; then x_=$SPF_PREFIX/gtk+/lib; else :; fi && if test -f "$x_"/pkgconfig/gtk+-2.0.pc; then set -- --enable-gtk2 ${1+"$@"} && x_='atk pango' else x_= fi && setup_pkg_ 0.98alpha15 libs: "cdrtools gtk+ $x_ glib pcre xfree86 expat" \ data. && nls_pkg_= && x_pkg_= && set -- --with-cdrtools-prefix="$SPF_CONF"/cdrtools \ --with-glib-prefix="$SPF_CONF"/glib --with-gtk-prefix="$SPF_CONF"/gtk+ \ --with-gdk-pixbuf-prefix="$SPF_CONF"/gtk+ ${1+"$@"} && autoconf_pkg_ && pkg_after_install_() { data_dir_ . etc; };; xfree86) ## needs flex-2.5.4a setup_pkg_ '6.9.0 6.8.2 4.4.0 4.3.0' srcdir: xc selflib. && pkg_after_setup_() { { test -d lib/Xaw3d || warn_ "you haven't unpacked the Xaw3d sources"; } && prj_x2 prj_set SPF_GCC_GCCLIB '' && conflib_include_=env && prj_unset mdincludes_ && for x_ in expat flex fontconfig freetype libpng libxml2 ncurses zlib; do { conflib_ "$x_" && prj_append mdincludes_ "-I$SPF_CONF/$x_/include" ' ' } || return "$?" done && rungcc_ && if test -d "$conflibc_"/. then prj_append mdincludes_ "-I$conflibc_/include" ' ' else : fi } && pkg_install_() { if prj_match '4.[34].0|6.8.2' "$version_"; then mkdir spf-include spf-include/linux && : >> spf-include/linux/config.h && x_=`pwd` && prj_append cppflags_ "-I$x_/spf-include" ' ' && prj_append mdincludes_ "-I$x_/spf-include" ' ' else : fi && sed_ config/cf/Imake.tmpl \ "/^$cws_*SHLIBLDFLAGS$cws_*=/s%\$% ExtraLoadFlags%" && redef_() { echo "#undef $1" && prj_echo "#define $*" } && { redef_ ProjectRoot "$prefix_" && redef_ NothingOutsideProjectRoot YES && #redef_ HasVarDirectory YES && redef_ InstallXserverSetUID NO && redef_ InstUidFlags '-m 0755' && redef_ InstallLibManPages YES && redef_ DefaultSystemPath "$path_" && redef_ DefaultUserPath "$path_" && redef_ DefaultUsrBin /command && redef_ CppCmd cpp && redef_ StandardIncludes "$cppflags_" && redef_ DefaultCCOptions "$cflags_" && redef_ DefaultCDebugFlags -O2 && redef_ OptimizedCDebugFlags -O2 && redef_ ExtraLoadFlags "$ldflags_" && redef_ DependFlags "$mdincludes_" && redef_ HasLargeTmp NO && redef_ HasExpat YES && redef_ HasFontconfig YES && redef_ HasFreetype2 YES && redef_ HasZlib YES && redef_ Freetype2Dir "$SPF_CONF"/freetype && redef_ FontconfigDir "$SPF_CONF"/fontconfig && redef_ LibpngDir "$SPF_CONF"/libpng && if prj_match '4.[34].0|6.8.2' "$version_"; then : else : redef_ BuildXterm YES && redef_ InstallXtermSetUID NO fi && #redef_ HasShadowPasswd YES && for x_ in ${1+"$@"}; do redef_ $x_ || return "$?"; done } > config/cf/host.def && x_=`pwd` && prj_x2 prj_append LD_LIBRARY_PATH "$x_/exports/lib" && if test -d Mesa/.; then sed_ programs/Imakefile \ 's/^SUBDIRS = \$(XSSRCDIR) \$(XKBCOMPDIR)$/& $(XDRIINFO) $(GLXCLIENTDIRS)/' else : fi && make World && make install install.man && if test -d lib/Xaw3d; then cd lib/Xaw3d && x_='/^#include $/d' && x_=$x_$nl_'/^#define wcslen(c) wslen(c)$/d' && x_=$x_$nl_'/^#define wcscpy(d,s) wscpy(d,s)$/d' && x_=$x_$nl_'/^#define wcsncpy(d,s,l) wsncpy(d,s,l)$/d' && sed_ XawI18n.h "$x_" && ../../config/imake/imake -I../../config/cf -DTOPDIR=../.. \ -DCURRENTDIR=lib/Xaw3d && make CURRENT_DIR=lib/Xaw3d includes depend all install else : fi && if test -d drm/.; then ( cd drm && ./autogen.sh && ./configure --prefix="$prefix_" && exec make install ) && prj_x2 prj_append PKG_CONFIG_PATH "$prefix_"/lib/pkgconfig else : fi && if test -d Mesa/.; then ( cd Mesa && case $uname_s_ in Linux) case $uname_m_ in i?86) make linux-dri-x86;; *) make linux-dri;; esac;; *BSD) case $uname_m_ in i?86) make freebsd-dri-x86;; *) make freebsd-dri;; esac;; *) prj_fail "don't know a build target for this platform";; esac && for x_ in lib/*.so; do { case $x_ in *_dri.so) cp "$x_" "$prefix_"/lib/modules/dri/;; *) cp "$x_" "$prefix_"/lib/;; esac } || exit "$?" done ) || return "$?" else : fi && if test -d drm/. && test -d "$SPF_PREFIX"/src/linux/.; then ( cd drm && exec make LINUXDIR="$SPF_PREFIX"/src/linux ) && x_=$SPF_PREFIX/linux && cp drm/*.ko "$x_"/lib/modules/spf-current/kernel/drivers/char/drm && ( cd "$x_" && exec ./update-modules ) else : fi ## there are no tests };; xpdf) setup_pkg_ '3.01 3.00 2.03' libs: 'lesstif t1lib xfree86' \ optlibs: 'freetype' data. && x_pkg_= && autoconf_pkg_ && prj_x2 prj_set SPF_GCC_GCCLIB '' && set -- --with-gzip --enable-opi --with-x ${1+"$@"} && pkg_before_configure_() { case $version_ in 2.03|3.00) cppflags_="$cppflags_ -I$SPF_CONF/freetype/include/freetype2";; *) :;; esac && cxxflags_="$cxxflags_ $cppflags_" } && pkg_after_install_() { data_dir_ . etc; } && no_check_pkg_;; ## there are no tests zip) setup_pkg_ '2.31 2.3' && pkg_install_() { if test "$#" != 0; then x_=$1 && shift elif prj_which x_ gcc 2> /dev/null; then x_=generic_gcc else x_=generic fi && ln -s unix/Makefile ./ && case $version_ in 2.3) sed_ unix/unix.c \ 's%^\( \)\(printf\)\((CompiledWith,\)$%\1(\2)\3%' && sed_ unix/configure ' s%^\( echo "int main(){ \$func(\)\(); return 0; }" > conftest\.c\)$%\10,0\2% s%^\[ -f /[^ ]*/cpp \] && CPP=%#&%';; 2.31) set INSTALL=cp ${1+"$@"};; esac && CC=gcc CPP='gcc -E' make prefix="$prefix_" CC=gcc \ CPP='gcc -E' LOCAL_ZIP="$cppflags_ $cflags_" \ LFLAGS2="$cppflags_ $cflags_ -s $ldflags_" ${1+"$@"} $x_ install ## there are no tests };; zlib) setup_pkg_ '1.2.3 1.2.2 1.2.1 1.1.4' ignore_args. && pkg_install_() { if [ "$version_" != 1.1.4 ]; then ln -s . "$prefix_"/share; else :; fi && cflags_="-fPIC -O3 $cppflags_ $cflags_" && solaris_static_libgcc_ && prefix=$prefix_ CFLAGS=$cflags_ ./configure --shared && make LDFLAGS="-L. -lz $ldflags_" LDSHARED="gcc -shared $ldflags_" \ CPP="\$(CC) -E $cppflags_" all libz.a install && install_ "$prefix_"/lib libz.a } && pkg_check_() { make test; };; *) prj_fail "unknown package: $package_";; esac fi && needfile "$SPF_PREFIX"/. && mkdir -p "$prefix_" && need_writable_dir_ "$prefix_" && x_= && doit_ ${1+"$@"}