# $Id: Portfile 90304 2012-03-01 18:15:21Z raimue@macports.org $

PortSystem                  1.0

name                        sane-frontends
version                     1.0.15git
categories                  graphics
platforms                   darwin
maintainers                 gmail.com:aguynamedryan+sane
homepage                    http://www.sane-project.org/

description                 Frontends for scanner access

long_description            These are the frontends for the Scanner Access Now \
                            Easy project. They allow you to access various \
                            scanners either locally or remote using saned.

# The SANE project has not released an updated sane-frontends
# tarball in nearly 5 years.  However, they have made updates
# to sane-frontends as the API for sane-backends has changed
# over that time.  Accordingly, it appears that fetching
# sane-frontends from the official git repository is the
# best bet for getting a compilable sane-frontends
fetch.type                  git
git.url                     git://git.debian.org/sane/sane-frontends.git
git.branch                  1928f945eefa3b97b5c76d586082435bb23c2969

depends_lib                 port:sane-backends

configure.cppflags-append   -no-cpp-precomp \
                            -fno-common

livecheck.url               "http://git.debian.org/?p=sane/sane-frontends.git;a=commit;h=refs/heads/master"
livecheck.version           ${git.branch}
livecheck.regex             <td>commit</td><td class="sha1">(\[a-f0-9\]+)</td>
