diff options
author | db <db@FreeBSD.org> | 2016-09-28 23:01:46 +0800 |
---|---|---|
committer | db <db@FreeBSD.org> | 2016-09-28 23:01:46 +0800 |
commit | 3a61b73a341f41e76d96441acd4ce5e171ac0e82 (patch) | |
tree | cb9225bf24c27fb0cece109dd998a3940ce41fe8 | |
parent | 1c54da89c337017bf905c1af055e4ce3fa112596 (diff) | |
download | freebsd-ports-gnome-3a61b73a341f41e76d96441acd4ce5e171ac0e82.tar.gz freebsd-ports-gnome-3a61b73a341f41e76d96441acd4ce5e171ac0e82.tar.zst freebsd-ports-gnome-3a61b73a341f41e76d96441acd4ce5e171ac0e82.zip |
Update to 0.5.1
Add some examples if requested.
Add some test programs if requested.
N.B. PR is actually against comms/libcodec2 which is a duplicate port.
PR: ports/210186
Submitted by: takefu@
-rw-r--r-- | audio/codec2/Makefile | 38 | ||||
-rw-r--r-- | audio/codec2/distinfo | 5 | ||||
-rw-r--r-- | audio/codec2/pkg-plist | 231 |
3 files changed, 269 insertions, 5 deletions
diff --git a/audio/codec2/Makefile b/audio/codec2/Makefile index bf8ed4c7f2c0..12b674c3e10f 100644 --- a/audio/codec2/Makefile +++ b/audio/codec2/Makefile @@ -1,19 +1,51 @@ # $FreeBSD$ PORTNAME= codec2 -PORTVERSION= 0.5 +PORTVERSION= 0.5.1 CATEGORIES= audio hamradio MASTER_SITES= http://files.freedv.org/codec2/ \ - LOCAL/shurd + LOCAL/db MAINTAINER= hamradio@FreeBSD.org COMMENT= Low bit rate codec +LICENSE= LGPL21 + LIB_DEPENDS= libspeex.so:audio/speex +BROKEN_powerpc64= Does not build + USES= cmake:outsource compiler:c11 tar:xz +USE_LDCONFIG= yes + +OPTIONS_DEFINE= EXAMPLES TEST +OPTIONS_SUB= yes +OPTIONS_UNSET= EXAMPLES TEST +EXAMPLES_CMAKE_ON= -DINSTALL_EXAMPLES=ON +TEST_CMAKE_ON= -DUNITTEST=ON + CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON -USE_LDCONFIG= yes +TEST_SRCFILES= cohpsk_ch cohpsk_demod cohpsk_get_test_bits cohpsk_mod\ + cohpsk_put_test_bits fdmdv_channel freedv_rx freedv_tx\ + generate_codebook genlspdtcb +TEST_UNITTESTFILES= c2validate create_interleaver de extract fdmdv_mem\ + genampdata genlsp genphdata genres lspsync polar2rect\ + pre raw2h scalarlsptest speexnoisesup t16_8\ + t16_8_short tcohpsk test_cohpsk_ch tfdmdv tfifo\ + tinterp tlspsens tnlp tprede tquant vq_train_jvm\ + vqtrain vqtrainjnd vqtrainph vqtrainsp + +pre-patch-TEST-on: + ${REINPLACE_CMD} 's|speex/speex.h|speex/speex_preprocess.h|;\ + s|"_FLAGS"|_FLAGS|' ${WRKSRC}/CMakeLists.txt + +post-install-TEST-on: +.for a in ${TEST_SRCFILES} + ${INSTALL_PROGRAM} ${WRKDIR}/.build/src/${a} ${STAGEDIR}${PREFIX}/bin +.endfor +.for a in ${TEST_UNITTESTFILES} + ${INSTALL_PROGRAM} ${WRKDIR}/.build/unittest/${a} ${STAGEDIR}${PREFIX}/bin +.endfor .include <bsd.port.mk> diff --git a/audio/codec2/distinfo b/audio/codec2/distinfo index 7d9aa7d12330..41ff5bcdcf23 100644 --- a/audio/codec2/distinfo +++ b/audio/codec2/distinfo @@ -1,2 +1,3 @@ -SHA256 (codec2-0.5.tar.xz) = 1ffda04ec6629f5ad5a38349c6d9d38d29bfbc1c677c12014ff20d480a343f17 -SIZE (codec2-0.5.tar.xz) = 7845164 +TIMESTAMP = 1475074829 +SHA256 (codec2-0.5.1.tar.xz) = f7cf14b02763ffdcd231027f9811b06862790bf76d900ba9443d2a57f4ce7b38 +SIZE (codec2-0.5.1.tar.xz) = 7862968 diff --git a/audio/codec2/pkg-plist b/audio/codec2/pkg-plist index 7e2650951c36..52483b672874 100644 --- a/audio/codec2/pkg-plist +++ b/audio/codec2/pkg-plist @@ -26,3 +26,234 @@ include/codec2/modem_stats.h include/codec2/varicode.h lib/libcodec2.so lib/libcodec2.so.0.5 +%%EXAMPLES%%share/codec2/octave/adc_sfdr_ut.m +%%EXAMPLES%%share/codec2/octave/adcres.m +%%EXAMPLES%%share/codec2/octave/autotest.m +%%EXAMPLES%%share/codec2/octave/av_imp.m +%%EXAMPLES%%share/codec2/octave/bandpasssampling.m +%%EXAMPLES%%share/codec2/octave/bpf.m +%%EXAMPLES%%share/codec2/octave/cbphase.m +%%EXAMPLES%%share/codec2/octave/cellmodem.m +%%EXAMPLES%%share/codec2/octave/ciccomp.m +%%EXAMPLES%%share/codec2/octave/cml.patch +%%EXAMPLES%%share/codec2/octave/codec2_demo.m +%%EXAMPLES%%share/codec2/octave/cohpsk.m +%%EXAMPLES%%share/codec2/octave/cohpsk_demod_plot.m +%%EXAMPLES%%share/codec2/octave/cohpsk_frame_design.ods +%%EXAMPLES%%share/codec2/octave/cspec.m +%%EXAMPLES%%share/codec2/octave/dacres.m +%%EXAMPLES%%share/codec2/octave/diff_codec.m +%%EXAMPLES%%share/codec2/octave/fdmdv.m +%%EXAMPLES%%share/codec2/octave/fdmdv_demod.m +%%EXAMPLES%%share/codec2/octave/fdmdv_demod_c.m +%%EXAMPLES%%share/codec2/octave/fdmdv_demod_coh.m +%%EXAMPLES%%share/codec2/octave/fdmdv_mod.m +%%EXAMPLES%%share/codec2/octave/fdmdv_sweep.m +%%EXAMPLES%%share/codec2/octave/fdmdv_ut.m +%%EXAMPLES%%share/codec2/octave/fdmdv_ut_coh.m +%%EXAMPLES%%share/codec2/octave/fdmdv_ut_freq_off.m +%%EXAMPLES%%share/codec2/octave/fm.m +%%EXAMPLES%%share/codec2/octave/fsk.m +%%EXAMPLES%%share/codec2/octave/fsk4.m +%%EXAMPLES%%share/codec2/octave/fuzzy_gray.m +%%EXAMPLES%%share/codec2/octave/gen_rn_coeffs.m +%%EXAMPLES%%share/codec2/octave/glottal.m +%%EXAMPLES%%share/codec2/octave/gmsk.m +%%EXAMPLES%%share/codec2/octave/hf_sim.m +%%EXAMPLES%%share/codec2/octave/hfper.m +%%EXAMPLES%%share/codec2/octave/hp_filt.m +%%EXAMPLES%%share/codec2/octave/ldpc.m +%%EXAMPLES%%share/codec2/octave/ldpcdec.m +%%EXAMPLES%%share/codec2/octave/ldpcenc.m +%%EXAMPLES%%share/codec2/octave/ldpcut.m +%%EXAMPLES%%share/codec2/octave/linreg.m +%%EXAMPLES%%share/codec2/octave/load_comp.m +%%EXAMPLES%%share/codec2/octave/load_raw.m +%%EXAMPLES%%share/codec2/octave/lpcauto.m +%%EXAMPLES%%share/codec2/octave/lpcpf.m +%%EXAMPLES%%share/codec2/octave/lsp.m +%%EXAMPLES%%share/codec2/octave/lsp_pdf.m +%%EXAMPLES%%share/codec2/octave/lspvar.m +%%EXAMPLES%%share/codec2/octave/lspwarp.m +%%EXAMPLES%%share/codec2/octave/mag_to_phase.m +%%EXAMPLES%%share/codec2/octave/make_hilb.m +%%EXAMPLES%%share/codec2/octave/make_ssbfilt.m +%%EXAMPLES%%share/codec2/octave/melstats.m +%%EXAMPLES%%share/codec2/octave/melvq.m +%%EXAMPLES%%share/codec2/octave/newamp.m +%%EXAMPLES%%share/codec2/octave/newamp_batch.m +%%EXAMPLES%%share/codec2/octave/newamp_fbf.m +%%EXAMPLES%%share/codec2/octave/phase.m +%%EXAMPLES%%share/codec2/octave/phase2.m +%%EXAMPLES%%share/codec2/octave/phasesecord.m +%%EXAMPLES%%share/codec2/octave/pitch_test.m +%%EXAMPLES%%share/codec2/octave/pl.m +%%EXAMPLES%%share/codec2/octave/pl2.m +%%EXAMPLES%%share/codec2/octave/plamp.m +%%EXAMPLES%%share/codec2/octave/plinterp.m +%%EXAMPLES%%share/codec2/octave/pllpcpf.m +%%EXAMPLES%%share/codec2/octave/pllsp.m +%%EXAMPLES%%share/codec2/octave/pllspdt.m +%%EXAMPLES%%share/codec2/octave/plnlp.m +%%EXAMPLES%%share/codec2/octave/plphase.m +%%EXAMPLES%%share/codec2/octave/plpitch.m +%%EXAMPLES%%share/codec2/octave/plppe.m +%%EXAMPLES%%share/codec2/octave/plsub.m +%%EXAMPLES%%share/codec2/octave/plvoicing.m +%%EXAMPLES%%share/codec2/octave/png.m +%%EXAMPLES%%share/codec2/octave/postfilter.m +%%EXAMPLES%%share/codec2/octave/pulse.m +%%EXAMPLES%%share/codec2/octave/qpsk.m +%%EXAMPLES%%share/codec2/octave/save_array_c_header.m +%%EXAMPLES%%share/codec2/octave/save_raw.m +%%EXAMPLES%%share/codec2/octave/sd.m +%%EXAMPLES%%share/codec2/octave/spec.m +%%EXAMPLES%%share/codec2/octave/tcohpsk.m +%%EXAMPLES%%share/codec2/octave/test_cohpsk.m +%%EXAMPLES%%share/codec2/octave/test_cohpsk_ch.m +%%EXAMPLES%%share/codec2/octave/test_dqpsk.m +%%EXAMPLES%%share/codec2/octave/test_dqpsk2.m +%%EXAMPLES%%share/codec2/octave/test_dsss.m +%%EXAMPLES%%share/codec2/octave/test_dsss_pilot.m +%%EXAMPLES%%share/codec2/octave/test_fec.m +%%EXAMPLES%%share/codec2/octave/test_foff.m +%%EXAMPLES%%share/codec2/octave/test_ftrack.m +%%EXAMPLES%%share/codec2/octave/test_ml.m +%%EXAMPLES%%share/codec2/octave/test_pilot.m +%%EXAMPLES%%share/codec2/octave/test_qpsk.m +%%EXAMPLES%%share/codec2/octave/test_qpsk2.m +%%EXAMPLES%%share/codec2/octave/test_qpsk3.m +%%EXAMPLES%%share/codec2/octave/tfdmdv.m +%%EXAMPLES%%share/codec2/octave/tget_spec.m +%%EXAMPLES%%share/codec2/octave/tlinreg.m +%%EXAMPLES%%share/codec2/octave/tpapr.m +%%EXAMPLES%%share/codec2/octave/tqpsk.m +%%EXAMPLES%%share/codec2/octave/trellis.m +%%EXAMPLES%%share/codec2/octave/twomixer.m +%%EXAMPLES%%share/codec2/octave/twotone.m +%%EXAMPLES%%share/codec2/octave/twotone1.m +%%EXAMPLES%%share/codec2/octave/tximage.m +%%EXAMPLES%%share/codec2/octave/undersample.m +%%EXAMPLES%%share/codec2/octave/xormixer.m +%%EXAMPLES%%share/codec2/raw/b0067.raw +%%EXAMPLES%%share/codec2/raw/cq_ref.raw +%%EXAMPLES%%share/codec2/raw/cross.raw +%%EXAMPLES%%share/codec2/raw/cross_melp2400.raw +%%EXAMPLES%%share/codec2/raw/f2400.raw +%%EXAMPLES%%share/codec2/raw/forig.raw +%%EXAMPLES%%share/codec2/raw/forig_ambe2000.raw +%%EXAMPLES%%share/codec2/raw/forig_g729a.raw +%%EXAMPLES%%share/codec2/raw/forig_gsm13k.raw +%%EXAMPLES%%share/codec2/raw/forig_speex_8k.raw +%%EXAMPLES%%share/codec2/raw/g3plx.raw +%%EXAMPLES%%share/codec2/raw/hts.raw +%%EXAMPLES%%share/codec2/raw/hts1.raw +%%EXAMPLES%%share/codec2/raw/hts1a.raw +%%EXAMPLES%%share/codec2/raw/hts1a_ambe2000.raw +%%EXAMPLES%%share/codec2/raw/hts1a_g729a.raw +%%EXAMPLES%%share/codec2/raw/hts1a_gsm13k.raw +%%EXAMPLES%%share/codec2/raw/hts1a_melp.raw +%%EXAMPLES%%share/codec2/raw/hts1a_speex_8k.raw +%%EXAMPLES%%share/codec2/raw/hts2.raw +%%EXAMPLES%%share/codec2/raw/hts2a.raw +%%EXAMPLES%%share/codec2/raw/hts2a_ambe2000.raw +%%EXAMPLES%%share/codec2/raw/hts2a_g729a.raw +%%EXAMPLES%%share/codec2/raw/hts2a_gsm13k.raw +%%EXAMPLES%%share/codec2/raw/hts2a_melp.raw +%%EXAMPLES%%share/codec2/raw/hts2a_speex_8k.raw +%%EXAMPLES%%share/codec2/raw/k6hx.raw +%%EXAMPLES%%share/codec2/raw/kristoff.raw +%%EXAMPLES%%share/codec2/raw/m2400.raw +%%EXAMPLES%%share/codec2/raw/mmt1.raw +%%EXAMPLES%%share/codec2/raw/mmt1_ambe2000.raw +%%EXAMPLES%%share/codec2/raw/mmt1_g729a.raw +%%EXAMPLES%%share/codec2/raw/mmt1_gsm13k.raw +%%EXAMPLES%%share/codec2/raw/mmt1_speex_8k.raw +%%EXAMPLES%%share/codec2/raw/morig.raw +%%EXAMPLES%%share/codec2/raw/morig_ambe2000.raw +%%EXAMPLES%%share/codec2/raw/morig_g729a.raw +%%EXAMPLES%%share/codec2/raw/morig_gsm13k.raw +%%EXAMPLES%%share/codec2/raw/morig_speex_8k.raw +%%EXAMPLES%%share/codec2/raw/sine1k_2Hz_spread.raw +%%EXAMPLES%%share/codec2/raw/sine1k_2ms_delay_2Hz_spread.raw +%%EXAMPLES%%share/codec2/raw/ve9qrp.raw +%%EXAMPLES%%share/codec2/raw/ve9qrp_10s.raw +%%EXAMPLES%%share/codec2/script/menu.sh +%%EXAMPLES%%share/codec2/script/playraw.sh +%%EXAMPLES%%share/codec2/script/raw2wav.sh +%%EXAMPLES%%share/codec2/script/wav2raw.sh +%%EXAMPLES%%share/codec2/wav/all.wav +%%EXAMPLES%%share/codec2/wav/cross.wav +%%EXAMPLES%%share/codec2/wav/cross_melp2400.wav +%%EXAMPLES%%share/codec2/wav/f2400.wav +%%EXAMPLES%%share/codec2/wav/forig.wav +%%EXAMPLES%%share/codec2/wav/forig_ambe2000.wav +%%EXAMPLES%%share/codec2/wav/forig_speex_8k.wav +%%EXAMPLES%%share/codec2/wav/hts1a.wav +%%EXAMPLES%%share/codec2/wav/hts1a_ambe2000.wav +%%EXAMPLES%%share/codec2/wav/hts1a_c2_v0.1.wav +%%EXAMPLES%%share/codec2/wav/hts1a_c2_v0.1a.wav +%%EXAMPLES%%share/codec2/wav/hts1a_g729a.wav +%%EXAMPLES%%share/codec2/wav/hts1a_lpc10.wav +%%EXAMPLES%%share/codec2/wav/hts1a_speex_8k.wav +%%EXAMPLES%%share/codec2/wav/hts2a.wav +%%EXAMPLES%%share/codec2/wav/hts2a_ambe2000.wav +%%EXAMPLES%%share/codec2/wav/hts2a_c2_v0.1.wav +%%EXAMPLES%%share/codec2/wav/hts2a_c2_v0.1a.wav +%%EXAMPLES%%share/codec2/wav/hts2a_g729a.wav +%%EXAMPLES%%share/codec2/wav/hts2a_lpc10.wav +%%EXAMPLES%%share/codec2/wav/hts2a_speex_8k.wav +%%EXAMPLES%%share/codec2/wav/m2400.wav +%%EXAMPLES%%share/codec2/wav/mmt1.wav +%%EXAMPLES%%share/codec2/wav/mmt1_ambe2000.wav +%%EXAMPLES%%share/codec2/wav/mmt1_c2_v01a.wav +%%EXAMPLES%%share/codec2/wav/mmt1_lpc10.wav +%%EXAMPLES%%share/codec2/wav/mmt1_speex_8k.wav +%%EXAMPLES%%share/codec2/wav/morig.wav +%%EXAMPLES%%share/codec2/wav/morig_ambe2000.wav +%%EXAMPLES%%share/codec2/wav/morig_speex_8k.wav +%%EXAMPLES%%share/codec2/wav/ve9qrp.wav +%%EXAMPLES%%share/codec2/wav/vk5qi.wav +%%EXAMPLES%%share/codec2/wav/x200_ext.wav +%%EXAMPLES%%share/codec2/wav/x200_int.wav +%%TEST%%bin/c2validate +%%TEST%%bin/cohpsk_ch +%%TEST%%bin/cohpsk_demod +%%TEST%%bin/cohpsk_get_test_bits +%%TEST%%bin/cohpsk_mod +%%TEST%%bin/cohpsk_put_test_bits +%%TEST%%bin/create_interleaver +%%TEST%%bin/de +%%TEST%%bin/extract +%%TEST%%bin/fdmdv_channel +%%TEST%%bin/fdmdv_mem +%%TEST%%bin/freedv_rx +%%TEST%%bin/freedv_tx +%%TEST%%bin/genampdata +%%TEST%%bin/generate_codebook +%%TEST%%bin/genlsp +%%TEST%%bin/genlspdtcb +%%TEST%%bin/genphdata +%%TEST%%bin/genres +%%TEST%%bin/lspsync +%%TEST%%bin/polar2rect +%%TEST%%bin/pre +%%TEST%%bin/raw2h +%%TEST%%bin/scalarlsptest +%%TEST%%bin/speexnoisesup +%%TEST%%bin/t16_8 +%%TEST%%bin/t16_8_short +%%TEST%%bin/tcohpsk +%%TEST%%bin/test_cohpsk_ch +%%TEST%%bin/tfdmdv +%%TEST%%bin/tfifo +%%TEST%%bin/tinterp +%%TEST%%bin/tlspsens +%%TEST%%bin/tnlp +%%TEST%%bin/tprede +%%TEST%%bin/tquant +%%TEST%%bin/vq_train_jvm +%%TEST%%bin/vqtrain +%%TEST%%bin/vqtrainjnd +%%TEST%%bin/vqtrainph +%%TEST%%bin/vqtrainsp |