blob: 0359ce2df8ce50a53f158a39c0478e53349e4bde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
require 'formula'
class Fbida < Formula
homepage 'http://linux.bytesex.org/fbida/'
url 'http://dl.bytesex.org/releases/fbida/fbida-2.09.tar.gz'
sha1 '5838b2cb7188481fece6159fccb3b121acd906e7'
depends_on 'libexif'
depends_on 'jpeg'
# Fix for build failure in fbida 2.09 (and earlier)
# Check again in fbida 2.10
patch :DATA
def install
ENV.append 'LDFLAGS', '-liconv'
system "make"
bin.install 'exiftran'
man1.install 'exiftran.man' => 'exiftran.1'
end
end
__END__
diff --git a/GNUmakefile b/GNUmakefile
index 2efae6c..9c45561 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -30,8 +30,7 @@ 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,printf JPEG_LIB_VERSION | cpp -include jpeglib.h | tail -n 1);\
$(call ac_fini))
define make-config
|