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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '5838b2cb7188481fece6159fccb3b121acd906e7'
|
2012-03-19 04:29:53 +00:00
|
|
|
|
2013-02-21 00:18:08 +00:00
|
|
|
depends_on 'libexif'
|
|
|
|
depends_on 'jpeg'
|
|
|
|
|
2012-03-19 04:29:53 +00:00
|
|
|
# Fix for build failure in fbida 2.09 (and earlier)
|
|
|
|
# Check again in fbida 2.10
|
2014-03-18 21:51:41 +00:00
|
|
|
patch :DATA
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-05-30 14:07:17 +00:00
|
|
|
def install
|
2012-07-19 17:48:41 +00:00
|
|
|
ENV.append 'LDFLAGS', '-liconv'
|
2010-05-30 14:07:17 +00:00
|
|
|
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
|
2013-11-09 06:52:38 +00:00
|
|
|
index 2efae6c..9c45561 100644
|
2012-03-19 04:29:53 +00:00
|
|
|
--- a/GNUmakefile
|
|
|
|
+++ b/GNUmakefile
|
2013-11-09 06:52:38 +00:00
|
|
|
@@ -30,8 +30,7 @@ include $(srcdir)/mk/Autoconf.mk
|
2012-03-19 04:29:53 +00:00
|
|
|
|
|
|
|
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);\
|
2013-11-09 06:52:38 +00:00
|
|
|
+ $(call ac_s_cmd,printf JPEG_LIB_VERSION | cpp -include jpeglib.h | tail -n 1);\
|
2012-03-19 04:29:53 +00:00
|
|
|
$(call ac_fini))
|
|
|
|
|
|
|
|
define make-config
|