summaryrefslogtreecommitdiff
path: root/community/gmerlin
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-08 23:14:49 +0000
committerroot <root@rshg054.dnsready.net>2011-11-08 23:14:49 +0000
commitddba9670c1518d9b420db6a6dca01a4a4a4136c7 (patch)
tree8b5ba5ea49ecb6848eba27d2eb609100de5e760a /community/gmerlin
parenteffb26c3b1f00bf8bea4e2562f07f9a06eb67606 (diff)
Tue Nov 8 23:14:49 UTC 2011
Diffstat (limited to 'community/gmerlin')
-rw-r--r--community/gmerlin/PKGBUILD11
-rw-r--r--community/gmerlin/libpng.patch17
2 files changed, 24 insertions, 4 deletions
diff --git a/community/gmerlin/PKGBUILD b/community/gmerlin/PKGBUILD
index 3acbafcfa..adb56b50c 100644
--- a/community/gmerlin/PKGBUILD
+++ b/community/gmerlin/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 57805 2011-11-03 09:25:18Z spupykin $
+# $Id: PKGBUILD 58153 2011-11-07 10:55:45Z spupykin $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
pkgname=gmerlin
pkgver=1.0.0
-pkgrel=3
+pkgrel=4
pkgdesc="Multimedia architecture for Linux"
arch=('i686' 'x86_64')
url="http://openmovieeditor.sourceforge.net/HomePage"
@@ -15,15 +15,18 @@ optdepends=('alsa-lib: for ALSA support'
'libquicktime: for movie encoding'
'pulseaudio: for PulseAudio support'
'v4l-utils: for video conversion')
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
options=('!libtool')
-md5sums=('60d3c5081c8685ee7bc1afdfac8f6dc6')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+ libpng.patch)
+md5sums=('60d3c5081c8685ee7bc1afdfac8f6dc6'
+ 'c262023434246705296d97bc7337a212')
build() {
cd "$srcdir/$pkgname-$pkgver"
rm -rf cpuinfo.sh
+ patch -p1 <$srcdir/libpng.patch
./configure --prefix=/usr --without-doxygen
make
}
diff --git a/community/gmerlin/libpng.patch b/community/gmerlin/libpng.patch
new file mode 100644
index 000000000..c01105e63
--- /dev/null
+++ b/community/gmerlin/libpng.patch
@@ -0,0 +1,17 @@
+diff -wbBur gmerlin-1.0.0/plugins/png/ir_png.c gmerlin-1.0.0.my/plugins/png/ir_png.c
+--- gmerlin-1.0.0/plugins/png/ir_png.c 2011-01-07 18:37:06.000000000 +0300
++++ gmerlin-1.0.0.my/plugins/png/ir_png.c 2011-11-07 14:46:25.000000000 +0400
+@@ -127,13 +127,8 @@
+ bits = 16;
+ }
+ if(bit_depth < 8)
+-#if BG_MAKE_BUILD(PNG_LIBPNG_VER_MAJOR, PNG_LIBPNG_VER_MINOR, PNG_LIBPNG_VER_RELEASE) < BG_MAKE_BUILD(1,2,9)
+- png_set_gray_1_2_4_to_8(png->png_ptr);
+-#else
+ png_set_expand_gray_1_2_4_to_8(png->png_ptr);
+-#endif
+
+- png_set_gray_1_2_4_to_8(png->png_ptr);
+ if (png_get_valid(png->png_ptr, png->info_ptr, PNG_INFO_tRNS))
+ {
+ png_set_tRNS_to_alpha(png->png_ptr);