moved into main repo for pisi 2.0

This commit is contained in:
ayhanyalcinsoy
2015-06-19 13:38:15 +03:00
parent 217df81789
commit bb427dacc5
67 changed files with 3240 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.export("AUTOPOINT", "true")
autotools.autoreconf("-vfi")
#shelltools.system("./autogen.sh --disable-gtk-doc --disable-docbook")
options = '--with-package-name="GStreamer for PisiLinux" \
--with-package-origin="http://www.pisilinux.org" \
--enable-nls \
--disable-dependency-tracking \
--disable-examples \
--enable-introspection \
--disable-static \
--disable-rpath \
--disable-valgrind \
--disable-gtk-doc'
if get.buildTYPE() == "emul32":
options += " --bindir=/usr/bin32 \
--libexecdir=/usr/libexec32 \
--disable-introspection"
shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
autotools.configure(options)
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
pisitools.removeDir("/usr/bin32")
pisitools.removeDir("/usr/libexec32")
pisitools.removeDir("/usr/share/gtk-doc")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README")
@@ -0,0 +1,31 @@
From bd2a01cfe222367493a71f3269f12250c8972db0 Mon Sep 17 00:00:00 2001
From: Kerrick Staley <kerrick@kerrickstaley.com>
Date: Wed, 21 Aug 2013 06:59:29 +0000
Subject: parse: make grammar.y work with Bison 3
YYLEX_PARAM is no longer supported in Bison 3.
https://bugzilla.gnome.org/show_bug.cgi?id=706462
---
diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
index 8a9019c..f533389 100644
--- a/gst/parse/grammar.y
+++ b/gst/parse/grammar.y
@@ -26,7 +26,6 @@
*/
#define YYERROR_VERBOSE 1
-#define YYLEX_PARAM scanner
#define YYENABLE_NLS 0
@@ -659,6 +658,7 @@ static int yyerror (void *scanner, graph_t *graph, const char *s);
%right '.'
%left '!' '='
+%lex-param { void *scanner }
%parse-param { void *scanner }
%parse-param { graph_t *graph }
%pure-parser
--
cgit v0.9.0.2-2-gbebe
@@ -0,0 +1,179 @@
diff -Nur gstreamer-0.10.32.4-old//gst/gstplugin.c gstreamer-0.10.32.4/gst/gstplugin.c
--- gstreamer-0.10.32.4-old//gst/gstplugin.c 2011-05-03 10:00:04.763000288 +0300
+++ gstreamer-0.10.32.4/gst/gstplugin.c 2011-05-03 10:02:15.244000278 +0300
@@ -68,6 +68,8 @@
#include <gst/gst.h>
+#include <glob.h>
+
#define GST_CAT_DEFAULT GST_CAT_PLUGIN_LOADING
static guint _num_static_plugins; /* 0 */
@@ -753,6 +755,74 @@
goto return_error;
}
+ /* Workarounds for all known plugins that might have changed features
+ * although the plugin timestamp didn't change */
+
+ /* GnomeVFS */
+ if (g_str_has_suffix (filename, "/libgstgnomevfs.so")) {
+ struct stat tmp_status;
+
+ if (!g_stat (LIBDIR "/gnome-vfs-2.0/modules", &tmp_status)) {
+ file_status.st_mtime = MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ }
+
+ /* LADSPA */
+ if (g_str_has_suffix (filename, "/libgstladspa.so")) {
+ struct stat tmp_status;
+
+ if (!g_stat (LIBDIR "/ladspa", &tmp_status)) {
+ file_status.st_mtime = MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ }
+
+ /* libvisual */
+ if (g_str_has_suffix (filename, "/libgstlibvisual.so")) {
+ struct stat tmp_status;
+
+ if (!g_stat (LIBDIR "/libvisual-0.4", &tmp_status)) {
+ GDir *dir;
+ const gchar *file;
+
+ file_status.st_mtime = MAX (file_status.st_mtime, tmp_status.st_mtime);
+ dir = g_dir_open (LIBDIR "/libvisual-0.4", 0, NULL);
+ if (dir) {
+ while ((file = g_dir_read_name (dir))) {
+ gchar *filename = g_strdup_printf (LIBDIR "/libvisual-0.4/%s", file);
+
+ if (!g_stat (filename, &tmp_status)) {
+ file_status.st_mtime =
+ MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ g_free (filename);
+ }
+ g_dir_close (dir);
+ }
+ }
+ }
+
+ /* FFMPEG */
+ if (g_str_has_suffix (filename, "/libgstffmpeg.so") ||
+ g_str_has_suffix (filename, "/libgstpostproc.so")) {
+ struct stat tmp_status;
+ glob_t gl = { 0, };
+ int i;
+
+ glob (LIBDIR "/libavcodec.so.*.*", GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libavutil.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libavformat.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libpostproc.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libswscale.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+
+ for (i = 0; i < gl.gl_pathc; i++) {
+ if (!g_stat (gl.gl_pathv[i], &tmp_status)) {
+ file_status.st_mtime = MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ }
+
+ globfree (&gl);
+ }
+
flags = G_MODULE_BIND_LOCAL;
/* libgstpython.so is the gst-python plugin loader. It needs to be loaded with
* G_MODULE_BIND_LAZY.
diff -Nur gstreamer-0.10.32.4-old//gst/gstregistry.c gstreamer-0.10.32.4/gst/gstregistry.c
--- gstreamer-0.10.32.4-old//gst/gstregistry.c 2011-05-03 10:00:04.770000288 +0300
+++ gstreamer-0.10.32.4/gst/gstregistry.c 2011-05-03 10:00:25.707000262 +0300
@@ -142,6 +142,8 @@
extern HMODULE _priv_gst_dll_handle;
#endif
+#include <glob.h>
+
#define GST_CAT_DEFAULT GST_CAT_REGISTRY
struct _GstRegistryPrivate
@@ -1203,6 +1205,79 @@
* update the plugin to ensure the registry cache will reflect up
* to date information */
+ /* Workarounds for all known plugins that might have changed features
+ * although the plugin timestamp didn't change */
+
+ /* GnomeVFS */
+ if (g_str_has_suffix (filename, "/libgstgnomevfs.so")) {
+ struct stat tmp_status;
+
+ if (!g_stat (LIBDIR "/gnome-vfs-2.0/modules", &tmp_status)) {
+ file_status.st_mtime =
+ MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ }
+
+ /* LADSPA */
+ if (g_str_has_suffix (filename, "/libgstladspa.so")) {
+ struct stat tmp_status;
+
+ if (!g_stat (LIBDIR "/ladspa", &tmp_status)) {
+ file_status.st_mtime =
+ MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ }
+
+ /* libvisual */
+ if (g_str_has_suffix (filename, "/libgstlibvisual.so")) {
+ struct stat tmp_status;
+
+ if (!g_stat (LIBDIR "/libvisual-0.4", &tmp_status)) {
+ GDir *dir;
+ const gchar *file;
+
+ file_status.st_mtime =
+ MAX (file_status.st_mtime, tmp_status.st_mtime);
+ dir = g_dir_open (LIBDIR "/libvisual-0.4", 0, NULL);
+ if (dir) {
+ while ((file = g_dir_read_name (dir))) {
+ gchar *filename =
+ g_strdup_printf (LIBDIR "/libvisual-0.4/%s", file);
+
+ if (!g_stat (filename, &tmp_status)) {
+ file_status.st_mtime =
+ MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ g_free (filename);
+ }
+ g_dir_close (dir);
+ }
+ }
+ }
+
+ /* FFMPEG */
+ if (g_str_has_suffix (filename, "/libgstffmpeg.so") ||
+ g_str_has_suffix (filename, "/libgstpostproc.so")) {
+ struct stat tmp_status;
+ glob_t gl = { 0, };
+ int i;
+
+ glob (LIBDIR "/libavcodec.so.*.*", GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libavutil.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libavformat.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libpostproc.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+ glob (LIBDIR "/libswscale.so.*.*", GLOB_APPEND | GLOB_NOSORT, NULL, &gl);
+
+ for (i = 0; i < gl.gl_pathc; i++) {
+ if (!g_stat (gl.gl_pathv[i], &tmp_status)) {
+ file_status.st_mtime =
+ MAX (file_status.st_mtime, tmp_status.st_mtime);
+ }
+ }
+
+ globfree (&gl);
+ }
+
if (plugin->file_mtime == file_status.st_mtime &&
plugin->file_size == file_status.st_size && !env_vars_changed &&
!(deps_changed = _priv_plugin_deps_files_changed (plugin)) &&
+107
View File
@@ -0,0 +1,107 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>gstreamer</Name>
<Homepage>http://gstreamer.freedesktop.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>GStreamer streaming media framework runtime</Summary>
<Description>GStreamer is a streaming media framework, based on graphs of filters which operate on media data. Applications using this library can do anything from real-time sound processing to playing videos, and just about anything else media-related.</Description>
<Archive sha1sum="27931b00eb5d50bc477e32e2dda7440f4179e7ac" type="tarxz">http://ftp.gnome.org/pub/gnome/sources/gstreamer/0.10/gstreamer-0.10.36.tar.xz</Archive>
<Patches>
<!-- FIXME: this is a workaround for following plugin changes, in case timestamp has not changed, it is a bit too complex though-->
<Patch level="1">wrapper-plugins.patch</Patch>
<Patch level="1">bison3.patch</Patch>
</Patches>
</Source>
<Package>
<Name>gstreamer</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/libexec</Path>
<Path fileType="data">/usr/share/gir-1.0</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>gstreamer-devel</Name>
<Summary>Development files for gstreamer</Summary>
<RuntimeDependencies>
<Dependency release="current">gstreamer</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
<Path fileType="data">/usr/share/aclocal</Path>
</Files>
</Package>
<Package>
<Name>gstreamer-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for gstreamer</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>glib2-32bit</Dependency>
<Dependency>libxml2-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">gstreamer</Dependency>
<Dependency>glib2-32bit</Dependency>
<Dependency>libxml2-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2014-05-19</Date>
<Version>0.10.36</Version>
<Comment>Release bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-04-23</Date>
<Version>0.10.36</Version>
<Comment>Rebuild for webp</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="3">
<Date>2014-02-27</Date>
<Version>0.10.36</Version>
<Comment>Rebuild Unused</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-26</Date>
<Version>0.10.36</Version>
<Comment>Release Bump</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-08-20</Date>
<Version>0.10.36</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>gstreamer</Name>
<Summary xml:lang="tr">GStreamer ses yayın altyapısı</Summary>
<Description xml:lang="tr">gstreamer bir ses yayın altyapısı kütüphanesidir. Bu kütüphaneyi kullanan uygulamalar, gerçek zamanlı ses işleme, görüntü oynatma gibi çokluortam ile ilgili birçok işlem gerçekleştirebilirler.</Description>
<Description xml:lang="fr">GStreamer est la librairies principale. Elle contient les entêtes, les fichiers et les éléments centraux.</Description>
</Source>
<Package>
<Name>gstreamer-devel</Name>
<Summary xml:lang="tr">gstreamer için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>gstreamer-32bit</Name>
<Summary xml:lang="tr">gstreamer için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>