mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-03 02:27:16 +08:00
lib32-gst-plugins-base: import to prepare wine's gstreamer support.
This commit is contained in:
parent
e77ea8378b
commit
fedfd685c8
78
lib32-gst-plugins-base/PKGBUILD
Normal file
78
lib32-gst-plugins-base/PKGBUILD
Normal file
@ -0,0 +1,78 @@
|
||||
# Contribution from Arch:
|
||||
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
||||
# Contributor: Chris Kitching <chriskitching@linux.com>
|
||||
|
||||
_basename=gst-plugins-base
|
||||
pkgbase=lib32-$_basename
|
||||
pkgname=('lib32-gst-plugins-base-libs' 'lib32-gst-plugins-base')
|
||||
pkgver=1.6.3
|
||||
pkgrel=1
|
||||
pkgdesc="GStreamer Multimedia Framework Base Plugins"
|
||||
arch=('x86_64')
|
||||
license=('LGPL')
|
||||
makedepends=('lib32-gstreamer' 'lib32-orc' 'lib32-libxv' 'lib32-alsa-lib' 'lib32-cdparanoia' 'lib32-libvisual' 'lib32-libvorbis' 'lib32-libtheora' 'lib32-pango' 'gobject-introspection' 'python2')
|
||||
options=(!emptydirs)
|
||||
url="http://gstreamer.freedesktop.org/"
|
||||
source=(${url}/src/$_basename/$_basename-${pkgver}.tar.xz)
|
||||
sha256sums=('b6154f8fdba4877e95efd94610ef0ada4f0171cd12eb829a3c3c97345d9c7a75')
|
||||
|
||||
build() {
|
||||
cd $_basename-$pkgver
|
||||
|
||||
export CC='gcc -m32'
|
||||
export CXX='g++ -m32'
|
||||
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
|
||||
|
||||
./configure\
|
||||
--build=i686-pc-linux-gnu\
|
||||
--prefix=/usr\
|
||||
--sysconfdir=/etc\
|
||||
--localstatedir=/var\
|
||||
--libexecdir=/usr/lib32\
|
||||
--libdir=/usr/lib32\
|
||||
--disable-static\
|
||||
--disable-examples\
|
||||
--disable-gtk-doc-html\
|
||||
--enable-experimental \
|
||||
--with-package-name="GStreamer Base Plugins (Arch Linux)" \
|
||||
--with-package-origin="http://www.archlinux.org/"
|
||||
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
|
||||
make
|
||||
|
||||
sed -e 's/^SUBDIRS_EXT =.*/SUBDIRS_EXT =/' -i Makefile
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $_basename-$pkgver
|
||||
# Testsuite fails on one test. Some refcount leak
|
||||
make check
|
||||
}
|
||||
|
||||
package_lib32-gst-plugins-base-libs() {
|
||||
pkgdesc="GStreamer Multimedia Framework Base Plugin libraries"
|
||||
depends=('lib32-gstreamer' 'lib32-orc' 'lib32-libxv')
|
||||
|
||||
cd $_basename-$pkgver
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
rm -Rf ${pkgdir}/usr/share
|
||||
rm -Rf ${pkgdir}/usr/include
|
||||
rm -Rf ${pkgdir}/usr/bin
|
||||
}
|
||||
|
||||
package_lib32-gst-plugins-base() {
|
||||
depends=("lib32-gst-plugins-base-libs=$pkgver" 'lib32-alsa-lib' 'lib32-cdparanoia' 'lib32-libvisual' 'lib32-libvorbis' 'lib32-libtheora' 'lib32-pango')
|
||||
|
||||
cd $_basename-$pkgver
|
||||
make -C gst-libs DESTDIR="${pkgdir}" install
|
||||
make -C ext DESTDIR="${pkgdir}" install
|
||||
make -C gst-libs DESTDIR="${pkgdir}" uninstall
|
||||
|
||||
# Seems to be no build flag to turn this crap off, soo...
|
||||
rm -Rf ${pkgdir}/usr/share
|
||||
rm -Rf ${pkgdir}/usr/include
|
||||
rm -Rf ${pkgdir}/usr/bin
|
||||
}
|
Loading…
Reference in New Issue
Block a user