diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-12-27 22:48:22 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-12-27 22:48:22 +0000 |
commit | e73bc707883d363920f6ed117ffb90ad0fd1146d (patch) | |
tree | 908f3e25a2de23179c2fdb547c9a2e561514f273 /audio/asunder | |
parent | 9d8b6503a515a4994ebeb95eca28bbe902acbc9e (diff) | |
download | ports-e73bc707883d363920f6ed117ffb90ad0fd1146d.tar.gz ports-e73bc707883d363920f6ed117ffb90ad0fd1146d.zip |
- Update to 1.0
PR: 118847
Submitted by: Fraser Tweedale <frase@frase.id.au> (maintainer)
Notes
Notes:
svn path=/head/; revision=204638
Diffstat (limited to 'audio/asunder')
-rw-r--r-- | audio/asunder/Makefile | 4 | ||||
-rw-r--r-- | audio/asunder/distinfo | 6 | ||||
-rw-r--r-- | audio/asunder/files/patch-src_main.c | 133 | ||||
-rw-r--r-- | audio/asunder/files/patch-src_threads.c | 28 |
4 files changed, 5 insertions, 166 deletions
diff --git a/audio/asunder/Makefile b/audio/asunder/Makefile index 1b489ed74d2f..72e715aa0536 100644 --- a/audio/asunder/Makefile +++ b/audio/asunder/Makefile @@ -5,8 +5,7 @@ # $FreeBSD$ PORTNAME= asunder -PORTVERSION= 0.8.1 -PORTREVISION= 1 +PORTVERSION= 1.0 CATEGORIES= audio MASTER_SITES= http://littlesvr.ca/asunder/releases/ @@ -20,6 +19,7 @@ OPTIONS= LAME "lame support" on \ OGG "ogg-vorbis support" on \ FLAC "FLAC support" on +USE_BZIP2= yes GNU_CONFIGURE= yes USE_XLIB= yes USE_GNOME= gtk20 diff --git a/audio/asunder/distinfo b/audio/asunder/distinfo index 8f21eb0fb3f8..ddb37b4c47d3 100644 --- a/audio/asunder/distinfo +++ b/audio/asunder/distinfo @@ -1,3 +1,3 @@ -MD5 (asunder-0.8.1.tar.gz) = 75cbd3c99db2bc977b53e39946f8ea86 -SHA256 (asunder-0.8.1.tar.gz) = e1d785a4fa65a3f3785be00c001135e90a531b7de45ccadce80159b130b11f3b -SIZE (asunder-0.8.1.tar.gz) = 169935 +MD5 (asunder-1.0.tar.bz2) = f4f9ac6a1d3120b7a75823936b319b53 +SHA256 (asunder-1.0.tar.bz2) = 7058028e8b9b36854fa59f98e191f3b7b4d882d38485c01b31ca72205e8d392a +SIZE (asunder-1.0.tar.bz2) = 175006 diff --git a/audio/asunder/files/patch-src_main.c b/audio/asunder/files/patch-src_main.c deleted file mode 100644 index 30add76d8803..000000000000 --- a/audio/asunder/files/patch-src_main.c +++ /dev/null @@ -1,133 +0,0 @@ ---- src/main.c.orig 2007-08-27 04:00:08.000000000 +0200 -+++ src/main.c 2007-10-08 13:17:38.000000000 +0200 -@@ -22,7 +22,7 @@ - #include <sys/stat.h> - #include <fcntl.h> - #include <sys/ioctl.h> --#include <linux/cdrom.h> -+#include <sys/cdio.h> - #include <unistd.h> - #include <stdlib.h> - #include <string.h> -@@ -177,6 +177,9 @@ - int fd; - bool ret = false; - int status; -+ -+ struct ioc_read_subchannel cdsc; -+ struct cd_sub_channel_info data; - - // open the device - fd = open(cdrom, O_RDONLY | O_NONBLOCK); -@@ -210,8 +213,13 @@ - static bool alreadyKnowGood = false; /* check when program just started */ - static bool alreadyCleared = true; /* no need to clear when program just started */ - -- status = ioctl(fd, CDROM_DISC_STATUS, CDSL_CURRENT); -- if (status == CDS_AUDIO || status == CDS_MIXED) -+ bzero(&cdsc,sizeof(cdsc)); -+ cdsc.data = &data; -+ cdsc.data_len = sizeof(data); -+ cdsc.data_format = CD_CURRENT_POSITION; -+ cdsc.address_format = CD_MSF_FORMAT; -+ status = ioctl(fd, CDIOCREADSUBCHANNEL, (char *)&cdsc); -+ if (status >= 0) - { - if (!alreadyKnowGood) - { -@@ -308,7 +316,8 @@ - //~ { - //~ ioctl(fd, CDROMCLOSETRAY, CDSL_CURRENT); - //~ } else { -- ioctl(fd, CDROMEJECT, CDSL_CURRENT); -+ ioctl(fd, CDIOCALLOW); -+ ioctl(fd, CDIOCEJECT); - //~ } - - close(fd); -@@ -367,13 +376,16 @@ - { - int fd; - int status; -- struct cdrom_tochdr th; -- struct cdrom_tocentry te; -+ struct ioc_toc_header th; -+ struct ioc_read_toc_single_entry te; - int i; - - cddb_disc_t * disc = NULL; - cddb_track_t * track = NULL; - -+ struct ioc_read_subchannel cdsc; -+ struct cd_sub_channel_info data; -+ - char trackname[9]; - - // open the device -@@ -385,15 +397,20 @@ - } - - // read disc status info -- status = ioctl(fd, CDROM_DISC_STATUS, CDSL_CURRENT); -- if ((status == CDS_AUDIO) || (status == CDS_MIXED)) -+ bzero(&cdsc,sizeof(cdsc)); -+ cdsc.data = &data; -+ cdsc.data_len = sizeof(data); -+ cdsc.data_format = CD_CURRENT_POSITION; -+ cdsc.address_format = CD_MSF_FORMAT; -+ status = ioctl(fd, CDIOCREADSUBCHANNEL, (char *)&cdsc); -+ if (status >= 0) - { - // see if we can read the disc's table of contents (TOC). -- if (ioctl(fd, CDROMREADTOCHDR, &th) == 0) -+ if (ioctl(fd, CDIOREADTOCHEADER, &th) == 0) - { - #ifdef DEBUG -- printf("starting track: %d\n", th.cdth_trk0); -- printf("ending track: %d\n", th.cdth_trk1); -+ printf("starting track: %d\n", th.starting_track); -+ printf("ending track: %d\n", th.ending_track); - #endif - disc = cddb_disc_new(); - if (disc == NULL) -@@ -402,13 +419,13 @@ - exit(-1); - } - -- te.cdte_format = CDROM_LBA; -- for (i=th.cdth_trk0; i<=th.cdth_trk1; i++) -+ te.address_format = CD_LBA_FORMAT; -+ for (i=th.starting_track; i<=th.ending_track; i++) - { -- te.cdte_track = i; -- if (ioctl(fd, CDROMREADTOCENTRY, &te) == 0) -+ te.track = i; -+ if (ioctl(fd, CDIOREADTOCENTRY, &te) == 0) - { -- if (te.cdte_ctrl & CDROM_DATA_TRACK) -+ if (te.entry.control & 0x04) - { - // track is a DATA track. make sure its "rip" box is not checked by default - track_format[i] = FALSE; -@@ -423,17 +440,17 @@ - exit(-1); - } - -- cddb_track_set_frame_offset(track, te.cdte_addr.lba+SECONDS_TO_FRAMES(2)); -+ cddb_track_set_frame_offset(track, ntohl(te.entry.addr.lba)+SECONDS_TO_FRAMES(2)); - snprintf(trackname, 9, "Track %d", i); - cddb_track_set_title(track, trackname); - cddb_track_set_artist(track, "Unknown Artist"); - cddb_disc_add_track(disc, track); - } - } -- te.cdte_track = CDROM_LEADOUT; -- if (ioctl(fd, CDROMREADTOCENTRY, &te) == 0) -+ te.track = 0xAA; -+ if (ioctl(fd, CDIOREADTOCENTRY, &te) == 0) - { -- cddb_disc_set_length(disc, (te.cdte_addr.lba+SECONDS_TO_FRAMES(2))/SECONDS_TO_FRAMES(1)); -+ cddb_disc_set_length(disc, (ntohl(te.entry.addr.lba)+SECONDS_TO_FRAMES(2))/SECONDS_TO_FRAMES(1)); - } - } - } diff --git a/audio/asunder/files/patch-src_threads.c b/audio/asunder/files/patch-src_threads.c deleted file mode 100644 index a81271466f67..000000000000 --- a/audio/asunder/files/patch-src_threads.c +++ /dev/null @@ -1,28 +0,0 @@ ---- src/threads.c.orig 2007-08-26 12:53:58.000000000 +0200 -+++ src/threads.c 2007-10-08 13:12:44.000000000 +0200 -@@ -334,12 +334,6 @@ - gdk_threads_leave(); - } - -- // no more tracks to rip, safe to eject -- if (global_prefs->eject_on_done) -- { -- eject_disc(global_prefs->cdrom); -- } -- - return NULL; - } - -@@ -556,6 +550,12 @@ - - aborted = 1; // so the tracker thread will exit - -+ // no more tracks to rip, safe to eject -+ if (global_prefs->eject_on_done) -+ { -+ eject_disc(global_prefs->cdrom); -+ } -+ - gdk_threads_enter(); - gtk_widget_hide(win_ripping); - gdk_flush(); |