From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 2 10:40:20 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA21716A41F for ; Fri, 2 Sep 2005 10:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26E5843D46 for ; Fri, 2 Sep 2005 10:40:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j82AeJ29000228 for ; Fri, 2 Sep 2005 10:40:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j82AeJwu000227; Fri, 2 Sep 2005 10:40:19 GMT (envelope-from gnats) Resent-Date: Fri, 2 Sep 2005 10:40:19 GMT Resent-Message-Id: <200509021040.j82AeJwu000227@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Emanuel Haupt Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA58116A41F for ; Fri, 2 Sep 2005 10:35:49 +0000 (GMT) (envelope-from ehaupt@mx.critical.ch) Received: from mx.critical.ch (admin.critical.ch [67.18.86.178]) by mx1.FreeBSD.org (Postfix) with SMTP id 86DBD43D45 for ; Fri, 2 Sep 2005 10:35:49 +0000 (GMT) (envelope-from ehaupt@mx.critical.ch) Received: (qmail 24164 invoked by uid 1000); 2 Sep 2005 10:35:47 -0000 Message-Id: <20050902103547.24163.qmail@mx.critical.ch> Date: 2 Sep 2005 10:35:47 -0000 From: Emanuel Haupt To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/85628: new port: graphics/metacam - A digital camera EXIF meta-information reader X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Emanuel Haupt List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 10:40:21 -0000 >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@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 X# X# $FreeBSD$ X# X XPORTNAME= metacam XPORTVERSION= 1.2 XCATEGORIES= graphics XMASTER_SITES= ftp://ftp.cheeseplant.org/pub/ X XMAINTAINER= ehaupt@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 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 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@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 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 X.br XManual page by Alp Toker , Jarno Elonen END-of-metacam/files/metacam.1 exit --- metacam.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: