summaryrefslogtreecommitdiff
path: root/homebrew/zbar/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/zbar/.make.sh-auto')
-rw-r--r--homebrew/zbar/.make.sh-auto9
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/zbar/.make.sh-auto b/homebrew/zbar/.make.sh-auto
new file mode 100644
index 000000000..1890e513f
--- /dev/null
+++ b/homebrew/zbar/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+inreplace "configure.ac", "-Werror", ""
+gettext = Formula["gettext"]
+autoreconf -fvi -I #{gettext.opt_share}/aclocal
+end
+inreplace ["configure", "zbarimg/zbarimg.c"], "wand/MagickWand.h", "ImageMagick-7/MagickWand/MagickWand.h"
+args = %W[--disable-dependency-tracking --prefix=#{prefix} --without-python --without-qt --disable-video --without-gtk --without-x ]
+pkg:configure *args
+make DESTDIR=${PKG_DEST} install