diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/openh264 | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/openh264')
-rw-r--r-- | media-libs/openh264/Manifest | 5 | ||||
-rw-r--r-- | media-libs/openh264/files/pkgconfig-pathfix.patch | 40 | ||||
-rw-r--r-- | media-libs/openh264/metadata.xml | 15 | ||||
-rw-r--r-- | media-libs/openh264/openh264-1.2_p20141104.ebuild | 74 | ||||
-rw-r--r-- | media-libs/openh264/openh264-1.3.1.ebuild | 78 | ||||
-rw-r--r-- | media-libs/openh264/openh264-1.4.0.ebuild | 92 |
6 files changed, 304 insertions, 0 deletions
diff --git a/media-libs/openh264/Manifest b/media-libs/openh264/Manifest new file mode 100644 index 000000000000..8e367fe6692a --- /dev/null +++ b/media-libs/openh264/Manifest @@ -0,0 +1,5 @@ +DIST gmp-api-Firefox36.tar.gz 15182 SHA256 2cdc1284a939cda0a6fe45a8c798637cc7d959c9d757d5b0c6d2dc650a037624 SHA512 69f367a83cca01c046abf1e6d4fdb2e1587d321ffd5c7795d33ce6b271e9e9ea588e1c363ac84c3e690410e79aa73cdf64b8f12e4726392b1adbe1a1900e4bd8 WHIRLPOOL c218e9e8ae80a84495f495dcaf545eae2e3fa611a43e6dd5b1e21adeda1dd000ac8160d8a1439d523395c36d939a762aadba18db724bd3c02169c47ffc1a1bc9 +DIST gmp-api-Firefox38.tar.gz 16209 SHA256 6b156afe850c0d6faf0492ca5feeff4358e50ddc5ce3022ddcc6905a5bd21c80 SHA512 9aecbc84b1ba2fcfcb10c56680d92a72dd55f7ef7b8a68a3950dbce65fb7eb2c5e6a211149889f618bef2468ba1f3f8c01dc63e86e0a30d9295b019b75657eb8 WHIRLPOOL c12eb175ddf11f0ece400cc34bf9d5e690494fd4630c12667eed3765b66a625a1f9a3b41e20fc5a0c0f614eafbd75b6ddd5bd2a827077cfaac507a3f41990c42 +DIST gmp-openh264-1.2_p20141104.tar.xz 11874976 SHA256 d8359d004116eba6d2444486abd81f82f9cfedf2ab209b9586fc195d199096f8 SHA512 7acd982b54cd32ee2270967131792d869a9c72dca5ba8da796c61517e99b3a40f7c53ab6228c03f72c57f4eb9d3bef536645ee33ccf08a098f0662f97f811856 WHIRLPOOL 5d997bc9349d06f5d485ce654408d5f3cd1314ccdf10c21c25c59933ffe2c4b325ec32444bb74aa754b73fcc381b5b723df9f48989cba3e7137e8a594a47e24c +DIST openh264-1.3.1.tar.gz 37642592 SHA256 b0a9a61840b4a58fbadd2a0640a81917c0ee84e922d2476c1dbcb9f29b85d7a0 SHA512 e85e300a85cefc89a66fdebebe2f059c2c3262518f614c660535312b3ea441064a1288824bc488b741bcffa076b165eabf998d1b535fb377516695326be625c9 WHIRLPOOL 5acc9645b65c2b75d117bcbff24554e0b9567514427bc8d9dc8e8eda0d45080600bec12cd8d435ab605f8226cfc321d1c371c292cf26d30a29a77fd187db6dc4 +DIST openh264-1.4.0.tar.gz 37681189 SHA256 a1b9a7a7f1ee204793c613789a505f0971bc2b03b3dbd8f05d9c4a3f3b900a22 SHA512 8192494698cb5557331be56ecbe2b7b143e0ed95739a69a88bdb34a58f66710ef1cd9234f1e98c9b16432a41a3243634e6ca63c58119315f2f9360cb2959e42b WHIRLPOOL 0d9f1f728fbceef35a5e22a6fe4c9dd42fbf84d41fe14e938194438542af182d3994694ffcd68f58798f14c8096b49b0aecad23f58ec6bdbc02de43b8d783532 diff --git a/media-libs/openh264/files/pkgconfig-pathfix.patch b/media-libs/openh264/files/pkgconfig-pathfix.patch new file mode 100644 index 000000000000..455b91331df4 --- /dev/null +++ b/media-libs/openh264/files/pkgconfig-pathfix.patch @@ -0,0 +1,40 @@ +--- a/Makefile 2015-03-25 03:43:00.000000000 -0400 ++++ b/Makefile 2015-06-18 17:28:42.436110085 -0400 +@@ -24,6 +24,7 @@ + OBJ=o + DESTDIR= + SHAREDLIB_DIR=$(PREFIX)/lib ++INCLUDES_DIR=$(PREFIX)/include + PROJECT_NAME=openh264 + MODULE_NAME=gmpopenh264 + GMP_API_BRANCH=Firefox38 +@@ -229,14 +230,14 @@ + endif + + $(PROJECT_NAME).pc: $(PROJECT_NAME).pc.in +- @sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;;' -e 's;@LIBS_PRIVATE@;$(STATIC_LDFLAGS);' < $(PROJECT_NAME).pc.in > $@ ++ @sed -e 's;@prefix@;$(PREFIX);' -e 's;@sharedlibdir@;$(SHAREDLIB_DIR);' -e 's;@includesdir@;$(INCLUDES_DIR);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;;' -e 's;@LIBS_PRIVATE@;$(STATIC_LDFLAGS);' < $(PROJECT_NAME).pc.in > $@ + + $(PROJECT_NAME)-static.pc: $(PROJECT_NAME).pc.in +- @sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $(PROJECT_NAME).pc.in > $@ ++ @sed -e 's;@prefix@;$(PREFIX);' -e 's;@sharedlibdir@;;' -e 's;@includesdir@;$(INCLUDES_DIR);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $(PROJECT_NAME).pc.in > $@ + + install-headers: +- mkdir -p $(DESTDIR)/$(PREFIX)/include/wels +- install -m 644 codec/api/svc/codec*.h $(DESTDIR)/$(PREFIX)/include/wels ++ mkdir -p $(DESTDIR)/$(INCLUDES_DIR)/wels ++ install -m 644 codec/api/svc/codec*.h $(DESTDIR)/$(INCLUDES_DIR)/wels + + install-static-lib: $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX) install-headers + mkdir -p $(DESTDIR)/$(PREFIX)/lib +--- a/openh264.pc.in 2015-06-18 17:32:58.356114757 -0400 ++++ b/openh264.pc.in 2015-06-18 17:31:12.096112817 -0400 +@@ -1,6 +1,6 @@ + prefix=@prefix@ +-libdir=${prefix}/lib +-includedir=${prefix}/include ++libdir=@sharedlibdir@ ++includedir=@includesdir@ + + Name: OpenH264 + Description: OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC. diff --git a/media-libs/openh264/metadata.xml b/media-libs/openh264/metadata.xml new file mode 100644 index 000000000000..cc2cd190e848 --- /dev/null +++ b/media-libs/openh264/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>axs@gentoo.org</email> + <name>Ian Stakenvicius</name> + </maintainer> + <use> + <flag name="plugin">Install the Gecko Media Plugin (GMP) for use with Mozilla packages</flag> + <flag name="utils">Install the CLI encoder and decoder utilities</flag> + </use> + <upstream> + <remote-id type="github">mozilla/gmp-api</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-libs/openh264/openh264-1.2_p20141104.ebuild b/media-libs/openh264/openh264-1.2_p20141104.ebuild new file mode 100644 index 000000000000..729f6e1491ba --- /dev/null +++ b/media-libs/openh264/openh264-1.2_p20141104.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit nsplugins + +DESCRIPTION="Cisco OpenH264 library and Gecko Media Plugin for mozilla packages" +HOMEPAGE="http://www.openh264.org/" +SRC_URI="http://dev.gentoo.org/~axs/distfiles/gmp-${P}.tar.xz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+plugin" + +RESTRICT="bindist" + +RDEPEND="" +DEPEND="dev-lang/nasm" + +DOCS=( LICENSE CONTRIBUTORS README.md ) + +S=${WORKDIR}/gmp-${P} + +src_compile() { + local mybits="ENABLE64BIT=No" + case "${ABI}" in + s390x|alpha|*64) mybits="ENABLE64BIT=Yes";; + esac + emake V=Yes ${mybits} + use plugin && emake V=Yes ${mybits} plugin +} + +src_install() { + emake PREFIX="${ED}usr" LIBPREFIX="${ED}usr/$(get_libdir)/" \ + install-headers + + dolib libopenh264.so + + 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 +} diff --git a/media-libs/openh264/openh264-1.3.1.ebuild b/media-libs/openh264/openh264-1.3.1.ebuild new file mode 100644 index 000000000000..cd3c1cb4af3f --- /dev/null +++ b/media-libs/openh264/openh264-1.3.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit nsplugins + +MOZVER=36 +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="~amd64 ~x86" +IUSE="+plugin" + +RESTRICT="bindist" + +RDEPEND="!<www-client/firefox-${MOZVER}" +DEPEND="dev-lang/nasm" + +DOCS=( LICENSE CONTRIBUTORS README.md ) + +src_prepare() { + ln -s ../gmp-api-Firefox${MOZVER} gmp-api +} + +src_compile() { + local mybits="ENABLE64BIT=No" + case "${ABI}" in + s390x|alpha|*64) mybits="ENABLE64BIT=Yes";; + esac + emake V=Yes ${mybits} + use plugin && emake V=Yes ${mybits} plugin +} + +src_install() { + emake PREFIX="${ED}usr" LIBPREFIX="${ED}usr/$(get_libdir)/" \ + install-headers + + dolib libopenh264.so + + 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 +} diff --git a/media-libs/openh264/openh264-1.4.0.ebuild b/media-libs/openh264/openh264-1.4.0.ebuild new file mode 100644 index 000000000000..61108ffe47c4 --- /dev/null +++ b/media-libs/openh264/openh264-1.4.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit nsplugins multilib-minimal + +MOZVER=38 +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="~amd64 ~x86" +IUSE="+plugin utils" + +RESTRICT="bindist" + +RDEPEND="!<www-client/firefox-${MOZVER}" +DEPEND="dev-lang/nasm" + +DOCS=( LICENSE CONTRIBUTORS README.md ) + +src_prepare() { + epatch "${FILESDIR}"/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" \ + 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 +} |