[93169] trunk/dports/multimedia
mww at macports.org
mww at macports.org
Wed May 16 17:58:01 PDT 2012
Revision: 93169
https://trac.macports.org/changeset/93169
Author: mww at macports.org
Date: 2012-05-16 17:58:00 -0700 (Wed, 16 May 2012)
Log Message:
-----------
new port: dvdbackup
Added Paths:
-----------
trunk/dports/multimedia/dvdbackup/
trunk/dports/multimedia/dvdbackup/Portfile
trunk/dports/multimedia/dvdbackup/files/
trunk/dports/multimedia/dvdbackup/files/patch-src-dvdbackup.c.diff
Added: trunk/dports/multimedia/dvdbackup/Portfile
===================================================================
--- trunk/dports/multimedia/dvdbackup/Portfile (rev 0)
+++ trunk/dports/multimedia/dvdbackup/Portfile 2012-05-17 00:58:00 UTC (rev 93169)
@@ -0,0 +1,26 @@
+# $Id$
+
+PortSystem 1.0
+
+name dvdbackup
+version 0.4.1
+categories multimedia sysutils
+platforms darwin
+license GPL-3
+maintainers nomaintainer
+description dvdbackup is a tool to rip video DVDs from the command line
+
+long_description ${description}
+
+homepage http://dvdbackup.sourceforge.net/
+master_sites sourceforge
+
+use_bzip2 yes
+checksums md5 e4b35ba716852361f35cecafff44f37c \
+ sha1 d40b738917cac62a46405f6566a66359504f9a73 \
+ rmd160 a302bbdf6cb3b169784c326e095b1345e5f56538
+
+patchfiles patch-src-dvdbackup.c.diff
+
+depends_lib port:libdvdread
+
Property changes on: trunk/dports/multimedia/dvdbackup/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: trunk/dports/multimedia/dvdbackup/files/patch-src-dvdbackup.c.diff
===================================================================
--- trunk/dports/multimedia/dvdbackup/files/patch-src-dvdbackup.c.diff (rev 0)
+++ trunk/dports/multimedia/dvdbackup/files/patch-src-dvdbackup.c.diff 2012-05-17 00:58:00 UTC (rev 93169)
@@ -0,0 +1,42 @@
+--- src/dvdbackup.c.orig 2010-09-16 22:10:04.307951355 +0200
++++ src/dvdbackup.c 2010-09-16 22:19:49.112413564 +0200
+@@ -99,7 +99,8 @@
+
+
+ static int CheckSizeArray(const int size_array[], int reference, int target) {
+- if ( (size_array[reference]/size_array[target] == 1) &&
++ if ( size_array[target] &&
++ (size_array[reference]/size_array[target] == 1) &&
+ ((size_array[reference] * 2 - size_array[target])/ size_array[target] == 1) &&
+ ((size_array[reference]%size_array[target] * 3) < size_array[reference]) ) {
+ /* We have a dual DVD with two feature films - now let's see if they have the same amount of chapters*/
+@@ -1264,7 +1265,7 @@
+
+ /* Seek to title of first track, which is at (track_no * 32768) + 40 */
+
+- if ( 32808 != lseek(filehandle, 32808, SEEK_SET) ) {
++ if ( 32768 != lseek(filehandle, 32768, SEEK_SET) ) {
+ close(filehandle);
+ fprintf(stderr, _("Cannot seek DVD device %s - check your DVD device\n"), device);
+ return(1);
+@@ -1272,10 +1273,16 @@
+
+ /* Read the DVD-Video title */
+
+- if ( 32 != read(filehandle, title, 32)) {
+- close(filehandle);
+- fprintf(stderr, _("Cannot read title from DVD device %s\n"), device);
+- return(1);
++#define DVD_SEC_SIZ 2048
++ {
++ char tempBuf[ DVD_SEC_SIZ ];
++
++ if (DVD_SEC_SIZ != read(filehandle, tempBuf, DVD_SEC_SIZ)) {
++ close(filehandle);
++ fprintf(stderr, _("Cannot read title from DVD device %s\n"), device);
++ return(1);
++ }
++ snprintf( title, 32, "%s", tempBuf + 40 );
+ }
+
+ /* Terminate the title string */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120516/70468396/attachment.html>
More information about the macports-changes
mailing list