2010-05-30 14:07:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fbida < Formula
|
2010-05-30 14:07:17 +00:00
|
|
|
homepage 'http://linux.bytesex.org/fbida/'
|
2012-03-19 04:29:53 +00:00
|
|
|
url 'http://dl.bytesex.org/releases/fbida/fbida-2.09.tar.gz'
|
|
|
|
md5 '62415c7cb28d995f9d317868de0f2830'
|
|
|
|
|
|
|
|
# Fix for build failure in fbida 2.09 (and earlier)
|
|
|
|
# Check again in fbida 2.10
|
|
|
|
def patches; DATA; end
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-05-30 14:07:17 +00:00
|
|
|
depends_on 'libexif'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install 'exiftran'
|
|
|
|
man1.install 'exiftran.man' => 'exiftran.1'
|
|
|
|
end
|
|
|
|
end
|
2012-03-19 04:29:53 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/GNUmakefile b/GNUmakefile
|
|
|
|
index 2efae6c..af91be4 100644
|
|
|
|
--- a/GNUmakefile
|
|
|
|
+++ b/GNUmakefile
|
|
|
|
@@ -30,8 +30,8 @@ include $(srcdir)/mk/Autoconf.mk
|
|
|
|
|
|
|
|
ac_jpeg_ver = $(shell \
|
|
|
|
$(call ac_init,for libjpeg version);\
|
|
|
|
- $(call ac_s_cmd,echo -e '\#include <jpeglib.h>\nJPEG_LIB_VERSION' \
|
|
|
|
- | cpp | tail -n 1);\
|
|
|
|
+ $(call ac_s_cmd,echo JPEG_LIB_VERSION \
|
|
|
|
+ | cpp -include jpeglib.h | tail -n 1);\
|
|
|
|
$(call ac_fini))
|
|
|
|
|
|
|
|
define make-config
|