spf_template code.dogmap.org:gnu &&
spf_url home 'http://www.cups.org' &&
spf_url watch 'http://www.cups.org/software.php' &&
spf_url src "http://ftp.easysw.com/pub/cups/${spf_version?}/cups-${spf_version?}-source.tar.bz2" &&
spf_template_gnu_do_before_configure() {
  case "${spf_version?}" in
    1.4*) prj_sedfile backend/usb-unix.c '/^$/,/^side_cb/ s/static void/static int/';;
    *) ;;
  esac &&
  prj_x2 prj_set DSOFLAGS "${spf_args_ld?}" &&
  spf_args configure --with-rcdir="${spf_path_prefix?}"/etc &&
  spf_args configure --enable-openssl &&
  spf_args configure --disable-gnutls &&
  spf_args configure --disable-cdsassl
} &&
spf_depend code.dogmap.org:jpeg &&
spf_depend code.dogmap.org:libpng &&
spf_depend code.dogmap.org:tiff &&
spf_depend code.dogmap.org:openssl &&
spf_depend code.dogmap.org:zlib &&
### does not detect libusb; requires 0.1.x series?
#case "${spf_version?}" in
  #1.4*) spf_depend libusb degree optional;;
  #*) ;;
#esac &&
spf_tested_version 1.4.6 &&
spf_tested_version 1.4.5 &&
spf_tested_version 1.4.2 &&
spf_tested_version 1.4.1 &&
spf_tested_version 1.3.11 &&
spf_tested_version 1.3.9 &&
spf_tested_version 1.3.7 &&
spf_tested_version 1.3.4 &&
spf_tested_version 1.3.2 &&
spf_tested_version 1.2.12 &&
spf_tested_version 1.2.11

# gnutls, cdsassl, openssl: what's the difference?

