From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/fltk2/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ community/fltk2/libpng14.patch | 12 ++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 community/fltk2/PKGBUILD create mode 100644 community/fltk2/libpng14.patch (limited to 'community/fltk2') diff --git a/community/fltk2/PKGBUILD b/community/fltk2/PKGBUILD new file mode 100644 index 000000000..32d4dc562 --- /dev/null +++ b/community/fltk2/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 33138 2010-11-22 16:59:51Z spupykin $ +# Maintainer: Sergej Pupykin + +pkgname=fltk2 +pkgver=2.0 +_pkgver=2.0.x-r7725 +pkgrel=6 +pkgdesc="Graphical user interface toolkit for X" +arch=(i686 x86_64) +license=('LGPL') +url="http://www.fltk.org/" +depends=('libjpeg' 'libpng' 'gcc-libs' 'libxft' 'libxext' 'libxi' 'libxinerama') +makedepends=('mesa') +source=(http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/fltk/snapshots/fltk-${_pkgver}.tar.bz2 + libpng14.patch) +md5sums=('4d2680a65574e920becf968b899d5311' + '93955f17f56ad8b419ca1f8ea8c24a7f') + +build() { + cd $srcdir/fltk-${_pkgver} + [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared + + patch -p0 src/filename_list.cxx < int n = scandir(d, list, 0, (int(*)(const dirent64**,const dirent64**))sort); +EOF + + patch -Np1 -i "$srcdir/libpng14.patch" + make + make DESTDIR=$pkgdir install +} diff --git a/community/fltk2/libpng14.patch b/community/fltk2/libpng14.patch new file mode 100644 index 000000000..f6c49228e --- /dev/null +++ b/community/fltk2/libpng14.patch @@ -0,0 +1,12 @@ +diff -upr fltk-2.0.x-r6829.orig/images/fl_png.cxx fltk-2.0.x-r6829/images/fl_png.cxx +--- fltk-2.0.x-r6829.orig/images/fl_png.cxx 2010-01-23 04:42:12.000000000 +0200 ++++ fltk-2.0.x-r6829/images/fl_png.cxx 2010-01-23 04:58:31.000000000 +0200 +@@ -62,7 +62,7 @@ bool pngImage::test(const uchar* datas, + #if !HAVE_LIBPNG + return 0; + #else +- return png_check_sig((png_byte*)datas, (int)size)!=0; ++ return png_sig_cmp((png_byte*)datas, 0, (int)size)==0; + #endif + } + -- cgit v1.2.3-54-g00ecf