diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-04-29 15:51:10 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-04-29 15:51:10 -0300 |
commit | 7eebd0f5616411b18aa597f9d071a22617ef6ac2 (patch) | |
tree | cdfea6e64734c1149bacfa5b4021cdf45fc70447 /pcr | |
parent | 1c1c34919dbaa1464f34a29c5e2372f69f8268d7 (diff) | |
download | abslibre-7eebd0f5616411b18aa597f9d071a22617ef6ac2.tar.gz abslibre-7eebd0f5616411b18aa597f9d071a22617ef6ac2.tar.bz2 abslibre-7eebd0f5616411b18aa597f9d071a22617ef6ac2.zip |
gnash-0.8.11dev-2: add new package to [pcr]
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/gnash/PKGBUILD | 59 | ||||
-rw-r--r-- | pcr/gnash/gnash-gtk.install | 22 | ||||
-rw-r--r-- | pcr/gnash/nodebug.patch | 48 |
3 files changed, 129 insertions, 0 deletions
diff --git a/pcr/gnash/PKGBUILD b/pcr/gnash/PKGBUILD new file mode 100644 index 000000000..f932fa084 --- /dev/null +++ b/pcr/gnash/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 107172 2014-03-14 00:14:28Z heftig $ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> + +pkgname=gnash +pkgdesc="A GNU Flash movie player" +pkgver=0.8.11dev +pkgrel=2 +arch=(i686 x86_64) +url="http://www.gnu.org/software/gnash/" +license=(GPL3) +depends=(curl giflib sdl agg libjpeg libpng libltdl libgl glu speex fontconfig cairo ffmpeg jemalloc boost-libs gtk2 libldap hicolor-icon-theme desktop-file-utils gconf gtkglext) +makedepends=(libtool mesa xulrunner pkgconfig boost git) +provides=(gnash-common gnash-gtk) +conflicts=(gnash-common gnash-gtk) +replaces=(gnash-common gnash-gtk) +options=(!emptydirs) +backup=(etc/gnashrc etc/gnashthumbnailrc etc/gnashpluginrc) +install=gnash-gtk.install +source=('gnash::git://git.sv.gnu.org/gnash.git#commit=a3180f2' + nodebug.patch) +sha256sums=('SKIP' + '0ebb104a7632af997c7e6b268755949fa0c1eea5e32015b95a22d63d0e431551') + + +prepare() { + cd gnash + + # Disable very, very verbose debugging (gigabytes of logs) + patch -Np1 -i ../nodebug.patch + + ./autogen.sh +} + +build() { + cd gnash + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-plugins-install=system \ + --with-npapi-plugindir=/usr/lib/mozilla/plugins \ + --enable-gui=sdl,gtk,dump \ + --enable-media=ffmpeg \ + --enable-renderer=all \ + --enable-device=x11 + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool + + make +} + +package() { + cd gnash + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install install-plugin + + install -m755 -d "$pkgdir/usr/share/gconf/schemas" + gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/gnash.schemas" --domain gnash \ + "$pkgdir"/usr/share/applications/*.schemas + rm -f "$pkgdir"/usr/share/applications/*.schemas +} diff --git a/pcr/gnash/gnash-gtk.install b/pcr/gnash/gnash-gtk.install new file mode 100644 index 000000000..6678a7f8a --- /dev/null +++ b/pcr/gnash/gnash-gtk.install @@ -0,0 +1,22 @@ +post_install() { + gconfpkg --install gnash + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove +} + +post_upgrade() { + post_install +} + +pre_remove() { + gconfpkg --uninstall gnash +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} diff --git a/pcr/gnash/nodebug.patch b/pcr/gnash/nodebug.patch new file mode 100644 index 000000000..ca160b898 --- /dev/null +++ b/pcr/gnash/nodebug.patch @@ -0,0 +1,48 @@ +diff -u -r gnash-0.8.9/libbase/log.h gnash-0.8.9-nodebug/libbase/log.h +--- gnash-0.8.9/libbase/log.h 2011-02-26 19:11:08.000000000 +0100 ++++ gnash-0.8.9-nodebug/libbase/log.h 2012-01-18 09:39:02.004103494 +0100 +@@ -331,27 +331,27 @@ + + // Define to 0 to completely remove parse debugging at compile-time + #ifndef VERBOSE_PARSE +-#define VERBOSE_PARSE 1 ++#define VERBOSE_PARSE 0 + #endif + + // Define to 0 to completely remove action debugging at compile-time + #ifndef VERBOSE_ACTION +-#define VERBOSE_ACTION 1 ++#define VERBOSE_ACTION 0 + #endif + + // Define to 0 to remove ActionScript errors verbosity at compile-time + #ifndef VERBOSE_ASCODING_ERRORS +-#define VERBOSE_ASCODING_ERRORS 1 ++#define VERBOSE_ASCODING_ERRORS 0 + #endif + + // Define to 0 this to remove invalid SWF verbosity at compile-time + #ifndef VERBOSE_MALFORMED_SWF +-#define VERBOSE_MALFORMED_SWF 1 ++#define VERBOSE_MALFORMED_SWF 0 + #endif + + // Define to 0 this to remove Networking verbosity at compile-time + #ifndef VERBOSE_NETWORKING +-#define VERBOSE_NETWORKING 1 ++#define VERBOSE_NETWORKING 0 + #endif + + #if VERBOSE_PARSE +diff -u -r gnash-0.8.9/libcore/vm/ActionExec.cpp gnash-0.8.9-nodebug/libcore/vm/ActionExec.cpp +--- gnash-0.8.9/libcore/vm/ActionExec.cpp 2011-03-13 17:47:36.000000000 +0100 ++++ gnash-0.8.9-nodebug/libcore/vm/ActionExec.cpp 2012-01-18 09:40:25.653458508 +0100 +@@ -46,7 +46,7 @@ + // too much information for my tastes. I really want just + // to see how stack changes while executing actions... + // --strk Fri Jun 30 02:28:46 CEST 2006 +-# define DEBUG_STACK 1 ++//# define DEBUG_STACK 1 + + // Max number of stack item to dump. 0 for unlimited. + # define STACK_DUMP_LIMIT 32 |