1 |
commit: 1eebad3a210f378c87a67b32d2963c44ee5bb208 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 25 09:46:05 2022 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 25 09:46:45 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eebad3a |
7 |
|
8 |
media-video/gpac: bump to 2.0.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
media-video/gpac/Manifest | 1 + |
14 |
media-video/gpac/files/gpac-2.0.0-configure.patch | 113 +++++++++++++++++++++ |
15 |
.../gpac/{gpac-9999.ebuild => gpac-2.0.0.ebuild} | 6 +- |
16 |
media-video/gpac/gpac-9999.ebuild | 6 +- |
17 |
4 files changed, 120 insertions(+), 6 deletions(-) |
18 |
|
19 |
diff --git a/media-video/gpac/Manifest b/media-video/gpac/Manifest |
20 |
index 3119d5d920e5..84cbbe3a0255 100644 |
21 |
--- a/media-video/gpac/Manifest |
22 |
+++ b/media-video/gpac/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST gpac-1.0.1.tar.gz 10352926 BLAKE2B 80bdbd568551f9028a44acfa0cfeba585b69f24392393c1fb1bfe16f4b614eb79cda5f641f0b61854734f0dd85eb17520c2012040d3c47d68f66e5beb66fb2db SHA512 533371d59e72250bef315be03ec3437cd66782d0fb6bdb6486a6f4d57d06a6a7deff1b31fe8bfd360be1d1c848b33b5d25e7268f56f27f8e92cbcb7da1aba82b |
25 |
+DIST gpac-2.0.0.tar.gz 11362932 BLAKE2B a8489831efb77c374d13e2edb3951e60a94907c4cd8601919e1390aee0e9002249e97a9200fd006c2aa783c516f701f7695aa84b5f3596a3bc90290916ff4086 SHA512 e95e6d78167fc306917b3ac89e56ba511bbcb0c825da118f5ba374504499352104b5c1f3ee71e7ec018015b8e302f9b07162d22287ddb21c8564b097d900913f |
26 |
|
27 |
diff --git a/media-video/gpac/files/gpac-2.0.0-configure.patch b/media-video/gpac/files/gpac-2.0.0-configure.patch |
28 |
new file mode 100644 |
29 |
index 000000000000..2b54d16a8d22 |
30 |
--- /dev/null |
31 |
+++ b/media-video/gpac/files/gpac-2.0.0-configure.patch |
32 |
@@ -0,0 +1,113 @@ |
33 |
+* Makes static libs optional |
34 |
+* Removes auto-SSE2 detection |
35 |
+---- |
36 |
+Index: gpac-2.0.0/Makefile |
37 |
+=================================================================== |
38 |
+--- gpac-2.0.0.orig/Makefile |
39 |
++++ gpac-2.0.0/Makefile |
40 |
+@@ -298,8 +298,9 @@ ifeq ($(GPAC_ENST),yes) |
41 |
+ endif |
42 |
+ |
43 |
+ $(INSTALL) -d "$(DESTDIR)$(prefix)/$(lib_dir)" |
44 |
++ifeq ($(STATIC_LIBS), yes) |
45 |
+ $(INSTALL) $(INSTFLAGS) -m 644 "./bin/gcc/libgpac_static.a" "$(DESTDIR)$(prefix)/$(lib_dir)" || true |
46 |
+- |
47 |
++endif |
48 |
+ $(INSTALL) -d $(DESTDIR)$(prefix)/$(lib_dir)/pkgconfig |
49 |
+ $(INSTALL) $(INSTFLAGS) -m 644 gpac.pc "$(DESTDIR)$(prefix)/$(lib_dir)/pkgconfig" |
50 |
+ |
51 |
+Index: gpac-2.0.0/configure |
52 |
+=================================================================== |
53 |
+--- gpac-2.0.0.orig/configure |
54 |
++++ gpac-2.0.0/configure |
55 |
+@@ -106,6 +106,7 @@ has_dvb4linux="no" |
56 |
+ has_openjpeg="no" |
57 |
+ gprof_build="no" |
58 |
+ static_build="no" |
59 |
++static_libs="no" |
60 |
+ want_pic="no" |
61 |
+ want_gcov="no" |
62 |
+ has_joystick="no" |
63 |
+@@ -271,6 +272,7 @@ GPAC configuration options: |
64 |
+ --static-modules use static modules in libgpac rather than dynamic library modules |
65 |
+ --static-build link statically against libgpac but still allow dependencies to shared libraries (enable --static-modules) |
66 |
+ --enable-static-bin old name for --static-build, deprecated |
67 |
++ --enable-static-lib GPAC static libraries build |
68 |
+ --static-bin enable static linking of MP4Box and gpac only (enable --static-build), disable MP4Client and all libraries not linkable statically. |
69 |
+ --static-mp4box old name for --static-bin, deprecated |
70 |
+ --enable-depth enables depth handling in the compositor |
71 |
+@@ -741,14 +743,6 @@ if docc -lz -Wno-pointer-sign ; then |
72 |
+ fi |
73 |
+ |
74 |
+ |
75 |
+-#GCC opt |
76 |
+-if test "$no_gcc_opt" = "no"; then |
77 |
+- CFLAGS="-O3 $CFLAGS" |
78 |
+-else |
79 |
+- CFLAGS="-O0 $CFLAGS" |
80 |
+-fi |
81 |
+- |
82 |
+- |
83 |
+ #GCC PIC |
84 |
+ if test "$cross_prefix" != "" ; then |
85 |
+ want_pic="no" |
86 |
+@@ -776,10 +770,6 @@ cat > $TMPC << EOF |
87 |
+ int main( void ) { return 0; } |
88 |
+ EOF |
89 |
+ |
90 |
+-if docc -msse2 $LDFLAGS ; then |
91 |
+- CFLAGS="$CFLAGS -msse2" |
92 |
+-fi |
93 |
+- |
94 |
+ |
95 |
+ #look for zlib |
96 |
+ cat > $TMPC << EOF |
97 |
+@@ -1790,6 +1780,8 @@ for opt do |
98 |
+ echo "$opt deprecated, use --static-build instead" |
99 |
+ static_build="yes"; |
100 |
+ ;; |
101 |
++ --enable-static-libs) static_libs="yes"; |
102 |
++ ;; |
103 |
+ --disable-ipv6) has_ipv6="no" |
104 |
+ ;; |
105 |
+ --disable-platinum) has_platinum="no" |
106 |
+@@ -2521,6 +2513,7 @@ else |
107 |
+ fi |
108 |
+ echo "debug version: $debuginfo" |
109 |
+ echo "GProf enabled: $gprof_build" |
110 |
++echo "Static libs enabled: $static_libs" |
111 |
+ echo "Memory tracking enabled: $use_memory_tracking" |
112 |
+ echo "Sanitizer enabled: $enable_sanitizer" |
113 |
+ echo "Fixed-Point Version: $use_fixed_point" |
114 |
+@@ -3252,6 +3245,7 @@ echo "DEBUGBUILD=$debuginfo" >> config.m |
115 |
+ echo "GPROFBUILD=$gprof_build" >> config.mak |
116 |
+ echo "STATIC_BINARY=$static_bin" >> config.mak |
117 |
+ echo "STATICBUILD=$static_build" >> config.mak |
118 |
++echo "STATICLIBS=$static_libs" >> config.mak |
119 |
+ |
120 |
+ echo "CONFIG_IPV6=$has_ipv6" >> config.mak |
121 |
+ if test "$has_ipv6" = "yes" ; then |
122 |
+Index: gpac-2.0.0/src/Makefile |
123 |
+=================================================================== |
124 |
+--- gpac-2.0.0.orig/src/Makefile |
125 |
++++ gpac-2.0.0/src/Makefile |
126 |
+@@ -387,7 +387,6 @@ jsmods: $(LIBGPAC_JSMODS) |
127 |
+ # @echo "LIBS $(EXTRALIBS)" |
128 |
+ |
129 |
+ ifeq ($(CONFIG_DARWIN),yes) |
130 |
+- |
131 |
+ $(LIBTOOL) -s -o ../bin/gcc/libgpac_static.a $(OBJS) |
132 |
+ $(RANLIB) ../bin/gcc/libgpac_static.a |
133 |
+ ifneq ($(STATICBUILD),yes) |
134 |
+@@ -395,9 +394,10 @@ ifneq ($(STATICBUILD),yes) |
135 |
+ endif |
136 |
+ |
137 |
+ else |
138 |
+- |
139 |
++ifeq ($(STATICLIBS), yes) |
140 |
+ $(AR) cr ../bin/gcc/libgpac_static.a $(OBJS) |
141 |
+ $(RANLIB) ../bin/gcc/libgpac_static.a |
142 |
++endif |
143 |
+ ifneq ($(STATICBUILD),yes) |
144 |
+ $(CC) $(SHFLAGS) $(LD_SONAME) -o $@ $(OBJS) $(EXTRALIBS) $(LDFLAGS) |
145 |
+ mv $@ $@.$(VERSION_SONAME) |
146 |
|
147 |
diff --git a/media-video/gpac/gpac-9999.ebuild b/media-video/gpac/gpac-2.0.0.ebuild |
148 |
similarity index 97% |
149 |
copy from media-video/gpac/gpac-9999.ebuild |
150 |
copy to media-video/gpac/gpac-2.0.0.ebuild |
151 |
index e1c72932c19e..1c87f44bd3fe 100644 |
152 |
--- a/media-video/gpac/gpac-9999.ebuild |
153 |
+++ b/media-video/gpac/gpac-2.0.0.ebuild |
154 |
@@ -1,4 +1,4 @@ |
155 |
-# Copyright 1999-2021 Gentoo Authors |
156 |
+# Copyright 1999-2022 Gentoo Authors |
157 |
# Distributed under the terms of the GNU General Public License v2 |
158 |
|
159 |
EAPI=7 |
160 |
@@ -18,7 +18,7 @@ HOMEPAGE="https://gpac.wp.imt.fr/" |
161 |
|
162 |
LICENSE="GPL-2" |
163 |
# subslot == libgpac major |
164 |
-SLOT="0/10" |
165 |
+SLOT="0/11" |
166 |
IUSE="a52 aac alsa cpu_flags_x86_sse2 debug dvb ffmpeg ipv6 jack jpeg jpeg2k mad opengl oss png |
167 |
pulseaudio sdl ssl static-libs theora truetype vorbis xml xvid X" |
168 |
|
169 |
@@ -63,7 +63,7 @@ DEPEND=" |
170 |
" |
171 |
|
172 |
PATCHES=( |
173 |
- "${FILESDIR}/${PN}-1.0.1-configure.patch" |
174 |
+ "${FILESDIR}/${PN}-2.0.0-configure.patch" |
175 |
"${FILESDIR}/${PN}-1.0.0-zlib-compile.patch" |
176 |
) |
177 |
|
178 |
|
179 |
diff --git a/media-video/gpac/gpac-9999.ebuild b/media-video/gpac/gpac-9999.ebuild |
180 |
index e1c72932c19e..1c87f44bd3fe 100644 |
181 |
--- a/media-video/gpac/gpac-9999.ebuild |
182 |
+++ b/media-video/gpac/gpac-9999.ebuild |
183 |
@@ -1,4 +1,4 @@ |
184 |
-# Copyright 1999-2021 Gentoo Authors |
185 |
+# Copyright 1999-2022 Gentoo Authors |
186 |
# Distributed under the terms of the GNU General Public License v2 |
187 |
|
188 |
EAPI=7 |
189 |
@@ -18,7 +18,7 @@ HOMEPAGE="https://gpac.wp.imt.fr/" |
190 |
|
191 |
LICENSE="GPL-2" |
192 |
# subslot == libgpac major |
193 |
-SLOT="0/10" |
194 |
+SLOT="0/11" |
195 |
IUSE="a52 aac alsa cpu_flags_x86_sse2 debug dvb ffmpeg ipv6 jack jpeg jpeg2k mad opengl oss png |
196 |
pulseaudio sdl ssl static-libs theora truetype vorbis xml xvid X" |
197 |
|
198 |
@@ -63,7 +63,7 @@ DEPEND=" |
199 |
" |
200 |
|
201 |
PATCHES=( |
202 |
- "${FILESDIR}/${PN}-1.0.1-configure.patch" |
203 |
+ "${FILESDIR}/${PN}-2.0.0-configure.patch" |
204 |
"${FILESDIR}/${PN}-1.0.0-zlib-compile.patch" |
205 |
) |