1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

* Chase so version for libexif

* Fix build with libexif-0.5.4
* Bump PORTREVISION

PR:		42270
Obtained from:	various diffs from gphoto2 CVS
This commit is contained in:
Joe Marcus Clarke 2002-09-01 00:40:21 +00:00
parent 2fbfc9fa86
commit ab10fb893a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65396
3 changed files with 50 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= gphoto2
PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.gphoto.net/dist/
@ -19,7 +20,7 @@ LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext \
usb-0.1.5:${PORTSDIR}/devel/libusb \
aa.1:${PORTSDIR}/graphics/aalib \
jpeg.9:${PORTSDIR}/graphics/jpeg \
exif.5:${PORTSDIR}/graphics/libexif
exif.7:${PORTSDIR}/graphics/libexif
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
USE_BZIP2= yes

View File

@ -0,0 +1,30 @@
--- frontends/command-line/actions.c.orig Sat Aug 31 20:34:21 2002
+++ frontends/command-line/actions.c Sat Aug 31 20:36:35 2002
@@ -316,6 +316,7 @@
const char *data;
unsigned long size;
ExifData *ed;
+ unsigned int i;
CR (gp_file_new (&file));
CRU (gp_camera_file_get (p->camera, p->folder, filename,
@@ -337,16 +338,9 @@
printf ("%-59.59s", _("Value"));
printf ("\n");
print_hline ();
- if (ed->ifd0)
- show_ifd (ed->ifd0);
- if (ed->ifd1)
- show_ifd (ed->ifd1);
- if (ed->ifd_exif)
- show_ifd (ed->ifd_exif);
- if (ed->ifd_gps)
- show_ifd (ed->ifd_gps);
- if (ed->ifd_interoperability)
- show_ifd (ed->ifd_interoperability);
+ for (i = 0; i < EXIF_IFD_COUNT; i++)
+ if (ed->ifd[i])
+ show_ifd (ed->ifd[i]);
print_hline ();
if (ed->size) {
printf (_("EXIF data contains a thumbnail (%i bytes)."),

View File

@ -0,0 +1,18 @@
--- libgphoto2/gphoto2-filesys.c.orig Sat Aug 31 20:30:42 2002
+++ libgphoto2/gphoto2-filesys.c Sat Aug 31 20:32:23 2002
@@ -98,12 +98,12 @@
/*
* HP PhotoSmart C30 has the date and time in ifd_exif.
*/
- e = exif_content_get_entry (ed->ifd0, EXIF_TAG_DATE_TIME);
+ e = exif_content_get_entry (ed->ifd[EXIF_IFD_0], EXIF_TAG_DATE_TIME);
if (!e)
- e = exif_content_get_entry (ed->ifd_exif,
+ e = exif_content_get_entry (ed->ifd[EXIF_IFD_EXIF],
EXIF_TAG_DATE_TIME_ORIGINAL);
if (!e)
- e = exif_content_get_entry (ed->ifd_exif,
+ e = exif_content_get_entry (ed->ifd[EXIF_IFD_EXIF],
EXIF_TAG_DATE_TIME_DIGITIZED);
if (!e) {
GP_DEBUG ("EXIF data has not date/time tag.");