2009-12-27 11:27:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class SaneBackends < Formula
|
2011-02-16 11:52:23 +00:00
|
|
|
url 'ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.22/sane-backends-1.0.22.tar.gz'
|
2009-12-27 11:27:31 +00:00
|
|
|
homepage 'http://www.sane-project.org/'
|
2011-02-16 11:52:23 +00:00
|
|
|
md5 'fadf56a60f4776bfb24491f66b617cf5'
|
2009-12-27 11:27:31 +00:00
|
|
|
|
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'libtiff'
|
2009-12-24 10:54:58 +00:00
|
|
|
depends_on 'libusb-compat'
|
2009-12-27 11:27:31 +00:00
|
|
|
|
2011-03-11 06:24:18 +00:00
|
|
|
skip_clean "var/lock/sane"
|
|
|
|
|
2009-12-27 11:27:31 +00:00
|
|
|
def install
|
2011-03-11 06:22:43 +00:00
|
|
|
ENV.j1 # Makefile does not seem to be parallel-safe
|
2009-12-24 10:54:58 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-gphoto2",
|
|
|
|
"--enable-local-backends",
|
|
|
|
"--enable-libusb",
|
|
|
|
"--disable-latex"
|
2009-12-27 11:27:31 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2011-03-11 06:24:18 +00:00
|
|
|
|
|
|
|
# Some drivers require a lockfile
|
|
|
|
(var+"lock/sane").mkpath
|
2009-12-27 11:27:31 +00:00
|
|
|
end
|
|
|
|
end
|