add gst-editing-services
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
From 81271719a4f1737f4a0a7af0ac302d6e4b6507b3 Mon Sep 17 00:00:00 2001
|
||||
From: Lubosz Sarnecki <lubosz@gmail.com>
|
||||
Date: Wed, 30 Jul 2014 15:52:25 +0200
|
||||
Subject: [PATCH 1/2] make mingw find gir scanner
|
||||
|
||||
---
|
||||
ges/Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/ges/Makefile.am b/ges/Makefile.am
|
||||
index 5b341ce..859a33f 100644
|
||||
--- a/ges/Makefile.am
|
||||
+++ b/ges/Makefile.am
|
||||
@@ -168,6 +168,7 @@ gir_cincludes+=$(patsubst %,--c-include='ges/%',$(nodist_libges_@GST_API_VERSION
|
||||
|
||||
GES-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libges-@GST_API_VERSION@.la
|
||||
$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
|
||||
+ CC="$(CC)" \
|
||||
$(INTROSPECTION_SCANNER) -v --namespace GES \
|
||||
--nsversion=@GST_API_VERSION@ \
|
||||
--identifier-prefix=GES \
|
||||
--
|
||||
2.0.4
|
||||
|
||||
24
mingw-w64-gst-editing-services/0002-add-cflags-for-gir.patch
Normal file
24
mingw-w64-gst-editing-services/0002-add-cflags-for-gir.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
From 866aa40e6d61cbeb87c9eb5e191937a115119efd Mon Sep 17 00:00:00 2001
|
||||
From: Lubosz Sarnecki <lubosz@gmail.com>
|
||||
Date: Wed, 30 Jul 2014 17:27:51 +0200
|
||||
Subject: [PATCH 2/2] add cflags for gir
|
||||
|
||||
---
|
||||
ges/Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/ges/Makefile.am b/ges/Makefile.am
|
||||
index 859a33f..65e8b59 100644
|
||||
--- a/ges/Makefile.am
|
||||
+++ b/ges/Makefile.am
|
||||
@@ -177,6 +177,7 @@ GES-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libges-@GST_API_VERSION@.la
|
||||
$(gir_cincludes) \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir) \
|
||||
+ $(GST_BASE_CFLAGS) \
|
||||
--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
|
||||
--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-pbutils-@GST_API_VERSION@` \
|
||||
--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-audio-@GST_API_VERSION@` \
|
||||
--
|
||||
2.0.4
|
||||
|
||||
62
mingw-w64-gst-editing-services/PKGBUILD
Normal file
62
mingw-w64-gst-editing-services/PKGBUILD
Normal file
@@ -0,0 +1,62 @@
|
||||
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
|
||||
|
||||
_name=gst-editing-services
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_name}"
|
||||
pkgver=1.3.0.1.1910.7e5742e
|
||||
pkgrel=1
|
||||
pkgdesc="GStreamer Editing Services (mingw-w64)"
|
||||
arch=('any')
|
||||
url="http://gstreamer.freedesktop.org/"
|
||||
license=("LGPL")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config"
|
||||
"${MINGW_PACKAGE_PREFIX}-python2")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-gst-plugins-base"
|
||||
"${MINGW_PACKAGE_PREFIX}-gstreamer")
|
||||
options=(!libtool strip staticlibs)
|
||||
source=("git://anongit.freedesktop.org/gstreamer/$_name"
|
||||
0001-make-mingw-find-gir-scanner.patch
|
||||
0002-add-cflags-for-gir.patch
|
||||
)
|
||||
md5sums=("SKIP"
|
||||
"38b10c073e9ccd3dfbeab28e151fdc9a"
|
||||
"650a069277d5b0e85f8be15948e2d03a")
|
||||
|
||||
pkgver() {
|
||||
cd $_name
|
||||
version=$(grep AC_INIT configure.ac | sed 's/AC_INIT(GStreamer Editing Services, //' | sed 's/,//')
|
||||
hash=$(git log --pretty=format:'%h' -n 1)
|
||||
revision=$(git rev-list --count HEAD)
|
||||
echo $version.$revision.$hash
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd $_name
|
||||
git am ../0001-make-mingw-find-gir-scanner.patch
|
||||
git am ../0002-add-cflags-for-gir.patch
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p "${srcdir}/build-${MINGW_CHOST}"
|
||||
[[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf "${srcdir}/build-${MINGW_CHOST}"
|
||||
cp -r "${srcdir}/${_name}" "${srcdir}/build-${MINGW_CHOST}"
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
./configure \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--build=${MINGW_CHOST} \
|
||||
--host=${MINGW_CHOST} \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--enable-silent-rules \
|
||||
--enable-experimental \
|
||||
--disable-gtk-doc
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/build-${MINGW_CHOST}"
|
||||
make -j1 DESTDIR="$pkgdir" install
|
||||
find "${pkgdir}${MINGW_PREFIX}" -name '*.def' -o -name '*.exp' | xargs -rtl1 rm
|
||||
rm -f ${pkgdir}${MINGW_PREFIX}/lib/gstreamer*/*.a
|
||||
}
|
||||
Reference in New Issue
Block a user