commit: aa0f1e10f4b22b7cae828cc6fd7a336f8d8bbefe
parent fb5698c9d23cb73aa80a2d1c7538fe73b3031ca3
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 18 Aug 2020 13:22:56 -0700
Add opus 1.3.1
Diffstat:
7 files changed, 178 insertions(+), 0 deletions(-)
diff --git a/pkg/gen.lua b/pkg/gen.lua
@@ -84,6 +84,7 @@ subgen 'oksh'
subgen 'openbsd'
subgen 'openntpd'
subgen 'openssh'
+subgen 'opus'
subgen 'pciutils'
subgen 'pcre'
subgen 'perp'
diff --git a/pkg/opus/.gitignore b/pkg/opus/.gitignore
@@ -0,0 +1,2 @@
+/opus-1.3.1.tar.gz
+/src
diff --git a/pkg/opus/config.h b/pkg/opus/config.h
@@ -0,0 +1,6 @@
+#define HAVE_LRINTF
+#if __STDC_NO_VLA__
+#define USE_ALLOCA
+#else
+#define VAR_ARRAYS
+#endif
diff --git a/pkg/opus/gen.lua b/pkg/opus/gen.lua
@@ -0,0 +1,166 @@
+cflags{
+ '-Wall', '-Wpedantic',
+ '-D OPUS_BUILD',
+ '-I $srcdir/include',
+ '-I $srcdir/celt',
+ '-I $srcdir/silk',
+ '-I $srcdir/silk/float',
+ '-include $dir/config.h',
+}
+
+pkg.hdrs = copy('$outdir/include', '$srcdir/include', {
+ 'opus.h',
+ 'opus_defines.h',
+ 'opus_multistream.h',
+ 'opus_types.h',
+})
+
+lib('libopus.a', [[
+ src/(
+ opus.c
+ opus_decoder.c
+ opus_encoder.c
+ opus_multistream.c
+ opus_multistream_encoder.c
+ opus_multistream_decoder.c
+ repacketizer.c
+ opus_projection_encoder.c
+ opus_projection_decoder.c
+ mapping_matrix.c
+
+ analysis.c
+ mlp.c
+ mlp_data.c
+ )
+ celt/(
+ bands.c
+ celt.c
+ celt_encoder.c
+ celt_decoder.c
+ cwrs.c
+ entcode.c
+ entdec.c
+ entenc.c
+ kiss_fft.c
+ laplace.c
+ mathops.c
+ mdct.c
+ modes.c
+ pitch.c
+ celt_lpc.c
+ quant_bands.c
+ rate.c
+ vq.c
+ )
+ silk/(
+ CNG.c
+ code_signs.c
+ init_decoder.c
+ decode_core.c
+ decode_frame.c
+ decode_parameters.c
+ decode_indices.c
+ decode_pulses.c
+ decoder_set_fs.c
+ dec_API.c
+ enc_API.c
+ encode_indices.c
+ encode_pulses.c
+ gain_quant.c
+ interpolate.c
+ LP_variable_cutoff.c
+ NLSF_decode.c
+ NSQ.c
+ NSQ_del_dec.c
+ PLC.c
+ shell_coder.c
+ tables_gain.c
+ tables_LTP.c
+ tables_NLSF_CB_NB_MB.c
+ tables_NLSF_CB_WB.c
+ tables_other.c
+ tables_pitch_lag.c
+ tables_pulses_per_block.c
+ VAD.c
+ control_audio_bandwidth.c
+ quant_LTP_gains.c
+ VQ_WMat_EC.c
+ HP_variable_cutoff.c
+ NLSF_encode.c
+ NLSF_VQ.c
+ NLSF_unpack.c
+ NLSF_del_dec_quant.c
+ process_NLSFs.c
+ stereo_LR_to_MS.c
+ stereo_MS_to_LR.c
+ check_control_input.c
+ control_SNR.c
+ init_encoder.c
+ control_codec.c
+ A2NLSF.c
+ ana_filt_bank_1.c
+ biquad_alt.c
+ bwexpander_32.c
+ bwexpander.c
+ debug.c
+ decode_pitch.c
+ inner_prod_aligned.c
+ lin2log.c
+ log2lin.c
+ LPC_analysis_filter.c
+ LPC_inv_pred_gain.c
+ table_LSF_cos.c
+ NLSF2A.c
+ NLSF_stabilize.c
+ NLSF_VQ_weights_laroia.c
+ pitch_est_tables.c
+ resampler.c
+ resampler_down2_3.c
+ resampler_down2.c
+ resampler_private_AR2.c
+ resampler_private_down_FIR.c
+ resampler_private_IIR_FIR.c
+ resampler_private_up2_HQ.c
+ resampler_rom.c
+ sigm_Q15.c
+ sort.c
+ sum_sqr_shift.c
+ stereo_decode_pred.c
+ stereo_encode_pred.c
+ stereo_find_predictor.c
+ stereo_quant_pred.c
+ LPC_fit.c
+ float/(
+ apply_sine_window_FLP.c
+ corrMatrix_FLP.c
+ encode_frame_FLP.c
+ find_LPC_FLP.c
+ find_LTP_FLP.c
+ find_pitch_lags_FLP.c
+ find_pred_coefs_FLP.c
+ LPC_analysis_filter_FLP.c
+ LTP_analysis_filter_FLP.c
+ LTP_scale_ctrl_FLP.c
+ noise_shape_analysis_FLP.c
+ process_gains_FLP.c
+ regularize_correlations_FLP.c
+ residual_energy_FLP.c
+ warped_autocorrelation_FLP.c
+ wrappers_FLP.c
+ autocorrelation_FLP.c
+ burg_modified_FLP.c
+ bwexpander_FLP.c
+ energy_FLP.c
+ inner_product_FLP.c
+ k2a_FLP.c
+ LPC_inv_pred_gain_FLP.c
+ pitch_analysis_core_FLP.c
+ scale_copy_vector_FLP.c
+ scale_vector_FLP.c
+ schur_FLP.c
+ sort_FLP.c
+ )
+ )
+]])
+
+fetch 'curl'
diff --git a/pkg/opus/sha256 b/pkg/opus/sha256
@@ -0,0 +1 @@
+65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d opus-1.3.1.tar.gz
diff --git a/pkg/opus/url b/pkg/opus/url
@@ -0,0 +1 @@
+url = "https://archive.mozilla.org/pub/opus/opus-1.3.1.tar.gz"
diff --git a/pkg/opus/ver b/pkg/opus/ver
@@ -0,0 +1 @@
+1.3.1 r0