diff options
-rw-r--r-- | media-libs/gstreamer/Manifest | 1 | ||||
-rw-r--r-- | media-libs/gstreamer/gstreamer-1.8.2.ebuild | 101 |
2 files changed, 102 insertions, 0 deletions
diff --git a/media-libs/gstreamer/Manifest b/media-libs/gstreamer/Manifest index 5cd70b69dba..97469810fb7 100644 --- a/media-libs/gstreamer/Manifest +++ b/media-libs/gstreamer/Manifest @@ -1,3 +1,4 @@ DIST gstreamer-0.10.36.tar.xz 3025876 SHA256 9151aa108c177054387885763fa0e433e76780f7c5655c70a5390f2a6c6871da SHA512 7468abb578398681d2adb0e9bbc9ee8ae25aaef72369d45a66ada6c67d1759afdce606cb32e68d9e30ae813196bdfef3d4d33202bc77839cc1fbf5fc436c1bd8 WHIRLPOOL 03b841624552be860d4bf824bde9d6d5d6afc629048244b02037c96370c88191f34a6d09f02af61f295a9d6f84952efec2c5d4b0a28e8e70cd17966ed1b01d93 DIST gstreamer-1.4.5.tar.xz 3324052 SHA256 40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae SHA512 ed7b371f99b7da4ec462e34cd8e02062a0faaad7498a87cfc1ef39f8740db9bca0cc5bfe17ae5ff24abe0bd4a6771e732da193c01ca0e2d835b6c5d9f0d41403 WHIRLPOOL 3065b43a84d8d1d09ec9fb9bda5afc91550cd9f55e2db486c6aceec8fa41dd5ae7d3809c6b6249e86e658c94ffed6ec5a4a7a3cd25b2ab17c24c5a3488355bee DIST gstreamer-1.6.3.tar.xz 3553256 SHA256 22f9568d67b87cf700a111f381144bd37cb93790a77e4e331db01fe854a37f24 SHA512 f5ab2461469d489da956a0dd4e785e8f0a130b104a37289f7821be6e8f8e5049864888fdcf3a7d281406bf48b40737afa75347c22e6bec05ff2cf525734b51f7 WHIRLPOOL 386efbe1f431e247e11f7369ababb8bb5f2d457b046de1eb955cb9d2322f995c862b22124efcbeeeb9b4d25def664de952b98fe54ba71cd2438502e86ac1db7c +DIST gstreamer-1.8.2.tar.xz 3609500 SHA256 9dbebe079c2ab2004ef7f2649fa317cabea1feb4fb5605c24d40744b90918341 SHA512 135d0a389fee3a9ebbd9df646c2d77affa4681721c4215dc6edd23be91d86c83f32c80498c37fcd19d97b3e534e6c45a96c3aa2650155696ca756bbeb7271b15 WHIRLPOOL 09836f8cca9aa9e10ac1758497c7b020357ab8b359dd309be9997f86252f8a32e665bed6adfa2c506175f70701ba809b164dad81d37b27a2adea09960d0e328a diff --git a/media-libs/gstreamer/gstreamer-1.8.2.ebuild b/media-libs/gstreamer/gstreamer-1.8.2.ebuild new file mode 100644 index 00000000000..f824c815ced --- /dev/null +++ b/media-libs/gstreamer/gstreamer-1.8.2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit bash-completion-r1 multilib multilib-minimal pax-utils + +DESCRIPTION="Open source multimedia framework" +HOMEPAGE="https://gstreamer.freedesktop.org/" +SRC_URI="https://${PN}.freedesktop.org/src/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="1.0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="+caps +introspection nls +orc test" + +RDEPEND=" + >=dev-libs/glib-2.40.0:2[${MULTILIB_USEDEP}] + caps? ( sys-libs/libcap ) + introspection? ( >=dev-libs/gobject-introspection-1.31.1:= ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.12 + sys-devel/bison + sys-devel/flex + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] + nls? ( sys-devel/gettext ) +" +# gtk-doc-am to install API docs + +src_configure() { + if [[ ${CHOST} == *-interix* ]] ; then + export ac_cv_lib_dl_dladdr=no + export ac_cv_func_poll=no + fi + if [[ ${CHOST} == powerpc-apple-darwin* ]] ; then + # GCC groks this, but then refers to an implementation (___multi3, + # ___udivti3) that don't exist (at least I can't find it), so force + # this one to be off, such that we use 2x64bit emulation code. + export gst_cv_uint128_t=no + fi + + multilib-minimal_src_configure +} + +multilib_src_configure() { + # Set 'libexecdir' to ABI-specific location for the library spawns + # helpers from there. + # Disable static archives and examples to speed up build time + # Disable debug, as it only affects -g passing (debugging symbols), this must done through make.conf in gentoo + local myconf=( + --libexecdir="${EPREFIX}"/usr/$(get_libdir) + --disable-debug + --disable-examples + --disable-static + --disable-valgrind + --enable-check + $(multilib_native_use_enable introspection) + $(use_enable nls) + $(use_enable test tests) + --with-bash-completion-dir="$(get_bashcompdir)" + --with-package-name="GStreamer ebuild for Gentoo" + --with-package-origin="https://packages.gentoo.org/package/media-libs/gstreamer" + ) + + if use caps ; then + myconf+=( --with-ptp-helper-permissions=capabilities ) + else + myconf+=( + --with-ptp-helper-permissions=setuid-root + --with-ptp-helper-setuid-user=nobody + --with-ptp-helper-setuid-group=nobody + ) + fi + + ECONF_SOURCE="${S}" econf ${myconf[$@]} + + if multilib_is_native_abi; then + local x + for x in gst libs plugins; do + ln -s "${S}"/docs/${x}/html docs/${x}/html || die + done + fi +} + +multilib_src_install() { + # can't do "default", we want to install docs in multilib_src_install_all + emake DESTDIR="${D}" install + + # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579 + use orc && pax-mark -m "${ED}usr/$(get_libdir)/gstreamer-${SLOT}/gst-plugin-scanner" +} + +multilib_src_install_all() { + DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE" + einstalldocs + prune_libtool_files --modules + + # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579 + use orc && pax-mark -m "${ED}usr/bin/gst-launch-${SLOT}" +} |