summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicola Murino2017-02-01 13:44:03 +0100
committerNicola Murino2017-02-01 13:44:03 +0100
commitb1ea998e3a23fa3fe0d137224f59932edf824f5f (patch)
treead1c27b8d51cba93c3cee4e50935d38c68a96c48
parent444e010eb5a4157e70f171fe67eb7f5d0e55404a (diff)
downloadaur-b1ea998e3a23fa3fe0d137224f59932edf824f5f.tar.gz
Split package for Visual Studio import lib
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD42
2 files changed, 44 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cd8cc861ea8..e48acb4d4f0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Mon Jan 30 12:46:10 UTC 2017
+# Wed Feb 1 12:43:58 UTC 2017
pkgbase = mingw-w64-gst-plugins-bad-git
pkgdesc = GStreamer Multimedia Framework Bad Plugins (mingw-w64)
pkgver = 1.11.1.r42.01c60e664
@@ -9,6 +9,7 @@ pkgbase = mingw-w64-gst-plugins-bad-git
license = LGPL
makedepends = git
makedepends = mingw-w64-configure
+ makedepends = mingw-w64-tools
makedepends = mingw-w64-openh264
makedepends = mingw-w64-nettle
makedepends = mingw-w64-opus
@@ -22,7 +23,6 @@ pkgbase = mingw-w64-gst-plugins-bad-git
depends = mingw-w64-libxml2
depends = mingw-w64-gstreamer-git
depends = mingw-w64-orc
- provides = mingw-w64-gst-plugins-bad
conflicts = mingw-w64-gst-plugins-bad
options = !strip
options = !buildflags
@@ -32,3 +32,7 @@ pkgbase = mingw-w64-gst-plugins-bad-git
pkgname = mingw-w64-gst-plugins-bad-git
+pkgname = mingw-w64-gst-plugins-bad-git-vslib
+ pkgdesc = GStreamer Multimedia Framework Bad Plugins import lib for Visual Studio (mingw-w64)
+ depends = mingw-w64-gst-plugins-bad-git=1.11.1.r42.01c60e664
+
diff --git a/PKGBUILD b/PKGBUILD
index 23ce49766a2..3ded376d4bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# Maintainer: drakkan <nicola.murino at gmail dot com>
-pkgname=mingw-w64-gst-plugins-bad-git
+pkgbase=mingw-w64-gst-plugins-bad-git
+pkgname=('mingw-w64-gst-plugins-bad-git' 'mingw-w64-gst-plugins-bad-git-vslib')
pkgver=1.11.1.r42.01c60e664
pkgrel=1
_gitname=gst-plugins-bad
@@ -8,9 +9,8 @@ arch=(any)
url="http://gstreamer.freedesktop.org/"
license=('LGPL')
depends=('mingw-w64-glib2' 'mingw-w64-libxml2' 'mingw-w64-gstreamer-git' 'mingw-w64-orc')
-makedepends=('git' 'mingw-w64-configure' 'mingw-w64-openh264' 'mingw-w64-nettle' 'mingw-w64-opus' 'mingw-w64-bzip2' 'mingw-w64-libsrtp' 'mingw-w64-vo-aacenc' 'mingw-w64-libkate' 'mingw-w64-librsvg' 'mingw-w64-openjpeg2')
+makedepends=('git' 'mingw-w64-configure' 'mingw-w64-tools' 'mingw-w64-openh264' 'mingw-w64-nettle' 'mingw-w64-opus' 'mingw-w64-bzip2' 'mingw-w64-libsrtp' 'mingw-w64-vo-aacenc' 'mingw-w64-libkate' 'mingw-w64-librsvg' 'mingw-w64-openjpeg2')
options=('!strip' '!buildflags' 'staticlibs')
-provides=('mingw-w64-gst-plugins-bad')
conflicts=('mingw-w64-gst-plugins-bad')
source=("$_gitname::git://anongit.freedesktop.org/gstreamer/$_gitname")
@@ -47,8 +47,20 @@ build() {
done
}
+libs=('libgstcodecparsers-1.0-0.dll'
+ 'libgstmpegts-1.0-0.dll'
+ 'libgsturidownloader-1.0-0.dll'
+ 'libgstbasecamerabinsrc-1.0-0.dll'
+ 'libgstphotography-1.0-0.dll'
+ 'libgstgl-1.0-0.dll'
+ 'libgstbadbase-1.0-0.dll'
+ 'libgstbadvideo-1.0-0.dll'
+ 'libgstinsertbin-1.0-0.dll'
+ 'libgstadaptivedemux-1.0-0.dll'
+ 'libgstplayer-1.0-0.dll'
+ 'libgstbadaudio-1.0-0.dll')
-package() {
+package_mingw-w64-gst-plugins-bad-git() {
cd "${srcdir}/$_gitname"
for _arch in ${_architectures}; do
@@ -59,6 +71,16 @@ package() {
rm "$pkgdir"/usr/$_arch/lib/gstreamer-1.0/*.la
rm -rf "$pkgdir"/usr/${_arch}/share/${aclocal,man,locale}
+ # generate vs import lib
+ mkdir -p "$srcdir/$pkgname-vslib/${_arch}" && pushd "$srcdir/$pkgname-vslib/${_arch}"
+ DLL_PATH="$pkgdir"/usr/${_arch}/bin/
+ for dll in ${libs[@]};
+ do
+ gendef ${DLL_PATH}${dll}
+ ${_arch}-dlltool -d ${dll::-4}.def -l ${dll:3:-6}.lib -D ${DLL_PATH}
+ done
+ popd
+
find "$pkgdir" -name '*.dll' -exec ${_arch}-strip --strip-unneeded {} \;
find "$pkgdir" -name '*.dll' -o -name '*.a' -exec ${_arch}-strip -g {} \;
@@ -66,4 +88,16 @@ package() {
done
}
+package_mingw-w64-gst-plugins-bad-git-vslib() {
+ pkgdesc="GStreamer Multimedia Framework Bad Plugins import lib for Visual Studio (mingw-w64)"
+ depends=("mingw-w64-gst-plugins-bad-git=$pkgver")
+ unset optdepends
+
+ for _arch in ${_architectures}; do
+ LIB_PATH="$pkgdir"/usr/${_arch}/lib/
+ mkdir -p ${LIB_PATH}
+ cp "$srcdir/$pkgname/${_arch}/"{*.lib,*.def} "${LIB_PATH}"
+ done
+}
+
# vim: ts=2 sw=2 et: