summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2017-05-11 14:17:31 -0400
committerIan Stakenvicius <axs@gentoo.org>2017-05-11 14:18:08 -0400
commit36b60f6249d5c7d6c2684cc04264eb9cc84a1a01 (patch)
tree852ee0a2f76e197c81d63f495e1772c942b2c4bb /media-libs/openh264
parentkde-misc/latte-dock: Drop old (diff)
downloadgentoo-36b60f6249d5c7d6c2684cc04264eb9cc84a1a01.tar.gz
gentoo-36b60f6249d5c7d6c2684cc04264eb9cc84a1a01.tar.bz2
gentoo-36b60f6249d5c7d6c2684cc04264eb9cc84a1a01.zip
media-libs/openh264: version bump to 1.6.0
Bug: http://bugs.gentoo.org/596450 Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'media-libs/openh264')
-rw-r--r--media-libs/openh264/Manifest1
-rw-r--r--media-libs/openh264/openh264-1.6.0.ebuild94
2 files changed, 95 insertions, 0 deletions
diff --git a/media-libs/openh264/Manifest b/media-libs/openh264/Manifest
index 86032b874512..cc8689717a31 100644
--- a/media-libs/openh264/Manifest
+++ b/media-libs/openh264/Manifest
@@ -2,3 +2,4 @@ DIST gmp-api-Firefox38.tar.gz 16209 SHA256 6b156afe850c0d6faf0492ca5feeff4358e50
DIST gmp-api-Firefox39.tar.gz 16363 SHA256 ecb461af06f4d8f1c16330e78e73775f5656767ced77ac2b5e4bb9413ca86ec4 SHA512 da6f05c5f0540be8d4f48d25b947b21214d34a6eed365ee5fa4a38c69f77325add4be902e0dcd9d06be43914a3518ded7e4f2289dab034a24325f0bff201692a WHIRLPOOL fd661b7798970570053789577744bb12ab6354e3bcb70f64e2ac5aa73367f4a958feb3fcef343ef025aa15d6201af40d6f80a0f565e23340e1001f2259e073ce
DIST openh264-1.4.0.tar.gz 37681189 SHA256 a1b9a7a7f1ee204793c613789a505f0971bc2b03b3dbd8f05d9c4a3f3b900a22 SHA512 8192494698cb5557331be56ecbe2b7b143e0ed95739a69a88bdb34a58f66710ef1cd9234f1e98c9b16432a41a3243634e6ca63c58119315f2f9360cb2959e42b WHIRLPOOL 0d9f1f728fbceef35a5e22a6fe4c9dd42fbf84d41fe14e938194438542af182d3994694ffcd68f58798f14c8096b49b0aecad23f58ec6bdbc02de43b8d783532
DIST openh264-1.5.0.tar.gz 37851166 SHA256 98077bd5d113c183ce02b678733b0cada2cf36750370579534c4d70f0b6c27b5 SHA512 30599fed5e928af7dfec079d101a22885e52874c1d7db91ff289b989a9a20548b6bbd5d25e4e546efedd4e5aba97cbc42b1e847970b93116d86efc7af394aeaf WHIRLPOOL 038ad081e0702f198ddc519bdaef7d91254179f8f4febdb2b453ab20c40e47cd759a7b5c881065ac0523d78fc95564aa132e9a4f4b565951613aeb2a46ce74ef
+DIST openh264-1.6.0.tar.gz 37865472 SHA256 65d307bf312543ad6e98ec02abb7c27d8fd2c9740fd069d7249844612674a2c7 SHA512 a2c98bf20c64bcacdc8aef7dd17962109d6d35af0d2b8e79b3d6c0073ed214fbae03d2aac4de2cf30816519217e07811fcf320073f4ce2d9c902a8473db54f51 WHIRLPOOL 57d9989d1729df2a283eab97a9cd2b478266478eb38d9d564bcb464ca26bba8bc325813f26ab0e9906b8f8a58b6fc5cdadcbc7b15a39d692d3fa00e098860ae6
diff --git a/media-libs/openh264/openh264-1.6.0.ebuild b/media-libs/openh264/openh264-1.6.0.ebuild
new file mode 100644
index 000000000000..36d48fb3b260
--- /dev/null
+++ b/media-libs/openh264/openh264-1.6.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit nsplugins multilib-minimal
+
+MOZVER=39
+DESCRIPTION="Cisco OpenH264 library and Gecko Media Plugin for Mozilla packages"
+HOMEPAGE="http://www.openh264.org/"
+SRC_URI="https://github.com/cisco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/mozilla/gmp-api/archive/Firefox${MOZVER}.tar.gz -> gmp-api-Firefox${MOZVER}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+plugin utils"
+
+RESTRICT="bindist"
+
+RDEPEND="!<www-client/firefox-${MOZVER}"
+DEPEND="
+ abi_x86_32? ( dev-lang/nasm )
+ abi_x86_64? ( dev-lang/nasm )"
+
+DOCS=( LICENSE CONTRIBUTORS README.md )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.5.0-pkgconfig-pathfix.patch
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ ln -s "${WORKDIR}"/gmp-api-Firefox${MOZVER} gmp-api || die
+}
+
+emakecmd() {
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
+ emake V=Yes CFLAGS_M32="" CFLAGS_M64="" CFLAGS_OPT="" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR_NAME="$(get_libdir)" \
+ SHAREDLIB_DIR="${EPREFIX}/usr/$(get_libdir)" \
+ INCLUDES_DIR="${EPREFIX}/usr/include/${PN}" \
+ $@
+}
+
+multilib_src_compile() {
+ local mybits="ENABLE64BIT=No"
+ case "${ABI}" in
+ s390x|alpha|*64) mybits="ENABLE64BIT=Yes";;
+ esac
+
+ emakecmd ${mybits} ${tgt}
+ use plugin && emakecmd ${mybits} plugin
+}
+
+multilib_src_install() {
+ emakecmd DESTDIR="${D}" install-shared
+
+ use utils && dobin h264{enc,dec}
+
+ if use plugin; then
+ local plugpath="usr/$(get_libdir)/${PLUGINS_DIR}/gmp-gmp${PN}/system-installed"
+ insinto "/${plugpath}"
+ doins libgmpopenh264.so* gmpopenh264.info
+ echo "MOZ_GMP_PATH=\"${EROOT}${plugpath}\"" >"${T}"/98-moz-gmp-${PN}
+ doenvd "${T}"/98-moz-gmp-${PN}
+
+ cat <<PREFEOF >"${T}"/${P}.js
+pref("media.gmp-gmp${PN}.autoupdate", false);
+pref("media.gmp-gmp${PN}.version", "system-installed");
+PREFEOF
+
+ insinto /usr/$(get_libdir)/firefox/defaults/pref
+ doins "${T}"/${P}.js
+
+ insinto /usr/$(get_libdir)/seamonkey/defaults/pref
+ doins "${T}"/${P}.js
+ fi
+}
+
+pkg_postinst() {
+ if use plugin; then
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Please restart your login session, in order for the session's environment"
+ elog "to include the new MOZ_GMP_PATH variable."
+ elog ""
+ fi
+ elog "This package attempts to override the Mozilla GMPInstaller auto-update process,"
+ elog "however even if it is not successful in doing so the profile-installed plugin"
+ elog "will not be used unless this package is removed. This package will take precedence"
+ elog "over any gmp-gmpopenh264 that may be installed in a user's profile."
+ elog ""
+ fi
+}