diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/gst-plugins-ivorbis |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/gst-plugins-ivorbis')
4 files changed, 159 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-ivorbis/Manifest b/media-plugins/gst-plugins-ivorbis/Manifest new file mode 100644 index 000000000000..7d92a242008f --- /dev/null +++ b/media-plugins/gst-plugins-ivorbis/Manifest @@ -0,0 +1,6 @@ +AUX 0.10.36-header-shuffle.patch 3668 SHA256 d9e639798027028c5f4a42dc0b25ffc5f9196955328e6c9e6ebf99a9a834115b SHA512 d67ce5b0e169d11d51a871a24bfe97b8a025dab05ffb3854ab4a30de93d2649809703c0de581697642735f9d715d986ebc4dc24f95da58874b00cbf57f3031c9 WHIRLPOOL f9f90c25abbf9cb6107c59d6888617773be0f692149f3f71e3719daa3441ecf160152af26788af1f5e0edf14ac5882a906607e06c22b8e29619f91be16951acd +DIST gst-plugins-base-0.10.36.tar.xz 2364108 SHA256 1fe45c3894903001d4d008b0713dab089f53726dcb5842d5b40c2595a984e64a SHA512 ea77778e073515df58229a641b4363df31f0b80204a5a43a8feb31f0b03a5a4b9b79d6e07e1615c773a59927a9b649f1b1d782def1120d581d09a090be8363b8 WHIRLPOOL e455f2a1aafd60078080735108e4ac336bc4764ed92b9579d83a453f75491331d16b48e5983f3c9712b6edb28ec379e696f06f6910c93168b019d6077c28fb6d +EBUILD gst-plugins-ivorbis-0.10.36-r1.ebuild 526 SHA256 ac78db7563efacc90b07cba06b442eb0605fa4c2bd55db06bf84492d5c945260 SHA512 6f6710e7193fd26d55762536b5de05cb5e8dc18a1bb13012bbf82a4614c3433fe99dbc26bf7ca13e788886ffa8d21ce2079b9a1b66f8d9d5adc14bd37d6d9757 WHIRLPOOL 2f105f3f8e8950d64cc3610637cba296d54cbb9e8a4c7cb3e347c8887f1643fa8c078ab2f944de5f6aeef1983e75878c1ad466085b9263b14b183e6f65c2562e +MISC ChangeLog 2746 SHA256 95788d48a072737f172526416d8ad27792033f542494c526f256fde567b70db9 SHA512 6d1df72097a5375a82a38bfb4f46217a148981a58972a2906c2a375bf07c8cd9365061cf664c229862b4bceffc989b1bf2722dd307312e15f98f269dd803888d WHIRLPOOL f2680e03fa201afbbe6691902be50a334537a3ce6852e762a4718d53b9e588bf756cb1407d4d20b17cb102ea11aa4a4045027b2fb88b87f2a8411df283a66ebe +MISC ChangeLog-2015 2582 SHA256 3513e6f9be984036abe3fd5b18456075137ed22e52aad5b167d04cb674eee39a SHA512 5bb46e0fd6fa8f8c2d488220cd4f118eef70ca98bc617615c4a67038518ae15853cd82d3f713024c216652c57c2bc4e059d2605111e3c0013800f5ed3043db39 WHIRLPOOL 98eaaa5df4b50b619ac4fd2c165bbe8b756f6ff55501ab8abc1db4a7d5e89b5e74b5b7c7feedc8bf2e7afe8ee9d908f8c18dcb063a6ad57f5f417484ef9761de +MISC metadata.xml 262 SHA256 aff3dcfdbd8f863806436de702d542cc89c7d5a9b8f4224b71c6de4555d9b090 SHA512 608f0a17d576a3b23a6921272eb449a6efed76b3c4b3fdf8737b2d499b56d109186c2883c06e5c843799d2fb1606f3066c43759b40f9d7cf58b6a674c38dd0e0 WHIRLPOOL 81b06b984b66fa01e67d2803859238d53791739041068f4778a3d0b70038ad567b90d0cf7819191d7747c86d5cd03556d7f81d5efafef1006a901d516e3db703 diff --git a/media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch b/media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch new file mode 100644 index 000000000000..4a1f08739345 --- /dev/null +++ b/media-plugins/gst-plugins-ivorbis/files/0.10.36-header-shuffle.patch @@ -0,0 +1,122 @@ +Fix build of ivorbis plugin of gstreamer-0.10 series applying header +code moves from gstreamer-1 series. + +The diff can probably be made smaller but the intent was to match +known working gst-1. + +diff -Nu a/ext/vorbis/gstvorbisdeclib.h b/ext/vorbis/gstvorbisdeclib.h +--- a/ext/vorbis/gstvorbisdeclib.h 2011-12-11 19:47:07.000000000 +0100 ++++ b/ext/vorbis/gstvorbisdeclib.h 2013-01-20 18:31:37.291211764 +0100 +@@ -29,11 +29,6 @@ + + #ifndef TREMOR + +-#include <vorbis/codec.h> +- +-typedef float vorbis_sample_t; +-typedef ogg_packet ogg_packet_wrapper; +- + #define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to float audio" + + #define GST_VORBIS_DEC_SRC_CAPS \ +@@ -47,6 +42,42 @@ + + #define GST_VORBIS_DEC_GLIB_TYPE_NAME GstVorbisDec + ++#else /* TREMOR */ ++ ++#define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to integer audio" ++ ++#define GST_VORBIS_DEC_SRC_CAPS \ ++ GST_STATIC_CAPS ("audio/x-raw-int, " \ ++ "rate = (int) [ 1, MAX ], " \ ++ "channels = (int) [ 1, 6 ], " \ ++ "endianness = (int) BYTE_ORDER, " \ ++ "width = (int) { 16, 32 }, " \ ++ "depth = (int) 16, " \ ++ "signed = (boolean) true") ++ ++#define GST_VORBIS_DEC_DEFAULT_SAMPLE_WIDTH (16) ++ ++/* we need a different type name here */ ++#define GST_VORBIS_DEC_GLIB_TYPE_NAME GstIVorbisDec ++ ++/* and still have it compile */ ++typedef struct _GstVorbisDec GstIVorbisDec; ++typedef struct _GstVorbisDecClass GstIVorbisDecClass; ++ ++#endif /* TREMOR */ ++ ++#ifndef USE_TREMOLO ++ ++#ifdef TREMOR ++ #include <tremor/ivorbiscodec.h> ++ typedef ogg_int32_t vorbis_sample_t; ++#else ++ #include <vorbis/codec.h> ++ typedef float vorbis_sample_t; ++#endif ++ ++typedef ogg_packet ogg_packet_wrapper; ++ + static inline guint8 * + gst_ogg_packet_data (ogg_packet * p) + { +@@ -72,17 +103,11 @@ + return packet; + } + +-#else +- +-#ifdef USE_TREMOLO +- #include <Tremolo/ivorbiscodec.h> +- #include <Tremolo/codec_internal.h> +- typedef ogg_int16_t vorbis_sample_t; +-#else +- #include <tremor/ivorbiscodec.h> +- typedef ogg_int32_t vorbis_sample_t; +-#endif ++#else /* USE_TREMOLO */ + ++#include <Tremolo/ivorbiscodec.h> ++#include <Tremolo/codec_internal.h> ++typedef ogg_int16_t vorbis_sample_t; + typedef struct _ogg_packet_wrapper ogg_packet_wrapper; + + struct _ogg_packet_wrapper { +@@ -91,26 +116,6 @@ + ogg_buffer buf; + }; + +-#define GST_VORBIS_DEC_DESCRIPTION "decode raw vorbis streams to integer audio" +- +-#define GST_VORBIS_DEC_SRC_CAPS \ +- GST_STATIC_CAPS ("audio/x-raw-int, " \ +- "rate = (int) [ 1, MAX ], " \ +- "channels = (int) [ 1, 6 ], " \ +- "endianness = (int) BYTE_ORDER, " \ +- "width = (int) { 16, 32 }, " \ +- "depth = (int) 16, " \ +- "signed = (boolean) true") +- +-#define GST_VORBIS_DEC_DEFAULT_SAMPLE_WIDTH (16) +- +-/* we need a different type name here */ +-#define GST_VORBIS_DEC_GLIB_TYPE_NAME GstIVorbisDec +- +-/* and still have it compile */ +-typedef struct _GstVorbisDec GstIVorbisDec; +-typedef struct _GstVorbisDecClass GstIVorbisDecClass; +- + /* compensate minor variation */ + #define vorbis_synthesis(a, b) vorbis_synthesis (a, b, 1) + +@@ -154,7 +159,7 @@ + return &(packet->packet); + } + +-#endif ++#endif /* USE_TREMOLO */ + + typedef void (*CopySampleFunc)(vorbis_sample_t *out, vorbis_sample_t **in, + guint samples, gint channels, gint width); diff --git a/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36-r1.ebuild b/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36-r1.ebuild new file mode 100644 index 000000000000..9dd6e286384d --- /dev/null +++ b/media-plugins/gst-plugins-ivorbis/gst-plugins-ivorbis-0.10.36-r1.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +GST_ORG_MODULE=gst-plugins-base +inherit gstreamer + +KEYWORDS="amd64 ~arm hppa ppc ppc64 x86 ~amd64-fbsd ~x64-macos" +IUSE="" + +RDEPEND=">=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" + +GST_PLUGINS_BUILD_DIR="vorbis" + +src_prepare() { + epatch "${FILESDIR}"/0.10.36-header-shuffle.patch + + gstreamer_system_link \ + gst-libs/gst/audio:gstreamer-audio \ + gst-libs/gst/tag:gstreamer-tag +} diff --git a/media-plugins/gst-plugins-ivorbis/metadata.xml b/media-plugins/gst-plugins-ivorbis/metadata.xml new file mode 100644 index 000000000000..fb1ea7216a80 --- /dev/null +++ b/media-plugins/gst-plugins-ivorbis/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gstreamer@gentoo.org</email> + <name>GStreamer package maintainers</name> +</maintainer> +</pkgmetadata> |