spf_template sourceforge &&
spf_template_sourceforge_pid 39844 &&
spf_template_sourceforge_path /FakeNES &&
spf_depend allegro &&
#### http://allegrogl.sourceforge.net/
spf_depend mesalib degree optional &&
spf_depend zlib    degree optional &&
spf_cc_ cpp_args &&
spf_cc_ cc_args '-O2 -W -Wall' &&
spf_cc_ ld_args &&
spf_do_install() {
  prj_sedfile build/zlib.cbd  '/^@!call/s/ -E /&${CPPFLAGS} /' &&
  prj_sedfile build/alleg.cbd '/^@!call/s/ -E /&${CPPFLAGS} /' &&
  env CPPFLAGS="${spf_args_cpp?}" \
    CFLAGS="${spf_args_cc?}" \
    LDFLAGS="${spf_args_ld?}" \
    make
  mkdir "${spf_path_prefix?}" \
    "${spf_path_prefix?}"/bin &&
  cp fakenes "${spf_path_prefix?}"/bin/
}
spf_no_check &&
spf_tested_version 0.5.8


