gstreamer1: enable gir
This commit is contained in:
parent
42a9cf96c0
commit
5c7be9025d
1 changed files with 16 additions and 8 deletions
|
@ -1,27 +1,30 @@
|
|||
# Template file for 'gstreamer1'.
|
||||
# Template file for 'gstreamer1'
|
||||
pkgname=gstreamer1
|
||||
version=1.14.4
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="gstreamer-${version}"
|
||||
build_style=gnu-configure
|
||||
build_helper="gir"
|
||||
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)"
|
||||
docbook-xsl glib-devel"
|
||||
makedepends="libxml2-devel libglib-devel"
|
||||
short_desc="Core GStreamer libraries and elements (1.x)"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
homepage="https://gstreamer.freedesktop.org"
|
||||
license="LGPL-2.0-or-later"
|
||||
homepage="https://gstreamer.freedesktop.org"
|
||||
distfiles="${homepage}/src/gstreamer/gstreamer-${version}.tar.xz"
|
||||
checksum=f94f6696c5f05a3b3a9183e39c5f5c0b779f75a04c0efa497e7920afa985ffc7
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64-musl) build_options_default+=" gir" ;;
|
||||
*-musl) ;;
|
||||
*) build_options_default+=" gir" ;;
|
||||
esac
|
||||
|
||||
pre_configure() {
|
||||
# Remove a non-existing include path from the gstreamer.pc.in file,
|
||||
|
@ -33,6 +36,11 @@ pre_configure() {
|
|||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
# Export paths for gobject introspection
|
||||
export GIR_EXTRA_LIBS_PATH="${wrksrc}/gst/.libs:${wrksrc}/libs/gst/base/.libs"
|
||||
}
|
||||
|
||||
gstreamer1-devel_package() {
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue