pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/libdiscid update to 0.2.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c248ff3dfb21
branches:  trunk
changeset: 395180:c248ff3dfb21
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Jul 07 17:44:50 2009 +0000

description:
update to 0.2.2
changes:
-Addded the discid_get_webservice_url() function
-portability improvements
pkgsrc change: add NetBSD support

diffstat:

 audio/libdiscid/Makefile         |    6 +-
 audio/libdiscid/distinfo         |   10 ++-
 audio/libdiscid/patches/patch-aa |   13 ++++
 audio/libdiscid/patches/patch-ab |  114 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 136 insertions(+), 7 deletions(-)

diffs (171 lines):

diff -r 56f0b359a169 -r c248ff3dfb21 audio/libdiscid/Makefile
--- a/audio/libdiscid/Makefile  Tue Jul 07 17:41:48 2009 +0000
+++ b/audio/libdiscid/Makefile  Tue Jul 07 17:44:50 2009 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2007/06/08 06:42:32 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2009/07/07 17:44:50 drochner Exp $
 
-DISTNAME=      libdiscid-0.1.0
+DISTNAME=      libdiscid-0.2.2
 CATEGORIES=    audio
 MASTER_SITES=  http://users.musicbrainz.org/~matt/
 
@@ -8,7 +8,7 @@
 HOMEPAGE=      http://musicbrainz.org/doc/libdiscid
 COMMENT=       Library for creating MusicBrainz DiscIDs
 
-ONLY_FOR_PLATFORM=     Darwin-*-* Linux-*-*
+ONLY_FOR_PLATFORM=     Darwin-*-* Linux-*-* NetBSD-*-*
 
 GNU_CONFIGURE= yes
 USE_LIBTOOL=   yes
diff -r 56f0b359a169 -r c248ff3dfb21 audio/libdiscid/distinfo
--- a/audio/libdiscid/distinfo  Tue Jul 07 17:41:48 2009 +0000
+++ b/audio/libdiscid/distinfo  Tue Jul 07 17:44:50 2009 +0000
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2006/10/13 02:31:56 epg Exp $
+$NetBSD: distinfo,v 1.2 2009/07/07 17:44:50 drochner Exp $
 
