pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/mkcue add mkcue-2.1 which is a tool to extract a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fac128aae270
branches:  trunk
changeset: 562424:fac128aae270
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Mon Jul 27 19:35:00 2009 +0000

description:
add mkcue-2.1 which is a tool to extract a CUE sheet from a CD,
needed for the "-M" option of "abcde",
the original distribution doesn't seem to be maintained anymore, I just
found a reference in Debian,
the version number is aligned to the Debian one (including a bugfix)

diffstat:

 misc/mkcue/DESCR            |   1 +
 misc/mkcue/Makefile         |  22 ++++++++++++++++++++++
 misc/mkcue/PLIST            |   2 ++
 misc/mkcue/distinfo         |   6 ++++++
 misc/mkcue/patches/patch-aa |  43 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 74 insertions(+), 0 deletions(-)

diffs (94 lines):

diff -r c2b85e39466f -r fac128aae270 misc/mkcue/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/mkcue/DESCR  Mon Jul 27 19:35:00 2009 +0000
@@ -0,0 +1,1 @@
+Generates a CUE sheet from a CD
diff -r c2b85e39466f -r fac128aae270 misc/mkcue/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/mkcue/Makefile       Mon Jul 27 19:35:00 2009 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/07/27 19:35:00 drochner Exp $
+#
+
+DISTNAME=      mkcue_1.orig
+PKGNAME=       mkcue-2.1
+CATEGORIES=    misc
+MASTER_SITES=  ${MASTER_SITE_DEBIAN:=pool/main/m/mkcue/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://packages.debian.org/source/stable/mkcue
+COMMENT=       Generates a CUE sheet from a CD
+LICENSE=       gnu-lgpl-v2
+
+WRKSRC=                ${WRKDIR}/mkcue-1.orig
+GNU_CONFIGURE= yes
+USE_LANGUAGES= c c++
+USE_TOOLS+=    gmake
+MAKE_FILE=     GNUmakefile
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS= bin
+
+.include "../../mk/bsd.pkg.mk"
diff -r c2b85e39466f -r fac128aae270 misc/mkcue/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/mkcue/PLIST  Mon Jul 27 19:35:00 2009 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/07/27 19:35:00 drochner Exp $
+bin/mkcue
diff -r c2b85e39466f -r fac128aae270 misc/mkcue/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/mkcue/distinfo       Mon Jul 27 19:35:00 2009 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/07/27 19:35:00 drochner Exp $
+
+SHA1 (mkcue_1.orig.tar.gz) = d9a69718ba3d862b589588bdf61796f755200f9d
+RMD160 (mkcue_1.orig.tar.gz) = 8462f803235d90fef3d4dd27a83a47ae895cd4b2
+Size (mkcue_1.orig.tar.gz) = 80650 bytes
+SHA1 (patch-aa) = 54e894382ab940d522290b6d65503146149fd7e0
diff -r c2b85e39466f -r fac128aae270 misc/mkcue/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/mkcue/patches/patch-aa       Mon Jul 27 19:35:00 2009 +0000
@@ -0,0 +1,43 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/07/27 19:35:00 drochner Exp $
+
+--- mkcue.cc.orig      2004-10-27 08:20:30.000000000 +0200
++++ mkcue.cc
+@@ -12,6 +12,9 @@ static char ident[] =
+ 
+ #include "diskid.h"
+ 
++/* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439790 */
++#define MSF_OFFSET 150
++
+ void
+ DiskId::ReportError(char *err)
+ {
+@@ -54,16 +57,12 @@ main(int argc, char *argv[])
+     }
+ 
+     puts("FILE \"dummy.wav\" WAVE");
+-    puts("  TRACK 01 AUDIO");
+-    puts("    INDEX 01 00:00:00");
+ 
+ #define min(x, y) ((x) < (y) ? (x) : (y))
+-    for (track = cdinfo.FirstTrack + 1;
++    for (track = cdinfo.FirstTrack;
+          track <= min(trackcount, cdinfo.LastTrack);
+          track++) {
+-        /* There is frequently (always?) an offset of 150 sectors, so
+-         * subtract the first track's offset. */
+-        cdinfo.FrameOffset[track] -= cdinfo.FrameOffset[1];
++        cdinfo.FrameOffset[track] -= MSF_OFFSET;
+ 
+         minutes = seconds = sectors = 0;
+         sectors = cdinfo.FrameOffset[track] % 75;
+@@ -76,6 +75,9 @@ main(int argc, char *argv[])
+         }
+ 
+         printf("  TRACK %02d AUDIO\n", track);
++      if (track == 1 && cdinfo.FrameOffset[track] > 0) {
++          printf("    INDEX 00 00:00:00\n");
++      }
+         printf("    INDEX 01 %02d:%02d:%02d\n", minutes, seconds, sectors);
+     }
+ 



Home | Main Index | Thread Index | Old Index