diff options
author | miwi <miwi@FreeBSD.org> | 2007-12-28 06:48:22 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-12-28 06:48:22 +0800 |
commit | d7eb4b9ed584c523bb92554bae9d14758f8b5b88 (patch) | |
tree | 2576e46022a5fefe19393955738504836d54eecd /audio | |
parent | 98d0c0f36f37902546eb6a41cb6d79a2ae88b279 (diff) | |
download | freebsd-ports-gnome-d7eb4b9ed584c523bb92554bae9d14758f8b5b88.tar.gz freebsd-ports-gnome-d7eb4b9ed584c523bb92554bae9d14758f8b5b88.tar.zst freebsd-ports-gnome-d7eb4b9ed584c523bb92554bae9d14758f8b5b88.zip |
- Update to 1.0
PR: 118847
Submitted by: Fraser Tweedale <frase@frase.id.au> (maintainer)
Diffstat (limited to 'audio')
-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(); |