[126686] trunk/dports/devel/libdc1394

ctreleaven at macports.org ctreleaven at macports.org
Mon Oct 13 11:30:38 PDT 2014


Revision: 126686
          https://trac.macports.org/changeset/126686
Author:   ctreleaven at macports.org
Date:     2014-10-13 11:30:37 -0700 (Mon, 13 Oct 2014)
Log Message:
-----------
libdc1394: Update to 2.2.0, add sdl dep, build fixes

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

Added Paths:
-----------
    trunk/dports/devel/libdc1394/files/
    trunk/dports/devel/libdc1394/files/patch-01-macosx-status.diff

Modified: trunk/dports/devel/libdc1394/Portfile
===================================================================
--- trunk/dports/devel/libdc1394/Portfile	2014-10-13 18:04:03 UTC (rev 126685)
+++ trunk/dports/devel/libdc1394/Portfile	2014-10-13 18:30:37 UTC (rev 126686)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                libdc1394
-version             2.1.3
+version             2.2.0
 categories          devel
 license             LGPL-2.1+
 platforms           darwin
@@ -23,13 +23,16 @@
 
 master_sites        sourceforge
 
-checksums           sha1    cab77199f2e434ece3cf31c798d00d79326679b4 \
-                    rmd160  298ad9c92187bea0f127f0a0f9960483d50201aa
+checksums           sha1    7e831258a65e7e111a9d52d8062aec6d28a1e4c4 \
+                    rmd160  41a8bc28824a58bcdfdbd3226adf4b0c88555574
 
 depends_build       port:pkgconfig
 
-depends_lib         path:lib/pkgconfig/libusb-1.0.pc:libusb
+depends_lib         path:lib/pkgconfig/libusb-1.0.pc:libusb \
+                    port:libsdl
 
+patchfiles          patch-01-macosx-status.diff
+
 post-patch {
 	reinplace "s:-lIOKit:-framework IOKit:" \
 		${worksrcpath}/configure \
@@ -37,6 +40,8 @@
 		${worksrcpath}/dc1394/macosx/Makefile.in
 }
 
+configure.args      --disable-examples
+
 livecheck.type      regex
 livecheck.url       http://sourceforge.net/projects/libdc1394/files/libdc1394-2/
 livecheck.regex     "(\\d+(?:\\.\\d+)*)${extract.suffix}"

Added: trunk/dports/devel/libdc1394/files/patch-01-macosx-status.diff
===================================================================
--- trunk/dports/devel/libdc1394/files/patch-01-macosx-status.diff	                        (rev 0)
+++ trunk/dports/devel/libdc1394/files/patch-01-macosx-status.diff	2014-10-13 18:30:37 UTC (rev 126686)
@@ -0,0 +1,17 @@
+# fix issue due to bug in OSX Firewire stack
+# libdc1394 author comments here:
+# http://permalink.gmane.org/gmane.comp.multimedia.libdc1394.devel/517
+
+Index: dc1394/macosx/capture.c
+===================================================================
+--- dc1394/macosx/capture.c	(revision 594)
++++ dc1394/macosx/capture.c	(working copy)
+@@ -150,7 +150,7 @@
+ 
+     for (i = 0; i < buffer->num_dcls; i++) {
+         int packet_size = capture->frames[buffer->i].packet_size;
+-        if ((buffer->pkts[i].status & 0x1F) != 0x11) {
++        if ((buffer->pkts[i].status & 0x1F) != 0x11 && (buffer->pkts[i].status & 0x1F) != 0) {
+             dc1394_log_warning ("packet %d had error status %x",
+                     i, buffer->pkts[i].status);
+             corrupt = 1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141013/029e371e/attachment.html>


More information about the macports-changes mailing list