aboutsummaryrefslogtreecommitdiffstats
path: root/audio/wmcdplay
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2011-08-01 12:16:36 +0800
committerbapt <bapt@FreeBSD.org>2011-08-01 12:16:36 +0800
commit0227c6a427310030ff21495c23d36590a4b42ac0 (patch)
tree3d2e7108ac9259517181b27f9f7b83c54fc3c7ad /audio/wmcdplay
parentf681a9720a0cc0dbb0df4762561d5ea173c8d751 (diff)
downloadfreebsd-ports-gnome-0227c6a427310030ff21495c23d36590a4b42ac0.tar.gz
freebsd-ports-gnome-0227c6a427310030ff21495c23d36590a4b42ac0.tar.zst
freebsd-ports-gnome-0227c6a427310030ff21495c23d36590a4b42ac0.zip
Bye bye abandonwares
2011-08-01 archivers/zipios++: No more public distfiles 2011-08-01 astro/sattrack: No more public distfiles 2011-08-01 audio/bladeenc: Looks like an abandonware 2011-08-01 audio/cdplayer.app: Looks like an abandonware, no more public distfile 2011-08-01 audio/id3ed: No more public distfiles, looks like an abandonware 2011-08-01 audio/linux-vsound: Abandonware 2011-08-01 audio/mpegaudio: No more public distfiles 2011-08-01 audio/mpmf20: Abandonware 2011-08-01 audio/mutemix: abandonware, no more public distfiles 2011-08-01 audio/phatbeat: abandonware, no more public distfiles 2011-08-01 audio/pimp3: No more public distfiles 2011-08-01 audio/rbscrobbler: Looks like abandonware, no more public distfile 2011-08-01 audio/ripenc: Looks like and abandonware, No more distfile 2011-08-01 audio/wmcdplay: Looks like an abandonware, no more public distfile 2011-08-01 audio/wmfmixer: Looks like an abandonware, no more public distfiles 2011-08-01 audio/wmmixer: Looks like an abandonware, no more public distfile 2011-08-01 audio/wmmp3: Looks like an abandonware, no more public distfile 2011-08-01 audio/wmusic: Looks like an abandonware, no more distfiles 2011-08-01 audio/xmms-kj: Looks like an abandonware, no more public distfiles 2011-08-01 audio/xmms-pipe: Looks like an abandonware, no more public distfile 2011-08-01 audio/xmms-speex: Looks like an abandonware, no more public distfile 2011-08-01 audio/xsidplay: Looks like an abandonware, no more public distfile 2011-08-01 audio/xtuner: Looks like an abandonware, no more public distfile
Diffstat (limited to 'audio/wmcdplay')
-rw-r--r--audio/wmcdplay/Makefile30
-rw-r--r--audio/wmcdplay/distinfo2
-rw-r--r--audio/wmcdplay/files/patch-aa247
-rw-r--r--audio/wmcdplay/files/patch-ab10
-rw-r--r--audio/wmcdplay/pkg-descr3
5 files changed, 0 insertions, 292 deletions
diff --git a/audio/wmcdplay/Makefile b/audio/wmcdplay/Makefile
deleted file mode 100644
index 27325da25ef8..000000000000
--- a/audio/wmcdplay/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-# New ports collection makefile for: wmcdplay
-# Date created: 7 December 1998
-# Whom: Chia-liang Kao <clkao@CirX.ORG>
-#
-# $FreeBSD$
-#
-
-PORTNAME= wmcdplay
-PORTVERSION= 1.0b1
-PORTREVISION= 1
-CATEGORIES= audio windowmaker
-MASTER_SITES= http://www.geocities.com/SiliconValley/Vista/2471/files/
-DISTNAME= wmcdplay-1.0-beta1
-EXTRACT_SUFX= .tgz
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= A CD player for the WindowMaker dock
-
-DEPRECATED= Looks like an abandonware, no more public distfile
-EXPIRATION_DATE= 2011-08-01
-
-BROKEN= does not build
-
-PLIST_FILES= bin/wmcdplay
-WRKSRC= ${WRKDIR}/wmcdplay
-
-USE_IMAKE= yes
-USE_XORG= xpm
-
-.include <bsd.port.mk>
diff --git a/audio/wmcdplay/distinfo b/audio/wmcdplay/distinfo
deleted file mode 100644
index 0fd6824037c4..000000000000
--- a/audio/wmcdplay/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (wmcdplay-1.0-beta1.tgz) = 20f0421b0e7ad6eb413b839ca940dd6e3409a37194f27e5534511f5a6b09039a
-SIZE (wmcdplay-1.0-beta1.tgz) = 31919
diff --git a/audio/wmcdplay/files/patch-aa b/audio/wmcdplay/files/patch-aa
deleted file mode 100644
index e84cafe50d36..000000000000
--- a/audio/wmcdplay/files/patch-aa
+++ /dev/null
@@ -1,247 +0,0 @@
---- cdctl.h.orig Sat Sep 5 11:11:26 1998
-+++ cdctl.h Sun Mar 24 22:38:59 2002
-@@ -30,7 +30,9 @@
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
--#include <linux/cdrom.h>
-+#include <sys/cdio.h>
-+#include <arpa/inet.h>
-+#define CD_MSF_OFFSET 150
-
- // CD status values
- #define ssData 0
-@@ -113,10 +115,10 @@
- case acStop:
-
- #ifdef _CDCTL_SOFT_STOP
-- ioctl(cdfd,CDROMSTART);
-+ ioctl(cdfd,CDIOCSTART);
- #endif
- #ifndef _CDCTL_SOFT_STOP
-- ioctl(cdfd,CDROMSTOP);
-+ ioctl(cdfd,CDIOCSTOP);
- #endif
- tskOurPlay=false;
-
-@@ -127,10 +129,10 @@
- tskOurPlay=true;
- break;
- case acPause:
-- ioctl(cdfd,CDROMPAUSE);
-+ ioctl(cdfd,CDIOCPAUSE);
- break;
- case acResume:
-- ioctl(cdfd,CDROMRESUME);
-+ ioctl(cdfd,CDIOCRESUME);
- break;
- case acPrev:
- newtrk--;
-@@ -157,13 +159,13 @@
- }
- break;
- case acEject:
-- if(ioctl(cdfd,CDROMEJECT))
-+ if(ioctl(cdfd,CDIOCEJECT))
- status_state=ssNoCD;
- else
- status_state=ssTrayOpen;
- break;
- case acClose:
-- ioctl(cdfd,CDROMCLOSETRAY);
-+ ioctl(cdfd,CDIOCCLOSE);
- status_state=ssNoCD;
- break;
- }
-@@ -172,9 +174,14 @@
- }
- void doStatus(){
- if(cdfdopen){
-- struct cdrom_subchnl sc;
-- sc.cdsc_format=CDROM_MSF;
-- if(ioctl(cdfd, CDROMSUBCHNL, &sc)){
-+ struct ioc_read_subchannel sc;
-+ struct cd_sub_channel_info csci;
-+ sc.address_format=CD_MSF_FORMAT;
-+ sc.track = 0;
-+ sc.data=&csci;
-+ sc.data_len=sizeof(csci);
-+ sc.data_format=CD_CURRENT_POSITION;
-+ if(ioctl(cdfd, CDIOCREADSUBCHANNEL, &sc)){
- if(status_state!=ssNoCD)
- status_state=ssTrayOpen;
- status_track=0;
-@@ -185,18 +192,18 @@
- if(status_state==ssNoCD || status_state==ssTrayOpen)
- readTOC();
- int start,now,stop;
-- switch(sc.cdsc_audiostatus){
-- case CDROM_AUDIO_PLAY:
-+ switch(csci.header.audio_status){
-+ case CD_AS_PLAY_IN_PROGRESS:
- if(status_state==ssStopped)
- tskOurPlay=false;
- status_state=ssPlaying;
- break;
-- case CDROM_AUDIO_PAUSED:
-+ case CD_AS_PLAY_PAUSED:
- if(status_state==ssStopped)
- tskOurPlay=false;
- status_state=ssPaused;
- break;
-- case CDROM_AUDIO_COMPLETED:
-+ case CD_AS_PLAY_COMPLETED:
- if(tskOurPlay){
- status_state=ssPlaying;
- selecttrack();
-@@ -212,7 +219,7 @@
- if(tskOurPlay){
- start = cd_trklist[status_track].track_start;
- stop = start + cd_trklist[status_track].track_len - _CDCTL_SENSITIVITY;
-- now = ((sc.cdsc_absaddr.msf.minute) * 60 + sc.cdsc_absaddr.msf.second) * 75 + sc.cdsc_absaddr.msf.frame - CD_MSF_OFFSET;
-+ now = ((csci.what.position.absaddr.msf.minute) * 60 + csci.what.position.absaddr.msf.second) * 75 + csci.what.position.absaddr.msf.frame - CD_MSF_OFFSET;
- if(now>0 && (now<start || now>=stop)){
- status_state=ssPlaying;
- selecttrack();
-@@ -227,7 +234,7 @@
-
- status_state=ssStopped;
- }
-- trackinfo(&sc);
-+ trackinfo(&csci);
- if(cd_trklist[status_track].track_data)
- status_state=ssData;
- }
-@@ -235,19 +242,21 @@
- }
- void setVolume(int l, int r){
- if(cdfdopen){
-- struct cdrom_volctrl vol;
-- vol.channel0=l;
-- vol.channel1=r;
-- ioctl(cdfd,CDROMVOLCTRL,&vol);
-+ struct ioc_vol vol;
-+ vol.vol[0]=l;
-+ vol.vol[1]=r;
-+ vol.vol[2]=0;
-+ vol.vol[3]=0;
-+ ioctl(cdfd,CDIOCSETVOL,&vol);
- readVolume();
- }
- }
- void readVolume(){
- if(cdfdopen){
-- struct cdrom_volctrl vol;
-- ioctl(cdfd,CDROMVOLREAD,&vol);
-- status_volumel=vol.channel0;
-- status_volumer=vol.channel1;
-+ struct ioc_vol vol;
-+ ioctl(cdfd,CDIOCGETVOL,&vol);
-+ status_volumel=vol.vol[0];
-+ status_volumer=vol.vol[1];
- }
- }
- int getVolumeL(){
-@@ -296,12 +305,30 @@
- void readTOC(){
- if(cd_trklist!=NULL)
- free(cd_trklist);
-- struct cdrom_tochdr hdr;
-- ioctl(cdfd, CDROMREADTOCHDR, &hdr);
-- cd_tracks=hdr.cdth_trk1;
-+ struct ioc_toc_header hdr;
-+ ioctl(cdfd, CDIOREADTOCHEADER, &hdr);
-+ cd_tracks=hdr.ending_track;
- cd_trklist=(struct CDTrack *)malloc(cd_tracks*sizeof(struct CDTrack));
-+#ifdef __FreeBSD__
-+ struct ioc_read_toc_entry te;
-+
-+ te.data_len = (cd_tracks + 1) * sizeof(struct cd_toc_entry);
-+ te.data = (struct cd_toc_entry *)malloc(te.data_len);
-+ te.address_format = CD_LBA_FORMAT;
-+ te.starting_track = 0;
-+ ioctl(cdfd, CDIOREADTOCENTRYS, &te);
-+ for(int i = 0; i < cd_tracks; i++) {
-+ cd_trklist[i].track_data = te.data[i].control & 4 ? true : false;
-+ cd_trklist[i].track_start = ntohl(te.data[i].addr.lba);
-+ cd_trklist[i].track_len = ntohl(te.data[i + 1].addr.lba)
-+ - cd_trklist[i].track_start;
-+ }
-+ cd_len = ntohl(te.data[cd_tracks].addr.lba);
-+ free(te.data);
-+#else
- struct cdrom_tocentry te;
- int prev_addr=0;
-+
- for(int i=0;i<=cd_tracks;i++){
- if(i==cd_tracks)
- te.cdte_track=CDROM_LEADOUT;
-@@ -320,35 +347,42 @@
- else
- cd_len = this_addr;
- }
-+#endif
- }
-- void trackinfo(struct cdrom_subchnl *subchnl){
-+ void trackinfo(struct cd_sub_channel_info *subchnl){
-+ int currenttrack = status_track;
-+
- if(status_state==ssPlaying || status_state==ssPaused){
-- status_pos=((subchnl->cdsc_absaddr.msf.minute) * 60 + subchnl->cdsc_absaddr.msf.second) * 75 + subchnl->cdsc_absaddr.msf.frame - CD_MSF_OFFSET;
-+ status_pos=((subchnl->what.position.absaddr.msf.minute) * 60 + subchnl->what.position.absaddr.msf.second) * 75 + subchnl->what.position.absaddr.msf.frame - CD_MSF_OFFSET;
- for(status_track=0;status_track<cd_tracks;status_track++){
-- if(status_pos<cd_trklist[status_track].track_start+cd_trklist[status_track].track_len)
-+ if(status_pos<cd_trklist[status_track].track_start+cd_trklist[status_track].track_len) {
-+ if (status_track != currenttrack) {
-+ status_track = currenttrack;
-+ }
- break;
-+ }
- }
- }
- }
- void play(){
-- struct cdrom_msf pmsf;
-+ struct ioc_play_msf pmsf;
- int abs0=status_pos + CD_MSF_OFFSET;
- int abs1=cd_trklist[status_track].track_start + cd_trklist[status_track].track_len - 1 + CD_MSF_OFFSET;
-- pmsf.cdmsf_min0=abs0/(75*60);
-- pmsf.cdmsf_min1=abs1/(75*60);
-- pmsf.cdmsf_sec0=(abs0%(75*60))/75;
-- pmsf.cdmsf_sec1=(abs1%(75*60))/75;
-- pmsf.cdmsf_frame0=abs0%75;
-- pmsf.cdmsf_frame1=abs1%75;
-+ pmsf.start_m=abs0/(75*60);
-+ pmsf.end_m=abs1/(75*60);
-+ pmsf.start_s=(abs0%(75*60))/75;
-+ pmsf.end_s=(abs1%(75*60))/75;
-+ pmsf.start_f=abs0%75;
-+ pmsf.end_f=abs1%75;
-
- #ifdef _CDCTL_STOP_BEFORE_PLAY
-- ioctl(cdfd,CDROMSTOP);
-+ ioctl(cdfd,CDIOCSTOP);
- #endif
- #ifdef _CDCTL_START_BEFORE_PLAY
-- ioctl(cdfd,CDROMSTART);
-+ ioctl(cdfd,CDIOCSTART);
- #endif
-
-- ioctl(cdfd,CDROMPLAYMSF,&pmsf);
-+ ioctl(cdfd,CDIOCPLAYMSF,&pmsf);
- }
- void select(int trk){
- status_track=trk;
-@@ -357,10 +391,10 @@
- if(cd_trklist[status_track].track_data){
-
- #ifdef _CDCTL_HARD_STOP
-- ioctl(cdfd,CDROMSTOP);
-+ ioctl(cdfd,CDIOCSTOP);
- #endif
- #ifndef _CDCTL_HARD_STOP
-- ioctl(cdfd,CDROMSTART);
-+ ioctl(cdfd,CDIOCSTART);
- #endif
- tskOurPlay=false;
-
diff --git a/audio/wmcdplay/files/patch-ab b/audio/wmcdplay/files/patch-ab
deleted file mode 100644
index 955bb90ab2d2..000000000000
--- a/audio/wmcdplay/files/patch-ab
+++ /dev/null
@@ -1,10 +0,0 @@
---- Imakefile.orig Sun Sep 6 01:11:26 1998
-+++ Imakefile Tue Nov 19 23:05:19 2002
-@@ -4,5 +4,6 @@
-
- SRCS = wmcdplay.cc
- OBJS = wmcdplay.o
-+CC = $(CXX)
-
--ComplexProgramTarget(wmcdplay)
-+ComplexProgramTargetNoMan(wmcdplay)
diff --git a/audio/wmcdplay/pkg-descr b/audio/wmcdplay/pkg-descr
deleted file mode 100644
index d9c1076e5f18..000000000000
--- a/audio/wmcdplay/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-CD player designed for WindowMaker
-
-WWW: http://www.geocities.com/SiliconValley/Vista/2471/files/