1 |
commit: 568339e99305a1ee5dfddcecf1311020e465974f |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 06:15:43 2023 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 06:16:34 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568339e9 |
7 |
|
8 |
media-libs/openh264: drop 2.3.0 |
9 |
|
10 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
11 |
|
12 |
media-libs/openh264/Manifest | 1 - |
13 |
media-libs/openh264/openh264-2.3.0.ebuild | 121 ------------------------------ |
14 |
2 files changed, 122 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/openh264/Manifest b/media-libs/openh264/Manifest |
17 |
index 4a931d861a82..01ff57956a19 100644 |
18 |
--- a/media-libs/openh264/Manifest |
19 |
+++ b/media-libs/openh264/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
DIST gmp-api-Firefox39-3a01c086d1b0394238ff1b5ad22e76022830625a.tar.gz 10464 BLAKE2B db6990a55b4128c267ee5ffa4e38edd2551c862e549776b4092d5683818001366665830c6304642cdd9c2c0afe06035edebafde769693082ae7a5236cdc463e8 SHA512 a6383834391d98754177b54df31d006144b5cad952df60115fd12fb6f0c87e571a10f9ce7276b817e4137efd97ffa7bca5092e289b0eb7cde2a3ad923319e874 |
22 |
-DIST openh264-2.3.0.tar.gz 60290792 BLAKE2B 08aa571471188c72bb0f098fa1cfaf9ba46ee4311f50518de868a2d7bbd61d9d4547cf5d33b3140d56c09a1ea7ea411bfaa96ed960e159876e6cc803f081b5d3 SHA512 5f0ccbb3c0026a010d9830e973312486f9d5ea8152afa3653ab6b3c43906a1169cebea70532134c1624846cc03b586e85b12cfd0621af505bd532a7dd833defd |
23 |
DIST openh264-2.3.1.tar.gz 60290897 BLAKE2B b4480150cfe7c44b89c7b294698db06f93d96f5f9f3ef4345108c4e360e99bc6133407cead54e720e6e74aa17ab9f2e4342287a42f19463a54eb44c9d3141c80 SHA512 fd59c767794cdfb934d692d5929e4500d78606cbf1e403bc7c7dce048cc07e40daa0794357adb856d29479427a53460c76338e156b6bbeaa36139afcd603c8e1 |
24 |
|
25 |
diff --git a/media-libs/openh264/openh264-2.3.0.ebuild b/media-libs/openh264/openh264-2.3.0.ebuild |
26 |
deleted file mode 100644 |
27 |
index 25f5bca8a26d..000000000000 |
28 |
--- a/media-libs/openh264/openh264-2.3.0.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,121 +0,0 @@ |
31 |
-# Copyright 1999-2022 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=8 |
35 |
- |
36 |
-inherit toolchain-funcs multilib-minimal |
37 |
- |
38 |
-MOZVER=39 |
39 |
-MY_GMP_COMMIT="3a01c086d1b0394238ff1b5ad22e76022830625a" |
40 |
- |
41 |
-DESCRIPTION="Cisco OpenH264 library and Gecko Media Plugin for Mozilla packages" |
42 |
-HOMEPAGE="https://www.openh264.org/ https://github.com/cisco/openh264" |
43 |
-SRC_URI="https://github.com/cisco/openh264/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz |
44 |
- https://github.com/mozilla/gmp-api/archive/${MY_GMP_COMMIT}.tar.gz -> gmp-api-Firefox${MOZVER}-${MY_GMP_COMMIT}.tar.gz" |
45 |
-LICENSE="BSD" |
46 |
- |
47 |
-# openh264 soname version. |
48 |
-# (2.2.0 needed a minor bump due to undocumented but breaking ABI changes, just to be sure. |
49 |
-# https://github.com/cisco/openh264/issues/3459 ) |
50 |
-SLOT="0/6.1" |
51 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86" |
52 |
-IUSE="cpu_flags_arm_neon cpu_flags_x86_avx2 +plugin utils" |
53 |
- |
54 |
-RESTRICT="bindist test" |
55 |
- |
56 |
-BDEPEND=" |
57 |
- abi_x86_32? ( dev-lang/nasm ) |
58 |
- abi_x86_64? ( dev-lang/nasm )" |
59 |
- |
60 |
-DOCS=( LICENSE CONTRIBUTORS README.md ) |
61 |
- |
62 |
-PATCHES=( "${FILESDIR}"/openh264-2.3.0-pkgconfig-pathfix.patch ) |
63 |
- |
64 |
-src_prepare() { |
65 |
- default |
66 |
- |
67 |
- sed -i -e 's/ | generate-version//g' Makefile || die |
68 |
- sed -e 's|$FULL_VERSION|""|g' codec/common/inc/version_gen.h.template > \ |
69 |
- codec/common/inc/version_gen.h |
70 |
- |
71 |
- multilib_copy_sources |
72 |
-} |
73 |
- |
74 |
-multilib_src_configure() { |
75 |
- ln -s "${WORKDIR}"/gmp-api-${MY_GMP_COMMIT} gmp-api || die |
76 |
-} |
77 |
- |
78 |
-emakecmd() { |
79 |
- CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" AR="$(tc-getAR)" \ |
80 |
- emake V=Yes CFLAGS_M32="" CFLAGS_M64="" CFLAGS_OPT="" \ |
81 |
- PREFIX="${EPREFIX}/usr" \ |
82 |
- LIBDIR_NAME="$(get_libdir)" \ |
83 |
- SHAREDLIB_DIR="${EPREFIX}/usr/$(get_libdir)" \ |
84 |
- INCLUDES_DIR="${EPREFIX}/usr/include/${PN}" \ |
85 |
- HAVE_AVX2=$(usex cpu_flags_x86_avx2 Yes No) \ |
86 |
- ARCH="$(tc-arch)" \ |
87 |
- $@ |
88 |
-} |
89 |
- |
90 |
-multilib_src_compile() { |
91 |
- local myopts="ENABLE64BIT=No" |
92 |
- case "${ABI}" in |
93 |
- s390x|alpha|*64) myopts="ENABLE64BIT=Yes";; |
94 |
- esac |
95 |
- |
96 |
- if use arm; then |
97 |
- myopts+=" USE_ASM=$(usex cpu_flags_arm_neon Yes No)" |
98 |
- fi |
99 |
- |
100 |
- emakecmd ${myopts} |
101 |
- use plugin && emakecmd ${myopts} plugin |
102 |
-} |
103 |
- |
104 |
-multilib_src_install() { |
105 |
- emakecmd DESTDIR="${D}" install-shared |
106 |
- |
107 |
- if use utils; then |
108 |
- newbin h264enc openh264enc |
109 |
- newbin h264dec openh264dec |
110 |
- fi |
111 |
- |
112 |
- if use plugin; then |
113 |
- local plugpath="${ROOT}/usr/$(get_libdir)/nsbrowser/plugins/gmp-gmp${PN}/system-installed" |
114 |
- insinto "${plugpath}" |
115 |
- doins libgmpopenh264.so* gmpopenh264.info |
116 |
- echo "MOZ_GMP_PATH=\"${plugpath}\"" >"${T}"/98-moz-gmp-${PN} |
117 |
- doenvd "${T}"/98-moz-gmp-${PN} |
118 |
- |
119 |
- cat <<PREFEOF >"${T}"/${P}.js |
120 |
-pref("media.gmp-gmp${PN}.autoupdate", false); |
121 |
-pref("media.gmp-gmp${PN}.version", "system-installed"); |
122 |
-PREFEOF |
123 |
- |
124 |
- insinto /usr/$(get_libdir)/firefox/defaults/pref |
125 |
- newins "${T}"/${P}.js ${PN}-${PV/_p*/}.js |
126 |
- |
127 |
- insinto /usr/$(get_libdir)/seamonkey/defaults/pref |
128 |
- newins "${T}"/${P}.js ${PN}-${PV/_p*/}.js |
129 |
- fi |
130 |
-} |
131 |
- |
132 |
-pkg_postinst() { |
133 |
- if use plugin; then |
134 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
135 |
- elog "Please restart your login session, in order for the session's environment" |
136 |
- elog "to include the new MOZ_GMP_PATH variable." |
137 |
- elog "" |
138 |
- fi |
139 |
- elog "This package attempts to override the Mozilla GMPInstaller auto-update process," |
140 |
- elog "however even if it is not successful in doing so the profile-installed plugin" |
141 |
- elog "will not be used unless this package is removed. This package will take precedence" |
142 |
- elog "over any gmp-gmpopenh264 that may be installed in a user's profile." |
143 |
- elog "" |
144 |
- fi |
145 |
- |
146 |
- if use utils; then |
147 |
- elog "Utilities h264enc and h264dec are installed as openh264enc and openh264dec" |
148 |
- elog "to avoid file collisions with media-video/h264enc" |
149 |
- elog "" |
150 |
- fi |
151 |
-} |