summaryrefslogtreecommitdiff
path: root/media-libs/libmp3splt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-27 06:06:27 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-27 06:06:27 +0000
commit8d5dbd847cbc704a6a06405856e94b461011afe3 (patch)
tree4d26462d027b14926335894749d2e01d982234d0 /media-libs/libmp3splt
parent5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff)
gentoo resync : 27.03.2021
Diffstat (limited to 'media-libs/libmp3splt')
-rw-r--r--media-libs/libmp3splt/Manifest3
-rw-r--r--media-libs/libmp3splt/files/libmp3splt-0.9.2-drop-libltdl.patch205
-rw-r--r--media-libs/libmp3splt/files/libmp3splt-0.9.2-fix-implicit-decl.patch304
-rw-r--r--media-libs/libmp3splt/libmp3splt-0.9.2-r4.ebuild69
4 files changed, 581 insertions, 0 deletions
diff --git a/media-libs/libmp3splt/Manifest b/media-libs/libmp3splt/Manifest
index d0488ce4f3d9..b063a183fac2 100644
--- a/media-libs/libmp3splt/Manifest
+++ b/media-libs/libmp3splt/Manifest
@@ -1,5 +1,8 @@
AUX CVE-2017-15185.patch 1088 BLAKE2B e823a30ec18735deb5ba22592165e7828266888d4cdb435ddb88b606b6312c18444e2b3395c3f155fb12d6749a3371baa9b18d7972086c19e750deb253b17162 SHA512 d5ef327e47681bd74ef7488965805727d8e905f65ee46698b06f88d971003c65c309fc8b6714e07c7a12803657db302b15522d6e4f4a75c0dce1217deaa07439
AUX libmp3splt-0.7-libltdl.patch 676 BLAKE2B 144528812f340517d4da52eeefb35054b31363d5c24eb0fc1fa74be7c39008a9d27fd61a9c412aeddf5698df1469975101fec74de5f65b17bdc2a9d727017cf0 SHA512 50e9c6472b79b2dfcb43764828e26ddacc3b1b747a6264291385d6173de51608188d4fd865ac20dd2ad63ddb9d3191eb62f872ddead15564d7400b31dc5bca66
+AUX libmp3splt-0.9.2-drop-libltdl.patch 7164 BLAKE2B 29332a97ffa8b4acd6580e1c10ae73b3038c2c56b3e01eaaea10da8379c1c157624a7577e4b4bda5de279f07db326e4f48b48a815c52ad9266c78f48aa98809c SHA512 b527eda408df9123ef254ab28be850535042eb9b28de910fda6852b78287a55ea26d03326dc08d8c35b9c08ee2ef47797a6be14883c945bac7e051e7e0664fdd
+AUX libmp3splt-0.9.2-fix-implicit-decl.patch 5820 BLAKE2B b7ed33d91c7fe26a528ed678e8d174208cb4415bdb573d415c0523241672b6ecd5280e28c28314a17249187ce36af589336ea2669b461c03f03b4fee9e3775be SHA512 8fcc35dd7c1c6110b302bd67d07d2023bf5c1bd428b5387782ea5b9a4b233739b9544b4814b3a3db780d2c275bacc53ea37378c004c5029984cecb21867775e5
DIST libmp3splt-0.9.2.tar.gz 707598 BLAKE2B 4e8223472a7cd05d71d7df81a88b7d545a726a45d62dc6284d694e8cf8ad9406b037e274dbe28f2cf95febc87d8ba30aa15291f58df95b83a3aa0b5d3469ffea SHA512 e5c98e8b173bc86302ccee4ca5eb0c8a8d93f225357eb7b14dea8d0700ed62ed6316506c182f6b295130f7924ff0b38e865d5e49fa9cd7882c648360d68872ed
EBUILD libmp3splt-0.9.2-r2.ebuild 1293 BLAKE2B d841d43e3703728e26bd7034a84669eb9fe925e1208f7ae7f22d86f4d98833a428056e0b28eab11001c82f45e1ccd8d576dab6cb197e0ec37fef6d9251ec4e66 SHA512 4a4d5eef497cb2572e186c62c12fd8466b8a3405ef1c41259ffe6e7fd7b928e607f205aefc74dfbb9a9d2dc873e6c17e29cdd6a225ab0c684157180f302ec21f
+EBUILD libmp3splt-0.9.2-r4.ebuild 1442 BLAKE2B 57b6340087d90c44f4084f4506a7bc1b95bf715ddf335c85a5c83e0cc3854fbb3d266dcc8be2ec13f549e6b3356dc68680cd29c323eef1f8c143262425a4dc6b SHA512 fe175c01ad47c1bf7b3a619c3ead47bef3d9502523e02b44d99ab2d2af47f82c6a51d077d041abd4fabcbe88c7183b2b4dc622eda85d84a8daa0e001235bd872
MISC metadata.xml 330 BLAKE2B f237f66bdf5752ca2864a72cd27918776b88b73d113a2aff324dbbe53956973421724b3babd3e25892d0894184bf842dbe3cb48cd3514285e500110c7d7bb1ac SHA512 46486e0840a5f4891a1d611ba22e1e540d0e16d3cf61ef362e1085d188a75b5297e6ac2abf8c3af40eeabf246c076958dc2fc8b9cce5f5bdd248b282491afc38
diff --git a/media-libs/libmp3splt/files/libmp3splt-0.9.2-drop-libltdl.patch b/media-libs/libmp3splt/files/libmp3splt-0.9.2-drop-libltdl.patch
new file mode 100644
index 000000000000..c29376e3aa66
--- /dev/null
+++ b/media-libs/libmp3splt/files/libmp3splt-0.9.2-drop-libltdl.patch
@@ -0,0 +1,205 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -42,7 +42,7 @@
+
+ AC_PREREQ([2.62])
+ AC_INIT([libmp3splt],[libmp3splt_version],[m@ioalex.net])
+-AC_CONFIG_AUX_DIR([libltdl/config])
++LT_INIT
+ AM_INIT_AUTOMAKE
+ AC_CONFIG_HEADERS([config.h])
+ AM_MAINTAINER_MODE([enable])
+@@ -78,20 +78,6 @@
+ AC_DEFINE_UNQUOTED([SPLT_SONAME], "$SONAME", [library SONAME])
+
+ #################################################################
+-# Enable libtool, check for libltdl and define @LIBLTDL@ and @INCLTDL@
+-#################################################################
+-
+-ifdef([LT_CONFIG_LTDL_DIR],
+- [ LT_CONFIG_LTDL_DIR([libltdl]) ],
+- [])
+-
+-ifdef([LT_INIT],
+- [ LT_INIT([win32-dll]) ],
+- [ AC_PROG_LIBTOOL ])
+-
+-AC_WITH_LTDL
+-
+-#################################################################
+ # Check for the type of the host
+ #################################################################
+
+@@ -161,9 +147,6 @@
+ #check for -lm
+ AC_CHECK_LIB(m, pow, [ haslm="yes" ] , [ AC_MSG_ERROR([libm not found !]) ] )
+
+-#check for -ltld
+-AC_CHECK_LIB(ltdl, lt_dlopen, [ hasltdl="yes" ], [ AC_MSG_ERROR([libltdl not found - check libtool installation !]) ] )
+-
+ #################################################################
+ # helper for windows compilation
+ #################################################################
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -3,7 +3,7 @@
+ include_HEADERS = $(top_srcdir)/include/libmp3splt/mp3splt.h \
+ $(top_srcdir)/include/libmp3splt/version.h
+
+-INCLUDES=-DSPLT_PLUGINS_DIR=\"$(libdir)/libmp3splt$(SONAME)\" -DLIBMP3SPLT_VERSION=\"$(VERSION)\" @INCLTDL@
++INCLUDES=-DSPLT_PLUGINS_DIR=\"$(libdir)/libmp3splt$(SONAME)\" -DLIBMP3SPLT_VERSION=\"$(VERSION)\"
+
+ lib_LTLIBRARIES = libmp3splt.la
+
+@@ -30,8 +30,6 @@
+
+ libmp3splt_la_LIBADD += -lws2_32 -lintl -lshlwapi
+
+-else
+-libmp3splt_la_LIBADD += @LIBLTDL@
+ endif
+
+ libmp3splt_la_SOURCES = \
+--- a/src/mp3splt.c
++++ b/src/mp3splt.c
+@@ -45,7 +45,7 @@
+ #include <sys/stat.h>
+ #include <string.h>
+
+-#include <ltdl.h>
++#include <dlfcn.h>
+
+ #include "splt.h"
+
+@@ -119,13 +119,6 @@
+ int *err = &erro;
+ if (error != NULL) { err = error; }
+
+- if (lt_dlinit() != 0)
+- {
+- *err = SPLT_ERROR_CANNOT_INIT_LIBLTDL;
+- }
+- else
+- {
+-
+ #ifdef ENABLE_NLS
+ #ifndef __WIN32__
+ bindtextdomain(MP3SPLT_LIB_GETTEXT_DOMAIN, LOCALEDIR);
+@@ -135,8 +128,7 @@
+ #endif
+ #endif
+
+- state = splt_t_new_state(state, err);
+- }
++ state = splt_t_new_state(state, err);
+
+ return state;
+ }
+--- a/src/plugins.c
++++ b/src/plugins.c
+@@ -37,7 +37,7 @@
+ #include <dirent.h>
+ #include <errno.h>
+
+-#include <ltdl.h>
++#include <dlfcn.h>
+ #include <stdlib.h>
+
+ #ifdef __WIN32__
+@@ -400,7 +400,7 @@
+ }
+ if (pl_data->plugin_handle)
+ {
+- lt_dlclose(pl_data->plugin_handle);
++ dlclose(pl_data->plugin_handle);
+ pl_data->plugin_handle = NULL;
+ }
+ if (pl_data->func)
+@@ -477,13 +477,12 @@
+ splt_d_print_debug(state,"\nTrying to open the plugin _%s_ ...\n",
+ pl->data[i].plugin_filename);
+
+- //ltdl currently does not supports windows unicode path/filename
+- pl->data[i].plugin_handle = lt_dlopen(pl->data[i].plugin_filename);
++ pl->data[i].plugin_handle = dlopen(pl->data[i].plugin_filename, RTLD_NOW);
+ //error
+ if (! pl->data[i].plugin_handle)
+ {
+ splt_d_print_debug(state,"Error loading the plugin _%s_\n", pl->data[i].plugin_filename);
+- splt_d_print_debug(state," - error message from libltdl: _%s_\n", lt_dlerror());
++ splt_d_print_debug(state," - error message from dlopen: _%s_\n", dlerror());
+
+ //keep the index of this failed plugin in order to remove it
+ //afterwards
+@@ -503,7 +502,7 @@
+ splt_d_print_debug(state," - success !\n");
+
+ pl->data[i].func->splt_pl_set_plugin_info =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
+ if (pl->data[i].func->splt_pl_set_plugin_info != NULL)
+ {
+ pl->data[i].func->splt_pl_set_plugin_info(&pl->data[i].info,&error);
+@@ -613,34 +612,34 @@
+ int err = 0;
+ for (i = 0;i < pl->number_of_plugins_found;i++)
+ {
+- pl->data[i].plugin_handle = lt_dlopen(pl->data[i].plugin_filename);
++ pl->data[i].plugin_handle = dlopen(pl->data[i].plugin_filename, RTLD_NOW);
+
+ pl->data[i].func->splt_pl_check_plugin_is_for_file =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_check_plugin_is_for_file");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_check_plugin_is_for_file");
+ pl->data[i].func->splt_pl_search_syncerrors =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_search_syncerrors");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_search_syncerrors");
+ pl->data[i].func->splt_pl_import_internal_sheets =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_import_internal_sheets");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_import_internal_sheets");
+ pl->data[i].func->splt_pl_dewrap =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_dewrap");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_dewrap");
+ pl->data[i].func->splt_pl_offset_split =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_offset_split");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_offset_split");
+ pl->data[i].func->splt_pl_split =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_split");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_split");
+ pl->data[i].func->splt_pl_init =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_init");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_init");
+ pl->data[i].func->splt_pl_end =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_end");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_end");
+ pl->data[i].func->splt_pl_scan_silence =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_scan_silence");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_scan_silence");
+ pl->data[i].func->splt_pl_scan_trim_silence =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_scan_trim_silence");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_scan_trim_silence");
+ pl->data[i].func->splt_pl_set_original_tags =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_set_original_tags");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_set_original_tags");
+ pl->data[i].func->splt_pl_clear_original_tags =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_clear_original_tags");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_clear_original_tags");
+ pl->data[i].func->splt_pl_set_plugin_info =
+- lt_dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
++ dlsym(pl->data[i].plugin_handle, "splt_pl_set_plugin_info");
+ if (pl->data[i].func->splt_pl_set_plugin_info != NULL)
+ {
+ splt_p_free_plugin_data_info(&pl->data[i]);
+--- a/src/splt.h
++++ b/src/splt.h
+@@ -34,11 +34,6 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+
+-//libtool 1.4e is buggy on mingw if we include ltdl.h
+-#ifndef __WIN32__
+-#include <ltdl.h>
+-#endif
+-
+ #include "mp3splt.h"
+
+ struct _splt_freedb_one_result {
diff --git a/media-libs/libmp3splt/files/libmp3splt-0.9.2-fix-implicit-decl.patch b/media-libs/libmp3splt/files/libmp3splt-0.9.2-fix-implicit-decl.patch
new file mode 100644
index 000000000000..16420e934f57
--- /dev/null
+++ b/media-libs/libmp3splt/files/libmp3splt-0.9.2-fix-implicit-decl.patch
@@ -0,0 +1,304 @@
+--- a/plugins/flac.c
++++ b/plugins/flac.c
+@@ -27,6 +27,7 @@
+ *
+ *********************************************************/
+
++#include <stdlib.h>
+ #include <string.h>
+
+ #include "splt.h"
+--- a/plugins/ogg.c
++++ b/plugins/ogg.c
+@@ -41,6 +41,7 @@
+ The Plug-in that handles ogg vorbis files
+ */
+
++#include <stdlib.h>
+ #include <time.h>
+ #include <string.h>
+ #include <locale.h>
+--- a/plugins/ogg_new_stream_handler.c
++++ b/plugins/ogg_new_stream_handler.c
+@@ -38,6 +38,7 @@
+
+ #include "ogg_new_stream_handler.h"
+
++#include <stdlib.h>
+ #include <string.h>
+
+ splt_ogg_new_stream_handler *splt_ogg_nsh_new(splt_state *state, splt_ogg_state *oggstate,
+--- a/plugins/ogg_silence.c
++++ b/plugins/ogg_silence.c
+@@ -36,6 +36,7 @@
+ *
+ *********************************************************/
+
++#include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+--- a/plugins/ogg_utils.c
++++ b/plugins/ogg_utils.c
+@@ -36,6 +36,7 @@
+ *
+ *********************************************************/
+
++#include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+--- a/plugins/silence_processors.c
++++ b/plugins/silence_processors.c
+@@ -26,6 +26,8 @@
+
+ #include "silence_processors.h"
+
++#include <stdlib.h>
++
+ static void write_to_full_log(splt_state *state, double time, float level, int shots, int found,
+ double begin_position, double end_position);
+
+--- a/src/cddb.c
++++ b/src/cddb.c
+@@ -28,6 +28,8 @@
+
+ The cddb search functionality
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+ #include <math.h>
+--- a/src/client.c
++++ b/src/client.c
+@@ -29,6 +29,7 @@
+ *
+ *********************************************************/
+
++#include <stdlib.h>
+ #include <string.h>
+
+ #include "splt.h"
+--- a/src/cue.c
++++ b/src/cue.c
+@@ -28,6 +28,8 @@
+
+ All that is needed in order to be able to read and write cue files.
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+
+--- a/src/debug.c
++++ b/src/debug.c
+@@ -29,6 +29,7 @@
+ *
+ *********************************************************/
+
++#include <stdlib.h>
+ #include <string.h>
+ #include <stdarg.h>
+
+--- a/src/errors.c
++++ b/src/errors.c
+@@ -35,6 +35,7 @@
+ that is meant to be used directly are all in mp3splt.c.
+ */
+
++#include <stdlib.h>
+ #include <string.h>
+ #include <errno.h>
+
+--- a/src/freedb.c
++++ b/src/freedb.c
+@@ -32,6 +32,7 @@
+ that is meant to be used directly are all in mp3splt.c.
+ */
+
++#include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+
+--- a/src/freedb_utils.c
++++ b/src/freedb_utils.c
+@@ -33,6 +33,8 @@
+
+ Utilities used by the functions in freedb.c
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+
+ #include "splt.h"
+--- a/src/input_output.c
++++ b/src/input_output.c
+@@ -28,6 +28,8 @@
+
+ This file contains all I/O functions this library uses.
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+--- a/src/mp3splt.c
++++ b/src/mp3splt.c
+@@ -42,6 +42,7 @@
+ should therefore not be too hard a task...
+ */
+
++#include <stdlib.h>
+ #include <sys/stat.h>
+ #include <string.h>
+
+--- a/src/oformat_parser.c
++++ b/src/oformat_parser.c
+@@ -33,6 +33,8 @@
+
+ Automatic generation of filenams for split files from tags.
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+ #include <math.h>
+--- a/src/options.c
++++ b/src/options.c
+@@ -31,6 +31,8 @@
+
+ #include "splt.h"
+
++#include <stdlib.h>
++
+ extern int global_debug;
+
+ void splt_o_set_options_default_values(splt_state *state)
+--- a/src/output_format.c
++++ b/src/output_format.c
+@@ -33,6 +33,8 @@
+
+ The format of output file names
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+--- a/src/pair.c
++++ b/src/pair.c
+@@ -35,6 +35,8 @@
+ */
+ #include "splt.h"
+
++#include <stdlib.h>
++
+ splt_int_pair *splt_int_pair_new(int first, int second)
+ {
+ splt_int_pair *pair = malloc(sizeof(splt_int_pair));
+--- a/src/proxy.c
++++ b/src/proxy.c
+@@ -31,6 +31,7 @@
+
+ #include "splt.h"
+
++#include <stdlib.h>
+ #include <string.h>
+
+ static void splt_pr_free_proxy_address(splt_state *state);
+--- a/src/silence_utils.c
++++ b/src/silence_utils.c
+@@ -35,6 +35,8 @@
+ */
+ #include "splt.h"
+
++#include <stdlib.h>
++
+ int splt_siu_ssplit_new(struct splt_ssplit **silence_list,
+ float begin_position, float end_position, int len, int *error)
+ {
+--- a/src/socket_manager.c
++++ b/src/socket_manager.c
+@@ -33,6 +33,7 @@
+ Manages a socket connection
+ */
+
++#include <stdlib.h>
+ #include <unistd.h>
+
+ #ifdef __WIN32__
+--- a/src/split_points.c
++++ b/src/split_points.c
+@@ -34,6 +34,8 @@
+ All functions needed for handling split points (adding to the list,
+ checking, of this split point already exists,...)
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <math.h>
+
+--- a/src/splt.c
++++ b/src/splt.c
+@@ -34,6 +34,7 @@
+ Actually split the input file
+ */
+
++#include <stdlib.h>
+ #include <sys/stat.h>
+ #include <string.h>
+ #include <math.h>
+--- a/src/sync_errors.c
++++ b/src/sync_errors.c
+@@ -46,6 +46,8 @@
+
+ #include "splt.h"
+
++#include <stdlib.h>
++
+ void splt_se_set_sync_errors_default_values(splt_state *state)
+ {
+ splt_syncerrors *serrors = state->serrors;
+--- a/src/tags_parser.c
++++ b/src/tags_parser.c
+@@ -33,6 +33,8 @@
+
+ Parse tags (Artist, Album, Year,...)
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+
+--- a/src/tags_utils.c
++++ b/src/tags_utils.c
+@@ -25,6 +25,7 @@
+ * USA.
+ *********************************************************/
+
++#include <stdlib.h>
+ #include <string.h>
+
+ #include "splt.h"
+--- a/src/types_func.c
++++ b/src/types_func.c
+@@ -35,6 +35,7 @@
+ split.
+ */
+
++#include <stdlib.h>
+ #include <string.h>
+
+ #include "splt.h"
+--- a/src/wrap.c
++++ b/src/wrap.c
+@@ -34,6 +34,8 @@
+ Automatically split mp3 files created with mp3wrap into the original
+ tracks
+ */
++
++#include <stdlib.h>
+ #include <string.h>
+
+ #include "splt.h"
diff --git a/media-libs/libmp3splt/libmp3splt-0.9.2-r4.ebuild b/media-libs/libmp3splt/libmp3splt-0.9.2-r4.ebuild
new file mode 100644
index 000000000000..1a3609c270c4
--- /dev/null
+++ b/media-libs/libmp3splt/libmp3splt-0.9.2-r4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="Library for mp3splt to split mp3 and ogg files without decoding"
+HOMEPAGE="http://mp3splt.sourceforge.net/mp3splt_page/home.php"
+SRC_URI="mirror://sourceforge/${PN:3}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc flac pcre"
+
+RDEPEND="
+ media-libs/libmad
+ media-libs/libid3tag
+ media-libs/libogg
+ media-libs/libvorbis
+ flac? ( media-libs/flac )
+ pcre? ( dev-libs/libpcre )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ sys-apps/findutils
+ doc? (
+ >=app-doc/doxygen-1.8.3.1
+ media-gfx/graphviz
+ )
+"
+
+DOCS=( AUTHORS ChangeLog LIMITS NEWS README TODO )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.2-drop-libltdl.patch
+ "${FILESDIR}"/${PN}-0.9.2-fix-implicit-decl.patch
+ "${FILESDIR}"/CVE-2017-15185.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # Breaks consumers like media-sound/libmp3splt otherwise
+ # bug #778476
+ append-libs -ldl
+
+ local myeconfargs=(
+ --disable-cutter # TODO package cutter <http://cutter.sourceforge.net/>
+ --disable-optimise
+ --disable-static
+ $(use_enable doc doxygen_doc)
+ $(use_enable flac)
+ $(use_enable pcre)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ use doc && docompress -x /usr/share/doc/${PF}/doxygen/${PN}_ico.svg
+
+ find "${ED}" -type f -name '*.la' -delete || die
+}