Date: Sunday, September 9, 2018 @ 02:33:17 Author: kkeen Revision: 378846
archrelease: copy trunk to community-x86_64 Added: fbv/repos/community-x86_64/ fbv/repos/community-x86_64/PKGBUILD (from rev 378845, fbv/trunk/PKGBUILD) fbv/repos/community-x86_64/giflib-5.1.patch (from rev 378845, fbv/trunk/giflib-5.1.patch) ------------------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++ giflib-5.1.patch | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) Copied: fbv/repos/community-x86_64/PKGBUILD (from rev 378845, fbv/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-09-09 02:33:17 UTC (rev 378846) @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Kyle Keen <keen...@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Aectann <aect...@infoline.su> + +pkgname=fbv +pkgver=1.0b +pkgrel=10 +pkgdesc="FrameBuffer image viewer" +arch=('x86_64') +url="http://s-tech.elsat.net.pl/fbv/" +license=('GPL') +depends=('libpng' 'giflib' 'libjpeg') +source=("http://s-tech.elsat.net.pl/fbv/$pkgname-$pkgver.tar.gz" + 'giflib-5.1.patch') +md5sums=('3e466375b930ec22be44f1041e77b55d' + 'f91404fb82f0b6b9fc0e0716f0c182c0') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + sed -i 's|setjmp(png_ptr->jmpbuf)|setjmp(png_jmpbuf(png_ptr))|' png.c + patch -Np1 -i ../giflib-5.1.patch +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --mandir=/usr/share/man + sed -i 's|LIBS.*|LIBS=-lpng -ljpeg -lgif|' Make.conf + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir/usr/bin" + install -d "$pkgdir/usr/share/man/man1" + make DESTDIR="$pkgdir" install +} Copied: fbv/repos/community-x86_64/giflib-5.1.patch (from rev 378845, fbv/trunk/giflib-5.1.patch) =================================================================== --- community-x86_64/giflib-5.1.patch (rev 0) +++ community-x86_64/giflib-5.1.patch 2018-09-09 02:33:17 UTC (rev 378846) @@ -0,0 +1,62 @@ +diff -wbBur fbv-1.0b/gif.c fbv-1.0b.my/gif.c +--- fbv-1.0b/gif.c 2003-08-25 00:23:02.000000000 +0400 ++++ fbv-1.0b.my/gif.c 2014-05-29 18:39:41.337332872 +0400 +@@ -31,10 +31,10 @@ + #include <string.h> + #define min(a,b) ((a) < (b) ? (a) : (b)) + #define gflush return(FH_ERROR_FILE); +-#define grflush { DGifCloseFile(gft); return(FH_ERROR_FORMAT); } +-#define mgrflush { free(lb); free(slb); DGifCloseFile(gft); return(FH_ERROR_FORMAT); } ++#define grflush { DGifCloseFile(gft, NULL); return(FH_ERROR_FORMAT); } ++#define mgrflush { free(lb); free(slb); DGifCloseFile(gft, NULL); return(FH_ERROR_FORMAT); } + #define agflush return(FH_ERROR_FORMAT); +-#define agrflush { DGifCloseFile(gft); return(FH_ERROR_FORMAT); } ++#define agrflush { DGifCloseFile(gft, NULL); return(FH_ERROR_FORMAT); } + + + int fh_gif_id(char *name) +@@ -81,7 +81,7 @@ + ColorMapObject *cmap; + int cmaps; + +- gft=DGifOpenFileName(name); ++ gft=DGifOpenFileName(name, NULL); + if(gft==NULL){printf("err5\n"); gflush;} ////////// + do + { +@@ -170,7 +170,7 @@ + } + } + while( rt!= TERMINATE_RECORD_TYPE ); +- DGifCloseFile(gft); ++ DGifCloseFile(gft, NULL); + return(FH_ERROR_OK); + } + +@@ -184,7 +184,7 @@ + int extcode; + GifRecordType rt; + +- gft=DGifOpenFileName(name); ++ gft=DGifOpenFileName(name, NULL); + if(gft==NULL) gflush; + do + { +@@ -197,7 +197,7 @@ + px=gft->Image.Width; + py=gft->Image.Height; + *x=px; *y=py; +- DGifCloseFile(gft); ++ DGifCloseFile(gft, NULL); + return(FH_ERROR_OK); + break; + case EXTENSION_RECORD_TYPE: +@@ -210,7 +210,7 @@ + } + } + while( rt!= TERMINATE_RECORD_TYPE ); +- DGifCloseFile(gft); ++ DGifCloseFile(gft, NULL); + return(FH_ERROR_FORMAT); + } + #endif