diff options
author | joerg <joerg@pkgsrc.org> | 2005-10-03 12:35:39 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-10-03 12:35:39 +0000 |
commit | 169ebe56dadcc3170eb3497be7b9dcdf86265745 (patch) | |
tree | e106e2fc1d1749c0922b2f85a53390bc07467fbe /audio | |
parent | 29b0ac3c8ba53bfa914ad576b11947525347ff7b (diff) | |
download | pkgsrc-169ebe56dadcc3170eb3497be7b9dcdf86265745.tar.gz |
Allow building on DragonFly.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/cd-discid/distinfo | 3 | ||||
-rw-r--r-- | audio/cd-discid/patches/patch-aa | 28 |
2 files changed, 30 insertions, 1 deletions
diff --git a/audio/cd-discid/distinfo b/audio/cd-discid/distinfo index 4f518b0684c..08d3b20be55 100644 --- a/audio/cd-discid/distinfo +++ b/audio/cd-discid/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.3 2005/02/23 20:39:43 agc Exp $ +$NetBSD: distinfo,v 1.4 2005/10/03 12:35:39 joerg Exp $ SHA1 (cd-discid_0.9.orig.tar.gz) = 389c3b5bbfb96b113f85a8d206f9d0d7052146a4 RMD160 (cd-discid_0.9.orig.tar.gz) = 58049ba778243019a96ab7f8d8eaf213e8eca4fa Size (cd-discid_0.9.orig.tar.gz) = 11217 bytes +SHA1 (patch-aa) = 80dc0338faf17f8b8cb556fa08e973cd01759a02 diff --git a/audio/cd-discid/patches/patch-aa b/audio/cd-discid/patches/patch-aa new file mode 100644 index 00000000000..7634894b4c1 --- /dev/null +++ b/audio/cd-discid/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1 2005/10/03 12:35:39 joerg Exp $ + +--- cd-discid.c.orig 2005-07-22 16:14:41.000000000 +0000 ++++ cd-discid.c +@@ -37,7 +37,7 @@ + * to compile on Solaris */ + #define cdte_track_address cdte_addr.lba + +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + + #include <sys/cdio.h> + #define CDROM_LBA CD_LBA_FORMAT /* first frame is 0 */ +@@ -214,12 +214,12 @@ int main(int argc, char *argv[]) + } + #endif + +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__DragonFly__) + TocEntry[i].cdte_track_address = ntohl(TocEntry[i].cdte_track_address); + #endif + + for (i=0; i < last; i++) { +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__DragonFly__) + TocEntry[i].cdte_track_address = ntohl(TocEntry[i].cdte_track_address); + #endif + cksum += cddb_sum((TocEntry[i].cdte_track_address + CD_MSF_OFFSET) / CD_FRAMES); |