diff options
-rw-r--r-- | REQUIREMENTS | 6 | ||||
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | ext/Makefile.am | 8 | ||||
-rw-r--r-- | ext/meson.build | 1 | ||||
-rw-r--r-- | ext/mpg123/meson.build | 8 | ||||
-rw-r--r-- | tests/check/Makefile.am | 12 | ||||
-rw-r--r-- | tests/check/elements/.gitignore | 1 | ||||
-rw-r--r-- | tests/check/meson.build | 1 |
8 files changed, 41 insertions, 6 deletions
diff --git a/REQUIREMENTS b/REQUIREMENTS index 5f1b10631..d399ea05a 100644 --- a/REQUIREMENTS +++ b/REQUIREMENTS @@ -125,6 +125,12 @@ DebianPackage: libdv4-dev Plugins: dv (dvdec) URL: http://libdv.sourceforge.net/ +Package: libmpg123 +Version: >= 1.3 +DebianPackage: libpng12-dev +Plugins: mpg123 (mpg123audiodec) +URL: https://www.mpg123.de/api/ + Package: Libpng Version: >= 1.2 DebianPackage: libpng12-dev diff --git a/configure.ac b/configure.ac index ae1fe3dd2..9dc76c8eb 100644 --- a/configure.ac +++ b/configure.ac @@ -683,6 +683,14 @@ AG_GST_CHECK_FEATURE(LIBPNG, [Portable Network Graphics library], png, [ AG_GST_PKG_CHECK_MODULES(LIBPNG, libpng >= 1.2) ]) +dnl *** mpg123 *** +translit(dnm, m, l) AM_CONDITIONAL(USE_MPG123, true) +AG_GST_CHECK_FEATURE(MPG123, [mpg123 audio decoder], mpg123, [ + PKG_CHECK_MODULES(MPG123, libmpg123 >= 1.13, HAVE_MPG123="yes", HAVE_MPG123="no") + AC_SUBST(MPG123_CFLAGS) + AC_SUBST(MPG123_LIBS) +]) + dnl *** pulseaudio *** translit(dnm, m, l) AM_CONDITIONAL(USE_PULSE, true) AG_GST_CHECK_FEATURE(PULSE, [pulseaudio plug-in], pulseaudio, [ @@ -874,6 +882,7 @@ AM_CONDITIONAL(USE_LIBCACA, false) AM_CONDITIONAL(USE_LIBDV, false) AM_CONDITIONAL(USE_LIBIEC61883, false) AM_CONDITIONAL(USE_LIBPNG, false) +AM_CONDITIONAL(USE_MPG123, false) AM_CONDITIONAL(USE_OSS, false) AM_CONDITIONAL(USE_OSS4, false) AM_CONDITIONAL(USE_OSX_AUDIO, false) @@ -1014,6 +1023,7 @@ ext/jack/Makefile ext/jpeg/Makefile ext/libcaca/Makefile ext/libpng/Makefile +ext/mpg123/Makefile ext/pulse/Makefile ext/raw1394/Makefile ext/shout2/Makefile diff --git a/ext/Makefile.am b/ext/Makefile.am index 6f0018252..1bb540bb5 100644 --- a/ext/Makefile.am +++ b/ext/Makefile.am @@ -52,6 +52,12 @@ else LIBPNG_DIR = endif +if USE_MPG123 +MPG123_DIR = mpg123 +else +MPG123_DIR = +endif + if USE_DV1394 DV1394_DIR = raw1394 else @@ -113,6 +119,7 @@ SUBDIRS = \ $(LIBDV_DIR) \ $(LIBMNG_DIR) \ $(LIBPNG_DIR) \ + $(MPG123_DIR) \ $(PULSE_DIR) \ $(SHOUT2_DIR) \ $(SOUP_DIR) \ @@ -131,6 +138,7 @@ DIST_SUBDIRS = \ jpeg \ libcaca \ libpng \ + mpg123 \ pulse \ raw1394 \ shout2 \ diff --git a/ext/meson.build b/ext/meson.build index a2967f608..92f75ef10 100644 --- a/ext/meson.build +++ b/ext/meson.build @@ -10,6 +10,7 @@ if cc.get_id() != 'msvc' subdir('dv') endif subdir('libpng') +subdir('mpg123') subdir('raw1394') subdir('pulse') subdir('shout2') diff --git a/ext/mpg123/meson.build b/ext/mpg123/meson.build index a575449bd..3891fd7d0 100644 --- a/ext/mpg123/meson.build +++ b/ext/mpg123/meson.build @@ -1,13 +1,9 @@ -mpg123_sources = [ - 'gstmpg123audiodec.c', -] - mpg123_dep = dependency('libmpg123', version : '>= 1.3', required : false) if mpg123_dep.found() gstmpg123 = library('gstmpg123', - mpg123_sources, - c_args : ugly_args, + 'gstmpg123audiodec.c', + c_args : gst_plugins_good_args, include_directories : [configinc], dependencies : [gstaudio_dep, mpg123_dep], install : true, diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index cf253e4fe..b18bc9be1 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -203,6 +203,12 @@ else check_matroska = endif +if USE_MPG123 +check_mpg123 = elements/mpg123audiodec +else +check_mpg123 = +endif + if USE_PLUGIN_MULTIFILE check_multifile = elements/multifile elements/splitmux else @@ -369,6 +375,7 @@ check_PROGRAMS = \ $(check_law) \ $(check_level) \ $(check_matroska) \ + $(check_mpg123) \ $(check_multifile) \ $(check_replaygain) \ $(check_rtp) \ @@ -512,6 +519,11 @@ elements_jpegenc_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstapp-$(GST_API_VERSION) $( elements_matroskamux_LDADD = $(GST_BASE_LIBS) $(LDADD) $(LIBM) +elements_mpg123audiodec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(AM_CFLAGS) +elements_mpg123audiodec_LDADD = \ + $(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_API_VERSION@ -lgstfft-@GST_API_VERSION@ \ + -lgstapp-@GST_API_VERSION@ $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD) + elements_mulawdec_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS) elements_mulawenc_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(AM_CFLAGS) diff --git a/tests/check/elements/.gitignore b/tests/check/elements/.gitignore index e5cfb3bee..f3f2f7466 100644 --- a/tests/check/elements/.gitignore +++ b/tests/check/elements/.gitignore @@ -42,6 +42,7 @@ matroskademux matroskamux matroskaparse mpegaudioparse +mpg123audiodec mulawdec mulawenc multifile diff --git a/tests/check/meson.build b/tests/check/meson.build index e5eddc658..699180634 100644 --- a/tests/check/meson.build +++ b/tests/check/meson.build @@ -60,6 +60,7 @@ good_tests = [ [ 'elements/matroskademux' ], [ 'elements/matroskamux' ], [ 'elements/matroskaparse' ], + [ 'elements/mpg123audiodec', not mpg123_dep.found() ], [ 'elements/multifile' ], [ 'elements/splitmux' ], [ 'elements/rganalysis' ], |