diff options
author | drochner <drochner@pkgsrc.org> | 2009-07-27 19:35:00 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2009-07-27 19:35:00 +0000 |
commit | 52a83d9ed17832cfe22cb24eaca1848f31bdec87 (patch) | |
tree | 5aaa57c93359778eb2ed01b90ad2ce8c6380f666 /misc | |
parent | 8402c18ea9e914236590e971f3f784a5746eb059 (diff) | |
download | pkgsrc-52a83d9ed17832cfe22cb24eaca1848f31bdec87.tar.gz |
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 (limited to 'misc')
-rw-r--r-- | misc/mkcue/DESCR | 1 | ||||
-rw-r--r-- | misc/mkcue/Makefile | 22 | ||||
-rw-r--r-- | misc/mkcue/PLIST | 2 | ||||
-rw-r--r-- | misc/mkcue/distinfo | 6 | ||||
-rw-r--r-- | misc/mkcue/patches/patch-aa | 43 |
5 files changed, 74 insertions, 0 deletions
diff --git a/misc/mkcue/DESCR b/misc/mkcue/DESCR new file mode 100644 index 00000000000..6f5add78858 --- /dev/null +++ b/misc/mkcue/DESCR @@ -0,0 +1 @@ +Generates a CUE sheet from a CD diff --git a/misc/mkcue/Makefile b/misc/mkcue/Makefile new file mode 100644 index 00000000000..abd3ac16d1b --- /dev/null +++ b/misc/mkcue/Makefile @@ -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 +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 --git a/misc/mkcue/PLIST b/misc/mkcue/PLIST new file mode 100644 index 00000000000..579f15e4ae9 --- /dev/null +++ b/misc/mkcue/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/07/27 19:35:00 drochner Exp $ +bin/mkcue diff --git a/misc/mkcue/distinfo b/misc/mkcue/distinfo new file mode 100644 index 00000000000..b0f3bdd023d --- /dev/null +++ b/misc/mkcue/distinfo @@ -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 --git a/misc/mkcue/patches/patch-aa b/misc/mkcue/patches/patch-aa new file mode 100644 index 00000000000..e5803353696 --- /dev/null +++ b/misc/mkcue/patches/patch-aa @@ -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); + } + |