[66813] trunk/dports/devel/libgphoto2

ryandesign at macports.org ryandesign at macports.org
Thu Apr 22 20:36:41 PDT 2010


Revision: 66813
          http://trac.macports.org/changeset/66813
Author:   ryandesign at macports.org
Date:     2010-04-22 20:36:39 -0700 (Thu, 22 Apr 2010)
Log Message:
-----------
libgphoto2: update to 2.4.9; see #24458

Modified Paths:
--------------
    trunk/dports/devel/libgphoto2/Portfile

Added Paths:
-----------
    trunk/dports/devel/libgphoto2/files/patch-usbscsi-autoconf.diff

Modified: trunk/dports/devel/libgphoto2/Portfile
===================================================================
--- trunk/dports/devel/libgphoto2/Portfile	2010-04-23 03:19:13 UTC (rev 66812)
+++ trunk/dports/devel/libgphoto2/Portfile	2010-04-23 03:36:39 UTC (rev 66813)
@@ -2,8 +2,7 @@
 
 PortSystem          1.0
 name                libgphoto2
-version             2.4.5
-revision            3
+version             2.4.9
 categories          devel
 maintainers         nomaintainer
 description         The gphoto2 digital camera library
@@ -17,9 +16,9 @@
 master_sites        sourceforge:gphoto
 use_bzip2           yes
 
-checksums           md5     490d7f6def94ff9532593e62aed946e3 \
-                    sha1    b1f51f0587afbe454db411f9005bd6ce5138156b \
-                    rmd160  b5add1b9d13079578c113f45a11eafa8372c1c84
+checksums           md5     32b233189e3df7e5e67d2a81163682b8 \
+                    sha1    7d876fd650430e4f52fe10e53f378688e6026387 \
+                    rmd160  1af4e817281d6bfac1650a0b427a2903c997a9bb
 
 depends_build       port:pkgconfig
 depends_lib         port:dbus \
@@ -31,7 +30,7 @@
                     port:libtool
 
 patchfiles          patch-configure.diff patch-configure-nodoxygen.diff \
-                    patch-camlibs_Makefile.in.diff
+                    patch-camlibs_Makefile.in.diff patch-usbscsi-autoconf.diff
 
 configure.cflags-append   -I${prefix}/include -no-cpp-precomp
 configure.args      --mandir=${prefix}/share/man \

Added: trunk/dports/devel/libgphoto2/files/patch-usbscsi-autoconf.diff
===================================================================
--- trunk/dports/devel/libgphoto2/files/patch-usbscsi-autoconf.diff	                        (rev 0)
+++ trunk/dports/devel/libgphoto2/files/patch-usbscsi-autoconf.diff	2010-04-23 03:36:39 UTC (rev 66813)
@@ -0,0 +1,35 @@
+--- libgphoto2_port/usbscsi/linux.c	2010/03/29 09:39:26	12857
++++ libgphoto2_port/usbscsi/linux.c	2010/04/11 19:01:46	12992
+@@ -27,8 +27,12 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/param.h>
+-#include <sys/ioctl.h>
+-#include <scsi/sg.h>
++#ifdef HAVE_SYS_IOCTL_H
++# include <sys/ioctl.h>
++#endif
++#ifdef HAVE_SCSI_SG_H
++# include <scsi/sg.h>
++#endif
+ #ifdef HAVE_LOCKDEV
+ #  include <lockdev.h>
+ #endif
+@@ -297,6 +301,7 @@
+ static int gp_port_usbscsi_send_scsi_cmd (GPPort *port, int to_dev, char *cmd,
+ 	int cmd_size, char *sense, int sense_size, char *data, int data_size)
+ {
++#ifdef HAVE_SCSI_SG_H
+ 	sg_io_hdr_t io_hdr;
+ 
+ 	if (!port)
+@@ -328,6 +333,9 @@
+ 	}
+ 
+ 	return GP_OK;
++#else
++	return GP_ERROR_NOT_SUPPORTED;
++#endif
+ }
+ 
+ static int
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100422/1b56892f/attachment-0001.html>


More information about the macports-changes mailing list