vp-build/srcpkgs/gst-plugins-base/template

89 lines
1.8 KiB
Plaintext

# Template file for 'gst-plugins-base'.
pkgname=gst-plugins-base
version=0.10.36
revision=7
build_style=gnu-configure
configure_args="
--with-gudev
--enable-experimental
--disable-gnome_vfs
--disable-ivorbis
--disable-static"
hostmakedepends="
automake
libtool
gettext-devel
glib-devel
gtk-doc
orc-devel
pkg-config
which"
makedepends="
alsa-lib-devel
gstreamer-devel
libgudev-devel
libtheora-devel
libvisual-devel
libvorbis-devel
libXv-devel
pango-devel
orc-devel"
short_desc="GStreamer Base Plug-ins"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://gstreamer.freedesktop.org/"
license="GPL-2, LGPL-2.1"
distfiles="http://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$version.tar.xz"
checksum=1fe45c3894903001d4d008b0713dab089f53726dcb5842d5b40c2595a984e64a
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
CFLAGS="-msse2"
fi
# Package build options
build_options="cdparanoia gir"
# Disable options for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="cdparanoia gir"
fi
if [ "$build_option_cdparanoia" ]; then
configure_args+=" --enable-cdparanoia"
makedepends+=" cdparanoia-devel"
else
configure_args+=" --disable-cdparanoia"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
gst-plugins-base-devel_package() {
depends="
alsa-lib-devel
gstreamer-devel
libgudev-devel
libtheora-devel
libvisual-devel
libvorbis-devel
libXv-devel
pango-devel
${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
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}