2011-03-10 05:11:03 +00:00
|
|
|
class Jhead < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Extract Digicam setting info from EXIF JPEG headers"
|
2015-02-24 19:53:28 +00:00
|
|
|
homepage "http://www.sentex.net/~mwandel/jhead/"
|
|
|
|
url "http://www.sentex.net/~mwandel/jhead/jhead-3.00.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "88cc01da018e242fe2e05db73f91b6288106858dd70f27506c4989a575d2895e"
|
2015-02-24 19:53:28 +00:00
|
|
|
|
2015-02-25 16:51:02 +00:00
|
|
|
bottle do
|
2015-09-23 20:36:12 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "2df303bdee1a1ee76b6f8a450d762ee2e3ea5868198c2ed9991f5407c6a1267a" => :el_capitan
|
2015-02-25 16:51:02 +00:00
|
|
|
sha1 "185afa273417b275ff636c040ddcaef805bbf73f" => :yosemite
|
|
|
|
sha1 "00babbf26b32bc6b51b1e029209ad998cb579dd1" => :mavericks
|
|
|
|
sha1 "af148787c63b3fc3c4dc107f98ca72e54dececa0" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-02-24 19:53:28 +00:00
|
|
|
# Patch to provide a proper install target to the Makefile. The patch has
|
|
|
|
# been submitted upstream through email. We need to carry this patch until
|
|
|
|
# upstream decides to incorporate it.
|
|
|
|
patch :DATA
|
2010-01-09 21:29:50 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-24 19:53:28 +00:00
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/jhead", test_fixtures("test.jpg")
|
2010-01-09 21:29:50 +00:00
|
|
|
end
|
|
|
|
end
|
2015-02-24 19:53:28 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/makefile 2015-02-02 23:24:06.000000000 +0100
|
|
|
|
+++ b/makefile 2015-02-25 16:31:21.000000000 +0100
|
|
|
|
@@ -1,12 +1,18 @@
|
|
|
|
#--------------------------------
|
|
|
|
# jhead makefile for Unix
|
|
|
|
#--------------------------------
|
|
|
|
+PREFIX=$(DESTDIR)/usr/local
|
|
|
|
+BINDIR=$(PREFIX)/bin
|
|
|
|
+DOCDIR=$(PREFIX)/share/doc/jhead
|
|
|
|
+MANDIR=$(PREFIX)/share/man/man1
|
|
|
|
OBJ=.
|
|
|
|
SRC=.
|
|
|
|
CFLAGS:= $(CFLAGS) -O3 -Wall
|
|
|
|
|
|
|
|
all: jhead
|
|
|
|
|
|
|
|
+docs = $(SRC)/usage.html
|
|
|
|
+
|
|
|
|
objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \
|
|
|
|
$(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o
|
|
|
|
|
|
|
|
@@ -19,5 +25,8 @@
|
|
|
|
clean:
|
|
|
|
rm -f $(objs) jhead
|
|
|
|
|
|
|
|
-install:
|
|
|
|
- cp jhead ${DESTDIR}/usr/local/bin/
|
|
|
|
+install: all
|
|
|
|
+ install -d $(BINDIR) $(DOCDIR) $(MANDIR)
|
|
|
|
+ install -m 0755 jhead $(BINDIR)
|
|
|
|
+ install -m 0644 $(docs) $(DOCDIR)
|
|
|
|
+ install -m 0644 jhead.1 $(MANDIR)
|