ports/85628: new port: graphics/metacam - A digital camera EXIF meta-information reader
Emanuel Haupt
ehaupt at critical.ch
Fri Sep 2 10:40:21 UTC 2005
>Number: 85628
>Category: ports
>Synopsis: new port: graphics/metacam - A digital camera EXIF meta-information reader
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 02 10:40:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Emanuel Haupt
>Release: FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
System: FreeBSD admin.critical.ch 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #0: Thu Jun 30 09:36:40 CEST 2005 root at admin.critical.ch:/usr/obj/usr/src-release/src/sys/GENERIC i386
>Description:
new port: graphics/metacam - A digital camera EXIF meta-information reader
MetaCam is a utility to read and decode meta-information from digtial camera
images with EXIF information.
In addition to the standard EXIF fields, MetaCam also supports vendor-specific
extensions from Nikon, Olympus, Canon and Casio.
>How-To-Repeat:
>Fix:
--- metacam.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# metacam
# metacam/Makefile
# metacam/pkg-descr
# metacam/distinfo
# metacam/files
# metacam/files/patch-Makefile
# metacam/files/getopt.h
# metacam/files/metacam.1
#
echo c - metacam
mkdir -p metacam > /dev/null 2>&1
echo x - metacam/Makefile
sed 's/^X//' >metacam/Makefile << 'END-of-metacam/Makefile'
X# New ports collection makefile for: metacam
X# Date created: 2 Sep 2005
X# Whom: Emanuel Haupt <ehaupt at critical.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME= metacam
XPORTVERSION= 1.2
XCATEGORIES= graphics
XMASTER_SITES= ftp://ftp.cheeseplant.org/pub/
X
XMAINTAINER= ehaupt at critical.ch
XCOMMENT= A digital camera EXIF meta-information reader
X
XUSE_GMAKE= yes
XUSE_REINPLACE= yes
XUSE_GETOPT_LONG=yes
XUSE_GCC= 3.4+
X
XCFLAGS+= -I${LOCALBASE}/include
XCXXFLAGS+= -I${LOCALBASE}/include
XMAKE_ENV+= LDFLAGS="${LDFLAGS}"
X
XPLIST_FILES= bin/metacam
XPORTDOCS= README.canon README.casio
XMAN1= metacam.1
X
XALL_TARGET= ${PORTNAME}
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500000
Xpost-patch:
X @${REINPLACE_CMD} -e 's|<\(getopt\.h\)>|"\1"|' ${WRKSRC}/${PORTNAME}.cc
X ${CP} ${FILESDIR}/getopt.h ${WRKSRC}
X.endif
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X ${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${MANPREFIX}/man/man1
X
X.if !defined(NOPORTDOCS)
X ${MKDIR} ${DOCSDIR}
X.for f in ${PORTDOCS}
X ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-metacam/Makefile
echo x - metacam/pkg-descr
sed 's/^X//' >metacam/pkg-descr << 'END-of-metacam/pkg-descr'
XMetaCam is a utility to read and decode meta-information from digtial camera
Ximages with EXIF information.
X
XIn addition to the standard EXIF fields, MetaCam also supports vendor-specific
Xextensions from Nikon, Olympus, Canon and Casio.
X
XWWW: http://www.cheeseplant.org/~daniel/pages/metacam.html
X
X- ehaupt
Xehaupt at critical.ch
END-of-metacam/pkg-descr
echo x - metacam/distinfo
sed 's/^X//' >metacam/distinfo << 'END-of-metacam/distinfo'
XMD5 (metacam-1.2.tar.gz) = b4f557f0df1c3dcca849677b6bc79d24
XSIZE (metacam-1.2.tar.gz) = 33657
END-of-metacam/distinfo
echo c - metacam/files
mkdir -p metacam/files > /dev/null 2>&1
echo x - metacam/files/patch-Makefile
sed 's/^X//' >metacam/files/patch-Makefile << 'END-of-metacam/files/patch-Makefile'
X--- Makefile.orig Sat Aug 21 19:56:53 2004
X+++ Makefile Fri Sep 2 12:14:20 2005
X@@ -27,10 +27,8 @@
X # -- Cygwin under Windows 2000
X #OSCXXFLAGS=
X
X-CXX=g++
X INCLUDES=
X
X-CXXFLAGS=-Wall $(OSCXXFLAGS) -D_GNU_SOURCE -O2 $(INCLUDES)
X
X LIBOBJS=rationals.o exiftags.o \
X nikontags.o olympustags.o canontags.o casiotags.o dpyfuncs.o \
X@@ -65,7 +63,7 @@
X mv -f libmetacam.a- libmetacam.a
X
X metacam: $(EXEOBJS) libmetacam.a
X- $(CXX) $(CXXFLAGS) $(EXEOBJS) -o metacam -lm -L. -lmetacam
X+ $(CXX) $(CXXFLAGS) $(EXEOBJS) -o metacam -lm -L. -lmetacam $(LDFLAGS)
X
X # Dependency rules
X dependencies: Makefile $(DEPS)
END-of-metacam/files/patch-Makefile
echo x - metacam/files/getopt.h
sed 's/^X//' >metacam/files/getopt.h << 'END-of-metacam/files/getopt.h'
X/* $NetBSD: getopt.h,v 1.4 2000/07/07 10:43:54 ad Exp $ */
X/* $FreeBSD: src/include/getopt.h,v 1.6 2004/02/24 08:09:20 ache Exp $ */
X
X/*-
X * Copyright (c) 2000 The NetBSD Foundation, Inc.
X * All rights reserved.
X *
X * This code is derived from software contributed to The NetBSD Foundation
X * by Dieter Baron and Thomas Klausner.
X *
X * Redistribution and use in source and binary forms, with or without
X * modification, are permitted provided that the following conditions
X * are met:
X * 1. Redistributions of source code must retain the above copyright
X * notice, this list of conditions and the following disclaimer.
X * 2. Redistributions in binary form must reproduce the above copyright
X * notice, this list of conditions and the following disclaimer in the
X * documentation and/or other materials provided with the distribution.
X * 3. All advertising materials mentioning features or use of this software
X * must display the following acknowledgement:
X * This product includes software developed by the NetBSD
X * Foundation, Inc. and its contributors.
X * 4. Neither the name of The NetBSD Foundation nor the names of its
X * contributors may be used to endorse or promote products derived
X * from this software without specific prior written permission.
X *
X * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
X * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
X * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
X * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
X * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
X * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
X * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
X * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
X * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
X * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
X * POSSIBILITY OF SUCH DAMAGE.
X */
X
X#ifndef _GETOPT_H_
X#define _GETOPT_H_
X
X#include <sys/cdefs.h>
X
X/*
X * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.
X * getopt() is declared here too for GNU programs.
X */
X#define no_argument 0
X#define required_argument 1
X#define optional_argument 2
X
Xstruct option {
X /* name of long option */
X const char *name;
X /*
X * one of no_argument, required_argument, and optional_argument:
X * whether option takes an argument
X */
X int has_arg;
X /* if not NULL, set *flag to val when option found */
X int *flag;
X /* if flag not NULL, value to set *flag to; else return value */
X int val;
X};
X
X__BEGIN_DECLS
Xint getopt_long(int, char * const *, const char *,
X const struct option *, int *);
Xint getopt_long_only(int, char * const *, const char *,
X const struct option *, int *);
X#ifndef _GETOPT_DECLARED
X#define _GETOPT_DECLARED
Xint getopt(int, char * const [], const char *);
X
Xextern char *optarg; /* getopt(3) external variables */
Xextern int optind, opterr, optopt;
X#endif
X#ifndef _OPTRESET_DECLARED
X#define _OPTRESET_DECLARED
Xextern int optreset; /* getopt(3) external variable */
X#endif
X__END_DECLS
X
X#endif /* !_GETOPT_H_ */
END-of-metacam/files/getopt.h
echo x - metacam/files/metacam.1
sed 's/^X//' >metacam/files/metacam.1 << 'END-of-metacam/files/metacam.1'
X.TH "metacam" "1" "2001-2004" "Daniel Stephens" ""
X.SH "NAME"
X.LP
Xmetacam \- extract EXIF information from digital camera files
X.SH "SYNOPSIS"
X.LP
X.B metacam
X[\fB\-v\fP|\fB\-a\fP|\fB\-x\fP] [\fIFILE\fP]...
X.br
X
X.SH "DESCRIPTION"
X.LP
X.B metacam
Xsupports all standard EXIF fields in addition to (known) vendor specific blocks from Nikon, Olympus, Canon and Casio.
X.SH "OPTIONS"
X.LP
X.TP
X\fB\-h\fR, \fB\-\-help\fR
XOutput help information and exit.
X.TP
X\fB\-v\fR, \fB\-\-verbose\fR
XOutput unknown tags too.
X.TP
X\fB\-a\fR, \fB\-\-all\fR
XOutput ALL tags (implies \-v).
X.TP
X\fB\-x\fR, \fB\-\-xml\fR
XOutput as XML.
X.SH "AUTHORS"
X.LP
XDaniel Stephens <daniel at cheeseplant.org>
X.br
XManual page by Alp Toker <alp at atoker.com>, Jarno Elonen <elonen at debian.org>
END-of-metacam/files/metacam.1
exit
--- metacam.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list