50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'gstreamer1'.
|
|
pkgname=gstreamer1
|
|
version=1.14.1
|
|
revision=1
|
|
wrksrc="gstreamer-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-valgrind --enable-docbook
|
|
--with-package-origin=http://www.voidlinux.eu $(vopt_enable gir introspection)"
|
|
hostmakedepends="automake gettext-devel libtool pkg-config flex python
|
|
docbook-xsl glib-devel $(vopt_if gir gobject-introspection)"
|
|
makedepends="libxml2-devel libglib-devel"
|
|
short_desc="Core GStreamer libraries and elements (1.x)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://gstreamer.freedesktop.org"
|
|
license="LGPL-2.0-or-later"
|
|
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
|
|
checksum=28d82b0d261544a9bf85b429399929e4986eb00efcf1ce16cc71d269a4c3186c
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
# 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
|
|
}
|
|
|
|
gstreamer1-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gtk-doc
|
|
vmove usr/share/aclocal
|
|
if [ "$build_option_gir" ]; then
|
|
vmove "usr/share/gir*"
|
|
fi
|
|
}
|
|
}
|