diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-07-20 19:19:22 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-07-20 19:19:22 +0000 |
commit | a2a3d9b1f4077266ca0134829286cd6885fc3883 (patch) | |
tree | 260d2a843aa7c2daccda767d58a376d12f86674f /audio/Maaate | |
parent | Update to 0.6 (diff) |
fix build on current
portlint cleanup
bump portrevision
PR: 40812
Submitted by: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
Notes
Notes:
svn path=/head/; revision=63289
Diffstat (limited to 'audio/Maaate')
-rw-r--r-- | audio/Maaate/Makefile | 5 | ||||
-rw-r--r-- | audio/Maaate/files/patch-src-mpeg-MPEGfile.cc | 67 | ||||
-rw-r--r-- | audio/Maaate/files/patch-src-mpeg-layer1.cc | 32 | ||||
-rw-r--r-- | audio/Maaate/files/patch-src-plugins-spectralFlux.cc | 15 | ||||
-rw-r--r-- | audio/Maaate/files/patch-src-tier1-SOUNDfile.cc | 107 | ||||
-rw-r--r-- | audio/Maaate/files/patch-src-tier2-segmentData.cc | 49 | ||||
-rw-r--r-- | audio/Maaate/pkg-plist | 8 |
7 files changed, 275 insertions, 8 deletions
diff --git a/audio/Maaate/Makefile b/audio/Maaate/Makefile index 12753c98a59b..3cf8795118cb 100644 --- a/audio/Maaate/Makefile +++ b/audio/Maaate/Makefile @@ -8,18 +8,19 @@ PORTNAME= Maaate PORTVERSION= 0.2.2 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://www.cmis.csiro.au/maaate/packages/ MAINTAINER= ports@FreeBSD.org USE_REINPLACE= yes -GNU_CONFIGURE= yes USE_GMAKE= yes +USE_LIBTOOL= yes INSTALLS_SHLIB= yes post-patch: - @${REINPLACE_CMD} -E -e "s,-ldl,,g ; s,\(CCLD,(CXXLD,g" ${WRKSRC}/demos/Makefile.in + @${REINPLACE_CMD} -e "s,-ldl,,g ; s,(CCLD,(CXXLD,g" ${WRKSRC}/demos/Makefile.in post-install: .if !defined(NOPORTDOCS) diff --git a/audio/Maaate/files/patch-src-mpeg-MPEGfile.cc b/audio/Maaate/files/patch-src-mpeg-MPEGfile.cc new file mode 100644 index 000000000000..e40632da457d --- /dev/null +++ b/audio/Maaate/files/patch-src-mpeg-MPEGfile.cc @@ -0,0 +1,67 @@ +--- src/mpeg/MPEGfile.cc.orig Mon Mar 4 03:31:28 2002 ++++ src/mpeg/MPEGfile.cc Sat Jul 20 17:21:11 2002 +@@ -97,7 +97,7 @@ + /*---------------- time functions --------------------*/ + + float +-MPEGfile::sample_duration( Resolution res = LOW ) { ++MPEGfile::sample_duration( Resolution res) { + //duration of one MPEG frame + double frameDur = (1.0*samples_per_frame() / (1000.0 * samplingrate())); + +@@ -147,7 +147,7 @@ + } + + unsigned int +-MPEGfile::timeticks( Resolution res = LOW ) { ++MPEGfile::timeticks( Resolution res) { + if ( layer() == III ) { + if ( res == LOW || res == PCM) { + return 18; +@@ -164,7 +164,7 @@ + /*------------------- skip and analyse function -----------*/ + + bool +-MPEGfile::next_window( Resolution res = LOW ) { ++MPEGfile::next_window( Resolution res) { + int nb_gr = nb_granules(); + DecodeLevel touse; + //futur current window +@@ -272,8 +272,8 @@ + /*------------- access function ----------------*/ + + double +-MPEGfile::freq_value( unsigned int ch, unsigned int sb, unsigned int nb = 0, +- Resolution res = LOW ) { ++MPEGfile::freq_value( unsigned int ch, unsigned int sb, unsigned int nb, ++ Resolution res) { + if ( res == HIGH && layer() == III) { + return mdct_sample (ch,sb); //576 subbands + } else { +@@ -283,7 +283,7 @@ + } + + unsigned int +-MPEGfile::nb_subbands( Resolution res = LOW ) { ++MPEGfile::nb_subbands( Resolution res) { + if ( layer() == III && res == HIGH ) { + return 576; + } else { +@@ -423,7 +423,7 @@ + + //allow to parse next frame if available, keep windowNo up to date + bool +-MPEGfile::goTo_nextFrame( Resolution res = LOW) { ++MPEGfile::goTo_nextFrame( Resolution res) { + if (!data_available()) return false; + long oldfr = frameNo; + while (frameNo == oldfr) { +@@ -732,7 +732,7 @@ + } + + short +-MPEGfile::pcm_sample (unsigned int ch, unsigned int sb, unsigned int no, unsigned int ss=0) { ++MPEGfile::pcm_sample (unsigned int ch, unsigned int sb, unsigned int no, unsigned int ss) { + return audio->pcm_sample(ch, sb, no, ss); + } + diff --git a/audio/Maaate/files/patch-src-mpeg-layer1.cc b/audio/Maaate/files/patch-src-mpeg-layer1.cc new file mode 100644 index 000000000000..76b5d776c444 --- /dev/null +++ b/audio/Maaate/files/patch-src-mpeg-layer1.cc @@ -0,0 +1,32 @@ +--- src/mpeg/layer1.cc.orig Thu Jan 10 00:32:43 2002 ++++ src/mpeg/layer1.cc Sat Jul 20 17:21:11 2002 +@@ -235,25 +235,25 @@ + } + + float +-Layer1::scalefactor (unsigned int channel, unsigned int subband, unsigned int ss=0) ++Layer1::scalefactor (unsigned int channel, unsigned int subband, unsigned int ss) + { + return maaate_scalefactors[scale_index[channel][subband]]; + } + + int +-Layer1::sample (unsigned int channel, unsigned int subb, unsigned int number, unsigned int ss=0) ++Layer1::sample (unsigned int channel, unsigned int subb, unsigned int number, unsigned int ss) + { + return samples[number][channel][subb]; + } + + double +-Layer1::restored_sample (unsigned int ch, unsigned int subb, unsigned int no, unsigned int ss=0) ++Layer1::restored_sample (unsigned int ch, unsigned int subb, unsigned int no, unsigned int ss) + { + return restoredsamples[no][ch][subb]; + } + + short +-Layer1::pcm_sample (unsigned int ch, unsigned int subb, unsigned int no, unsigned int ss=0) ++Layer1::pcm_sample (unsigned int ch, unsigned int subb, unsigned int no, unsigned int ss) + { + return pcm[no][ch][subb]; + } diff --git a/audio/Maaate/files/patch-src-plugins-spectralFlux.cc b/audio/Maaate/files/patch-src-plugins-spectralFlux.cc new file mode 100644 index 000000000000..b8cb09b94f46 --- /dev/null +++ b/audio/Maaate/files/patch-src-plugins-spectralFlux.cc @@ -0,0 +1,15 @@ +--- src/plugins/spectralFlux.cc.orig Wed Jan 23 12:22:13 2002 ++++ src/plugins/spectralFlux.cc Sat Jul 20 17:21:11 2002 +@@ -182,9 +182,9 @@ + + //temporary results + int SBM = mf->nb_subbands(LOW); +- double temp[SBM]; +- double old_temp[SBM]; +- double (* aux)[SBM]; ++ double btemp[SBM]; ++ double bold_temp[SBM]; ++ double *temp = btemp, *old_temp = bold_temp, **aux; + double max = 0.0; + + diff --git a/audio/Maaate/files/patch-src-tier1-SOUNDfile.cc b/audio/Maaate/files/patch-src-tier1-SOUNDfile.cc new file mode 100644 index 000000000000..51771abac6bb --- /dev/null +++ b/audio/Maaate/files/patch-src-tier1-SOUNDfile.cc @@ -0,0 +1,107 @@ +--- src/tier1/SOUNDfile.cc.orig Mon Mar 4 03:31:29 2002 ++++ src/tier1/SOUNDfile.cc Sat Jul 20 17:21:11 2002 +@@ -132,7 +132,7 @@ + + //give the duration of one subband sample in sec + float +-SOUNDfile::sample_duration( Resolution res = LOW ) { ++SOUNDfile::sample_duration( Resolution res) { + return format->sample_duration( res ); + } + +@@ -164,7 +164,7 @@ + + //give the nuber of subband samples in one window + unsigned int +-SOUNDfile::timeticks( Resolution res = LOW ) { ++SOUNDfile::timeticks( Resolution res) { + return format->timeticks( res ); + } + +@@ -194,7 +194,7 @@ + /*-------------- extract and skip --------------*/ + //go to next window and analyse it with res + bool +-SOUNDfile::next_window( Resolution res = LOW) { ++SOUNDfile::next_window( Resolution res) { + //set which_max as maxim do not contain a meaningful value + which_max = -1; + return format->next_window( res ); +@@ -212,20 +212,20 @@ + /*--------------- access function ---------------*/ + //give the value of the subband samples of the current window + double +-SOUNDfile::freq_value( unsigned int ch, unsigned int sb, unsigned int nb = 0, Resolution res = LOW ) { ++SOUNDfile::freq_value( unsigned int ch, unsigned int sb, unsigned int nb, Resolution res) { + return format->freq_value(ch,sb,nb,res); + } + + //give the number of subband at that resolution + unsigned int +-SOUNDfile::nb_subbands( Resolution res = LOW ) { ++SOUNDfile::nb_subbands( Resolution res) { + return format->nb_subbands( res ); + } + + /*------------- Analyse functions ----------------------*/ + //give the mean of samples nb in subband sb on both channels if available + double +-SOUNDfile::freqvalue_st_mean( unsigned int sb, unsigned int nb = 0, Resolution res = LOW ) ++SOUNDfile::freqvalue_st_mean( unsigned int sb, unsigned int nb, Resolution res) + { + + if ( format->is_stereo() ) { // in case of a stereo file it is possible to compute the mean +@@ -237,7 +237,7 @@ + + //give the rms of samples nb in subband sb on both channels if available + double +-SOUNDfile::freqvalue_st_rms( unsigned int sb, unsigned int nb = 0, Resolution res = LOW) ++SOUNDfile::freqvalue_st_rms( unsigned int sb, unsigned int nb, Resolution res) + { + + if ( format->is_stereo() ) { // in case of a stereo file it is possible to compute the rms +@@ -249,7 +249,7 @@ + + //give the normalised subband energy samples + double +-SOUNDfile::normalised_sb_nrj( unsigned int sb, unsigned int nb = 0, Resolution res = LOW) ++SOUNDfile::normalised_sb_nrj( unsigned int sb, unsigned int nb, Resolution res) + { + double resu; + +@@ -293,7 +293,7 @@ + + //give a coarse and quick idea of the value in that subband + double +-SOUNDfile::subband_scalefactor ( unsigned int sb, Resolution res = LOW) ++SOUNDfile::subband_scalefactor ( unsigned int sb, Resolution res) + { + switch (filetype) { + case MPEG: +@@ -319,7 +319,7 @@ + + //give the mean of samples over the current window + double +-SOUNDfile::subband_mean( unsigned int sb, Resolution res = LOW) ++SOUNDfile::subband_mean( unsigned int sb, Resolution res) + { + + int num = format->timeticks(res); +@@ -335,7 +335,7 @@ + + //give the rms of samples over the current window + double +-SOUNDfile::subband_rms( unsigned int sb, Resolution res = LOW) ++SOUNDfile::subband_rms( unsigned int sb, Resolution res) + { + + int num = format->timeticks(res); +@@ -351,7 +351,7 @@ + + //give the normalised subband energy over the current window + double +-SOUNDfile::subband_nrj( unsigned int sb, Resolution res = LOW) ++SOUNDfile::subband_nrj( unsigned int sb, Resolution res) + { + double resu; + diff --git a/audio/Maaate/files/patch-src-tier2-segmentData.cc b/audio/Maaate/files/patch-src-tier2-segmentData.cc new file mode 100644 index 000000000000..a990bce7320f --- /dev/null +++ b/audio/Maaate/files/patch-src-tier2-segmentData.cc @@ -0,0 +1,49 @@ +--- src/tier2/segmentData.cc.orig Mon Mar 4 03:31:29 2002 ++++ src/tier2/segmentData.cc Sat Jul 20 17:21:11 2002 +@@ -27,8 +27,8 @@ + #include "segmentData.H" + + // constructor +-SegmentData::SegmentData(double t1, double t2, int col=0, int row=0, +- int i=0, char f=' ', double cnf=0.0) : ++SegmentData::SegmentData(double t1, double t2, int col, int row, ++ int i, char f, double cnf) : + starttime(t1), endtime(t2), columns(col), rows(row), + id(i), flag(f), conf(cnf) { + if (col<0) col=0; +@@ -89,7 +89,7 @@ + // partial copy constructor + SegmentData::SegmentData(const SegmentData& sd, + int st_row, int end_row, +- int i=0, char f=' ', double cnf=0.0) ++ int i, char f, double cnf) + { + int nb_rows; + +@@ -309,7 +309,7 @@ + + // minimum of all contained data + double +-SegmentData::min(double downto = -DBL_MAX) { ++SegmentData::min(double downto ) { + + double * ptr; + +@@ -332,7 +332,7 @@ + + // maximum of all contained data + double +-SegmentData::max(double upto = DBL_MAX) { ++SegmentData::max(double upto) { + + double * ptr; + +@@ -363,7 +363,7 @@ + + // normalize data values to [0;1], clipping outside of [downto;upto] + bool +-SegmentData::normalise(double downto = - DBL_MAX, double upto = DBL_MAX) { ++SegmentData::normalise(double downto, double upto) { + + double * ptr; + diff --git a/audio/Maaate/pkg-plist b/audio/Maaate/pkg-plist index ac7cf80e8f61..e229c3c31b44 100644 --- a/audio/Maaate/pkg-plist +++ b/audio/Maaate/pkg-plist @@ -20,26 +20,22 @@ include/MaaateA.h include/MaaateMPEG.h include/MaaateP.h lib/Maaate/libMaaateM.a -lib/Maaate/libMaaateM.la lib/Maaate/libMaaateM.so lib/Maaate/libMaaateM.so.1 lib/libMaaateA.a -lib/libMaaateA.la lib/libMaaateA.so lib/libMaaateA.so.1 lib/libMaaateMPEG.a -lib/libMaaateMPEG.la lib/libMaaateMPEG.so lib/libMaaateMPEG.so.1 lib/libMaaateP.a -lib/libMaaateP.la lib/libMaaateP.so lib/libMaaateP.so.1 -@dirrm include/Maaate -@dirrm lib/Maaate %%PORTDOCS%%share/doc/Maaate/API.html %%PORTDOCS%%share/doc/Maaate/COPYING %%PORTDOCS%%share/doc/Maaate/ChangeLog %%PORTDOCS%%share/doc/Maaate/THANKS %%PORTDOCS%%share/doc/Maaate/applications.html %%PORTDOCS%%@dirrm share/doc/Maaate +@dirrm lib/Maaate +@dirrm include/Maaate |