diff options
author | Nicola Murino | 2017-02-01 13:43:39 +0100 |
---|---|---|
committer | Nicola Murino | 2017-02-01 13:43:39 +0100 |
commit | e959978db07c230b3e31feacfd2327c56cf26272 (patch) | |
tree | 71c5f445cb78415d71406f318d187684308a1023 | |
parent | 7e427843ac938bc68a62312a0bd822899e374376 (diff) | |
download | aur-e959978db07c230b3e31feacfd2327c56cf26272.tar.gz |
Split package for Visual Studio import lib
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 45 insertions, 8 deletions
@@ -1,14 +1,15 @@ # Generated by mksrcinfo v8 -# Mon Jan 30 12:42:25 UTC 2017 +# Wed Feb 1 12:43:37 UTC 2017 pkgbase = mingw-w64-gst-plugins-base-git pkgdesc = GStreamer Multimedia Framework Base Plugins (mingw-w64) - pkgver = 1.11.1.r17.f939f0530 + pkgver = 1.11.1.r24.6b5617c2a pkgrel = 1 url = http://gstreamer.freedesktop.org/ arch = any license = LGPL makedepends = git makedepends = mingw-w64-configure + makedepends = mingw-w64-tools makedepends = mingw-w64-opus makedepends = mingw-w64-libvorbis makedepends = mingw-w64-pango @@ -18,7 +19,6 @@ pkgbase = mingw-w64-gst-plugins-base-git depends = mingw-w64-libxml2 depends = mingw-w64-gstreamer-git depends = mingw-w64-orc - provides = mingw-w64-gst-plugins-base conflicts = mingw-w64-gst-plugins-base options = !strip options = !buildflags @@ -28,3 +28,7 @@ pkgbase = mingw-w64-gst-plugins-base-git pkgname = mingw-w64-gst-plugins-base-git +pkgname = mingw-w64-gst-plugins-base-git-vslib + pkgdesc = GStreamer Multimedia Framework Base Plugins import lib for Visual Studio (mingw-w64) + depends = mingw-w64-gst-plugins-base-git=1.11.1.r24.6b5617c2a + @@ -1,6 +1,7 @@ # Maintainer: drakkan <nicola.murino at gmail dot com> -pkgname=mingw-w64-gst-plugins-base-git -pkgver=1.11.1.r17.f939f0530 +pkgbase=mingw-w64-gst-plugins-base-git +pkgname=('mingw-w64-gst-plugins-base-git' 'mingw-w64-gst-plugins-base-git-vslib') +pkgver=1.11.1.r24.6b5617c2a pkgrel=1 _gitname=gst-plugins-base pkgdesc="GStreamer Multimedia Framework Base Plugins (mingw-w64)" @@ -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-opus' 'mingw-w64-libvorbis' 'mingw-w64-pango' 'mingw-w64-libtheora' 'mingw-w64-libvisual') +makedepends=('git' 'mingw-w64-configure' 'mingw-w64-tools' 'mingw-w64-opus' 'mingw-w64-libvorbis' 'mingw-w64-pango' 'mingw-w64-libtheora' 'mingw-w64-libvisual') options=('!strip' '!buildflags' 'staticlibs') -provides=('mingw-w64-gst-plugins-base') conflicts=('mingw-w64-gst-plugins-base') source=("$_gitname::git://anongit.freedesktop.org/gstreamer/$_gitname") @@ -46,8 +46,19 @@ build() { done } +libs=('libgstallocators-1.0-0.dll' + 'libgstapp-1.0-0.dll' + 'libgstaudio-1.0-0.dll' + 'libgstfft-1.0-0.dll' + 'libgstpbutils-1.0-0.dll' + 'libgstriff-1.0-0.dll' + 'libgstrtp-1.0-0.dll' + 'libgstrtsp-1.0-0.dll' + 'libgstsdp-1.0-0.dll' + 'libgsttag-1.0-0.dll' + 'libgstvideo-1.0-0.dll') -package() { +package_mingw-w64-gst-plugins-base-git() { cd "${srcdir}/$_gitname" for _arch in ${_architectures}; do @@ -58,6 +69,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 {} \; find "$pkgdir" -name '*.exe' -exec ${_arch}-strip --strip-all {} \; @@ -66,4 +87,16 @@ package() { done } +package_mingw-w64-gst-plugins-base-git-vslib() { + pkgdesc="GStreamer Multimedia Framework Base Plugins import lib for Visual Studio (mingw-w64)" + depends=("mingw-w64-gst-plugins-base-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: |