aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Zeindl2012-04-14 16:05:22 +0200
committerAdam Vandenberg2012-04-16 19:14:57 -0700
commit6beffb036ee1ece18de330aa992eacded818561b (patch)
tree606a1c1fd636a65f0d652fd5d99be52ef00dd841
parent7394ce686663a43cfa050b79fad1c6fd4e04f801 (diff)
downloadhomebrew-6beffb036ee1ece18de330aa992eacded818561b.tar.bz2
Fixes compilation of sane-backends.
Closes #8950. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/sane-backends.rb25
1 files changed, 24 insertions, 1 deletions
diff --git a/Library/Formula/sane-backends.rb b/Library/Formula/sane-backends.rb
index 6fb6bf3c1..7f59e0d6c 100644
--- a/Library/Formula/sane-backends.rb
+++ b/Library/Formula/sane-backends.rb
@@ -1,14 +1,21 @@
require 'formula'
class SaneBackends < Formula
- url 'ftp://ftp2.sane-project.org/pub/sane/sane-backends-1.0.22/sane-backends-1.0.22.tar.gz'
homepage 'http://www.sane-project.org/'
+ url 'ftp://ftp2.sane-project.org/pub/sane/sane-backends-1.0.22/sane-backends-1.0.22.tar.gz'
md5 'fadf56a60f4776bfb24491f66b617cf5'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'libusb-compat'
+ # Fixes u_long missing error. Reported upstream:
+ # https://github.com/fab1an/homebrew/commit/2a716f1a2b07705aa891e2c7fbb5148506aa5a01
+ # When updating this formula, check on the usptream status of this patch.
+ def patches
+ DATA
+ end
+
def install
ENV.j1 # Makefile does not seem to be parallel-safe
system "./configure", "--disable-dependency-tracking",
@@ -25,3 +32,19 @@ class SaneBackends < Formula
(var+"lock/sane").mkpath
end
end
+
+__END__
+diff --git a/include/sane/sane.h.orig b/include/sane/sane.h
+index 5320b4a..6cb7090 100644
+--- a/include/sane/sane.h.orig
++++ b/include/sane/sane.h
+@@ -20,6 +20,9 @@
+ extern "C" {
+ #endif
+
++// Fixes u_long missing error
++#include <sys/types.h>
++
+ /*
+ * SANE types and defines
+ */