# $Id: Portfile 53065 2009-06-29 01:12:11Z jmr@macports.org $

PortSystem 1.0
name			jhead
version			2.87
categories		graphics
platforms		darwin
maintainers		cotsworth.com:simon
description		Program for extracting Digicam setting information from Exif Jpeg headers.

long_description	${name} is used to display and manipulate data contained in \
				the Exif header of jpeg images from digital cameras. By \
				default, jhead displays the more useful camera settings \
				from the file in a user friendly format. \
				jhead can also be used to manipulate some aspects of the \
				image relating to jpeg and Exif headers, such as changing \
				the internal timestamps, removing the thumbnail, or \
				transferring Exif headers back into edited images after \
				graphical editors deleted the exif header. jhead can also \
				be used to launch other programs, similar in style to \
				the UNIX find command, but much simpler.

homepage		http://www.sentex.net/~mwandel/${name}/
master_sites	${homepage}
checksums	md5 7e5e84bf74800808c171956414228db9 \
		sha1 c903837adc3ecd8cfe8bdcf7a8660d18754f4800 \
		rmd160 2d19eb52817d03a7d7afbad2ac402b236c23a7bf

use_configure	no

build.env	CC=${configure.cc}

destroot	{
	xinstall -m 0755 ${worksrcpath}/${name} \
	  ${destroot}${prefix}/bin

	xinstall -m 0644 ${worksrcpath}/${name}.1 \
	  ${destroot}${prefix}/share/man/man1

	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
	foreach doc [glob ${worksrcpath}/*.\[h-z\]\[a-z\]*] {
		xinstall -m 0644 $doc \
		  ${destroot}${prefix}/share/doc/${name}
	}
}
