mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
gstreamer1: update to 1.16.0.
This commit is contained in:
parent
5c55931e2d
commit
55cf6c0144
2 changed files with 32 additions and 23 deletions
13
srcpkgs/gstreamer1/patches/no-gir-automagic.patch
Normal file
13
srcpkgs/gstreamer1/patches/no-gir-automagic.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index e738c55..e1b8d93 100644
|
||||||
|
--- meson.build
|
||||||
|
+++ meson.build
|
||||||
|
@@ -451,7 +451,7 @@ rt_lib = cc.find_library('rt', required : false)
|
||||||
|
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
||||||
|
gnome = import('gnome')
|
||||||
|
|
||||||
|
-build_gir = gir.found() and not meson.is_cross_build()
|
||||||
|
+build_gir = gir.found()
|
||||||
|
|
||||||
|
gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \
|
||||||
|
'g_setenv("GST_REGISTRY_DISABLE", "yes", TRUE);' + \
|
|
@ -1,40 +1,34 @@
|
||||||
# Template file for 'gstreamer1'
|
# Template file for 'gstreamer1'
|
||||||
pkgname=gstreamer1
|
pkgname=gstreamer1
|
||||||
version=1.14.5
|
version=1.16.0
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="gstreamer-${version}"
|
wrksrc="gstreamer-${version}"
|
||||||
build_style=gnu-configure
|
build_style=meson
|
||||||
build_helper="gir"
|
build_helper="gir"
|
||||||
configure_args="--disable-valgrind --enable-docbook
|
configure_args="-Dptp-helper-permissions=capabilities
|
||||||
--with-package-origin=http://www.voidlinux.org $(vopt_enable gir introspection)"
|
-Dpackage-origin=https://www.voidlinux.org -Ddbghelp=disabled
|
||||||
hostmakedepends="automake gettext-devel libtool pkg-config flex python
|
-Dintrospection=$(vopt_if gir enabled disabled)
|
||||||
docbook-xsl glib-devel"
|
-Dgtk_doc=$(vopt_if gtk_doc enabled disabled)"
|
||||||
makedepends="libxml2-devel libglib-devel"
|
hostmakedepends="gettext-devel pkg-config flex python docbook-xsl glib-devel
|
||||||
|
libcap-progs $(vopt_if gtk_doc gtk-doc)"
|
||||||
|
makedepends="libxml2-devel libglib-devel gtk+3-devel libcap-devel libunwind-devel
|
||||||
|
bash-completion"
|
||||||
short_desc="Core GStreamer libraries and elements (1.x)"
|
short_desc="Core GStreamer libraries and elements (1.x)"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="LGPL-2.0-or-later"
|
license="LGPL-2.0-or-later"
|
||||||
homepage="https://gstreamer.freedesktop.org"
|
homepage="https://gstreamer.freedesktop.org"
|
||||||
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
|
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
|
||||||
checksum=e40888752883177e97b2d90cd68591f87ccd213dc0178ff721d80a4cdaad34b5
|
checksum=0e8e2f7118be437cba879353970cf83c2acced825ecb9275ba05d9186ef07c00
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir gtk_doc"
|
||||||
build_options_default="gir"
|
build_options_default="gir"
|
||||||
|
|
||||||
pre_configure() {
|
desc_option_gtk_doc="Build GTK Documentation with gtk-doc"
|
||||||
# Remove a non-existing include path from the gstreamer.pc.in file,
|
|
||||||
# or otherwise building pkgs which enable -Werror fail to build with
|
|
||||||
# gcc-6.2.1 which issues a warning for non existing -I/some/path args.
|
|
||||||
# There is no ./usr/lib/gstreamer-1.0/include path in this pkg.
|
|
||||||
sed -i pkgconfig/gstreamer.pc.in \
|
|
||||||
-e 's; -I${libdir}/gstreamer-@GST_API_VERSION@/include;;'
|
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_build() {
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
# Export paths for gobject introspection
|
build_options_default+=" gtk_doc"
|
||||||
export GIR_EXTRA_LIBS_PATH="${wrksrc}/gst/.libs:${wrksrc}/libs/gst/base/.libs"
|
fi
|
||||||
}
|
|
||||||
|
|
||||||
gstreamer1-devel_package() {
|
gstreamer1-devel_package() {
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
@ -43,7 +37,9 @@ gstreamer1-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/share/gtk-doc
|
if [ "$build_option_gtk_doc" ]; then
|
||||||
|
vmove usr/share/gtk-doc
|
||||||
|
fi
|
||||||
vmove usr/share/aclocal
|
vmove usr/share/aclocal
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove "usr/share/gir*"
|
vmove "usr/share/gir*"
|
||||||
|
|
Loading…
Add table
Reference in a new issue