-SHA1 (libdiscid-0.1.0.tar.gz) = fbd4494155086206a717e0ef94e08d0f2978b317
-RMD160 (libdiscid-0.1.0.tar.gz) = f18b21bdb33eb0f4471b5e68a3b7bff295c70ab7
-Size (libdiscid-0.1.0.tar.gz) = 327716 bytes
+SHA1 (libdiscid-0.2.2.tar.gz) = 103ead94eeb8bea04ad92ab15ed6832be9b3fad9
+RMD160 (libdiscid-0.2.2.tar.gz) = 200703a02cb47d19f478b9a9c83e01a22737f491
+Size (libdiscid-0.2.2.tar.gz) = 347907 bytes
+SHA1 (patch-aa) = da67f45f26672a5c4e08d81954696bc0a5907022
+SHA1 (patch-ab) = 364cc81b7db9f84a82fe7dd7330f8648fa23cf21
diff -r 56f0b359a169 -r c248ff3dfb21 audio/libdiscid/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libdiscid/patches/patch-aa  Tue Jul 07 17:44:50 2009 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 2009/07/07 17:44:51 drochner Exp $
+
+--- configure.orig     2009-06-16 19:05:52.000000000 +0200
++++ configure
+@@ -2474,7 +2474,7 @@ case "${host_cpu}-${host_os}" in
+   *-freebsd*) os=freebsd ;;
+   *-darwin*)  os=darwin; LIBS='-framework CoreFoundation -framework IOKit';;
+   *-linux*)   os=linux ;;
+-  #*-netbsd*)  os=netbsd ;;
++  *-netbsd*)  os=freebsd ;;
+   #*-openbsd*) os=openbsd ;;
+   #*-os2_emx*) os=os2 ;;
+   #*-solaris*) os=solaris; LIBS='-lsocket -lnsl' ;;
diff -r 56f0b359a169 -r c248ff3dfb21 audio/libdiscid/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libdiscid/patches/patch-ab  Tue Jul 07 17:44:50 2009 +0000
@@ -0,0 +1,114 @@
+$NetBSD: patch-ab,v 1.1 2009/07/07 17:44:51 drochner Exp $
+
+--- src/disc_freebsd.c.orig    2008-01-12 12:41:51.000000000 +0100
++++ src/disc_freebsd.c
+@@ -45,6 +45,9 @@
+ 
+ #define XA_INTERVAL                   ((60 + 90 + 2) * CD_FRAMES)
+ 
++#ifdef __NetBSD__
++#define CDIOREADTOCENTRY CDIOREADTOCENTRIES
++#endif
+ 
+ /* TODO: make sure it's available */
+ int snprintf(char *str, size_t size, const char *format, ...);
+@@ -52,7 +55,12 @@ int snprintf(char *str, size_t size, con
+ 
+ static int read_toc_header(int fd, int *first, int *last) {
+       struct ioc_toc_header th;
++#ifdef __NetBSD__
++      struct cd_toc_entry td;
++      struct ioc_read_toc_entry te;
++#else
+       struct ioc_read_toc_single_entry te;
++#endif
+ 
+       int ret = ioctl(fd, CDIOREADTOCHEADER, &th);
+ 
+@@ -68,10 +76,20 @@ static int read_toc_header(int fd, int *
+        * session are handled correctly.
+        */
+       te.address_format = CD_LBA_FORMAT;
++#ifdef __NetBSD__
++      te.starting_track = th.ending_track;
++      te.data_len = sizeof(td);
++      te.data = &td;
++#else
+       te.track = th.ending_track;
++#endif
+       ret = ioctl(fd, CDIOREADTOCENTRY, &te);
+ 
++#ifdef __NetBSD__
++      if (( td.control & CD_DATA_TRACK) != 0 )
++#else
+       if (( te.entry.control & CD_DATA_TRACK) != 0 )
++#endif
+               (*last)--;
+ 
+       return ret;
+@@ -79,17 +97,32 @@ static int read_toc_header(int fd, int *
+ 
+ 
+ static int read_toc_entry(int fd, int track_num, unsigned long *lba) {
++#ifdef __NetBSD__
++      struct cd_toc_entry td;
++      struct ioc_read_toc_entry te;
++#else
+       struct ioc_read_toc_single_entry te;
++#endif
+       int ret;
+ 
++#ifdef __NetBSD__
++      te.starting_track = track_num;
++      te.data_len = sizeof(td);
++      te.data = &td;
++#else
+       te.track = track_num;
++#endif
+       te.address_format = CD_LBA_FORMAT;
+ 
+       ret = ioctl(fd, CDIOREADTOCENTRY, &te);
+       assert( te.address_format == CD_LBA_FORMAT );
+ 
+       if ( ret == 0 )
++#ifdef __NetBSD__
++              *lba = td.addr.lba;
++#else
+               *lba = ntohl(te.entry.addr.lba);
++#endif
+ 
+       return ret;
+ }
+@@ -97,16 +130,32 @@ static int read_toc_entry(int fd, int tr
+ 
+ static int read_leadout(int fd, unsigned long *lba) {
+       struct ioc_toc_header th;
++#ifdef __NetBSD__
++      struct cd_toc_entry td;
++      struct ioc_read_toc_entry te;
++#else
+       struct ioc_read_toc_single_entry te;
++#endif
+       int ret;
+    
+       ret = ioctl(fd, CDIOREADTOCHEADER, &th);
++#ifdef __NetBSD__
++      te.starting_track = th.ending_track;
++      te.data_len = sizeof(td);
++      te.data = &td;
++#else
+       te.track = th.ending_track;
++#endif
+       te.address_format = CD_LBA_FORMAT;
+       ret = ioctl(fd, CDIOREADTOCENTRY, &te);
+ 
++#ifdef __NetBSD__
++      if (( td.control & CD_DATA_TRACK) != 0 ) {
++              *lba = td.addr.lba - 11400;
++#else
+       if (( te.entry.control & CD_DATA_TRACK) != 0 ) {
+               *lba = ntohl(te.entry.addr.lba) - 11400;
++#endif
+               return ret;
+       }
+ 



Home | Main Index | Thread Index | Old Index