summaryrefslogtreecommitdiff
path: root/community/xplanet
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-08-03 17:45:52 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-08-03 17:45:52 +0200
commit513c776d74c56a49781a09a5a772f4ea6d6bb401 (patch)
tree161509e3271db459f14f8c69de7c52d4902ba107 /community/xplanet
parent8183144fe6e064d80985ac810f6178a3cf289d0d (diff)
parente191a289464c21aafe7478065ea7ed3ddda0766f (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/arm-elf-binutils/PKGBUILD community/bird/PKGBUILD community/cantata/PKGBUILD community/dbmail/PKGBUILD community/ekg2/PKGBUILD community/ffmpeg-compat/PKGBUILD community/gigedit/PKGBUILD community/gimp-refocus/PKGBUILD community/gmime24/PKGBUILD community/gmpc/PKGBUILD community/gnash/PKGBUILD community/id3lib-rcc/PKGBUILD community/linuxsampler/PKGBUILD community/lwm/PKGBUILD community/midori/PKGBUILD community/mplayer2/PKGBUILD community/mtpaint/PKGBUILD community/nestopia/PKGBUILD community/preload/PKGBUILD community/projectm/PKGBUILD community/rusxmms/PKGBUILD community/taglib-rcc/PKGBUILD community/the_silver_searcher/PKGBUILD community/xnee/PKGBUILD core/libgcrypt/PKGBUILD core/libusbx/PKGBUILD core/mkinitcpio-busybox/PKGBUILD extra/a2ps/PKGBUILD extra/a52dec/PKGBUILD extra/abook/PKGBUILD extra/avidemux/PKGBUILD extra/bzflag/PKGBUILD extra/cln/PKGBUILD extra/exempi/PKGBUILD extra/ffmpeg/PKGBUILD extra/fluxter/PKGBUILD extra/fontforge/PKGBUILD extra/glib/PKGBUILD extra/gnet/PKGBUILD extra/gnome-vfs/PKGBUILD extra/gnutls/PKGBUILD extra/gstreamer0.10-ugly/PKGBUILD extra/gtk/PKGBUILD extra/idnkit/PKGBUILD extra/ilmbase/PKGBUILD extra/imake/PKGBUILD extra/kdenetwork/PKGBUILD extra/libdatrie/PKGBUILD extra/libmbim/PKGBUILD extra/libmp3splt/PKGBUILD extra/libqmi/PKGBUILD extra/libtxc_dxtn/PKGBUILD extra/libxfont/PKGBUILD extra/mesa/PKGBUILD extra/modemmanager/PKGBUILD extra/nedit/PKGBUILD extra/nmap/PKGBUILD extra/openexr/PKGBUILD extra/purple-plugin-pack/PKGBUILD extra/qemu/PKGBUILD extra/qtwebkit/PKGBUILD extra/subversion/PKGBUILD extra/transmission/PKGBUILD extra/truecrypt/PKGBUILD extra/vigra/PKGBUILD extra/virtuoso/PKGBUILD extra/vlc/PKGBUILD extra/wireshark/PKGBUILD extra/wxmaxima/PKGBUILD extra/x264/PKGBUILD extra/xorg-iceauth/PKGBUILD extra/xorg-mkfontscale/PKGBUILD extra/xorg-xfd/PKGBUILD libre/abuse-libre/PKGBUILD libre/clementine-libre/PKGBUILD libre/linux-libre/PKGBUILD
Diffstat (limited to 'community/xplanet')
-rw-r--r--community/xplanet/PKGBUILD16
-rw-r--r--community/xplanet/giflib6.patch130
2 files changed, 142 insertions, 4 deletions
diff --git a/community/xplanet/PKGBUILD b/community/xplanet/PKGBUILD
index ac2ff5123..feaae1f35 100644
--- a/community/xplanet/PKGBUILD
+++ b/community/xplanet/PKGBUILD
@@ -1,21 +1,29 @@
-# $Id: PKGBUILD 90116 2013-05-06 19:40:25Z foutrelis $
+# $Id: PKGBUILD 94933 2013-08-01 07:01:30Z bpiotrowski $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: dorphell <dorphell@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=xplanet
pkgver=1.3.0
-pkgrel=2
+pkgrel=3
pkgdesc="An Xearth wannabe"
arch=(i686 x86_64 'mips64el')
url="http://xplanet.sourceforge.net/"
license=('GPL')
depends=('pango' 'libungif' 'libtiff' 'libxss')
-source=(http://downloads.sourceforge.net/project/xplanet/xplanet/$pkgver/xplanet-$pkgver.tar.gz)
-md5sums=('41f7db2ccd1d8b4b989cacaf9adfe692')
+source=(http://downloads.sourceforge.net/project/xplanet/xplanet/$pkgver/xplanet-$pkgver.tar.gz
+ giflib6.patch)
+md5sums=('41f7db2ccd1d8b4b989cacaf9adfe692'
+ '74e1894304fe3b7caf0b3ddf3c471b0b')
+
+prepare() {
+ cd $srcdir/$pkgname-$pkgver
+ patch -p1 <$srcdir/giflib6.patch
+}
build() {
cd $srcdir/$pkgname-$pkgver
+ unset LDFLAGS
./configure --prefix=/usr --with-freetype
make
}
diff --git a/community/xplanet/giflib6.patch b/community/xplanet/giflib6.patch
new file mode 100644
index 000000000..aaf024198
--- /dev/null
+++ b/community/xplanet/giflib6.patch
@@ -0,0 +1,130 @@
+diff -wbBur xplanet-1.3.0/src/libimage/gif.c /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c
+--- xplanet-1.3.0/src/libimage/gif.c 2006-03-26 01:50:51.000000000 +0300
++++ /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c 2013-07-30 18:21:17.412474692 +0400
+@@ -20,7 +20,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-
++#define FALSE 0
+ #include <gif_lib.h>
+
+ /*
+@@ -42,11 +42,11 @@
+ int color_index;
+ unsigned char *ptr = NULL;
+
+- infile = DGifOpenFileName(filename);
++ infile = DGifOpenFileName(filename, NULL);
+
+ if (infile == NULL)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+@@ -54,7 +54,7 @@
+ {
+ if (DGifGetRecordType(infile, &record_type) == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+@@ -63,7 +63,7 @@
+ case IMAGE_DESC_RECORD_TYPE:
+ if (DGifGetImageDesc(infile) == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+@@ -107,14 +107,14 @@
+ GifByteType *ext;
+ if (DGifGetExtension(infile, &ext_code, &ext) == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+ while (ext != NULL)
+ {
+ if (DGifGetExtensionNext(infile, &ext) == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+ }
+@@ -178,7 +178,7 @@
+ return(0);
+ }
+
+- colormap = MakeMapObject(colormap_size, NULL);
++ colormap = GifMakeMapObject(colormap_size, NULL);
+
+ for (i = 0; i < width * height; i++)
+ {
+@@ -187,10 +187,10 @@
+ blue[i] = (GifByteType) rgb[3*i+2];
+ }
+
+- if (QuantizeBuffer(width, height, &colormap_size, red, green, blue,
++ if (GifQuantizeBuffer(width, height, &colormap_size, red, green, blue,
+ buffer, colormap->Colors) == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+@@ -198,24 +198,24 @@
+ free(green);
+ free(blue);
+
+- outfile = EGifOpenFileName((char *) filename, FALSE);
++ outfile = EGifOpenFileName((char *) filename, FALSE, NULL);
+ if (outfile == NULL)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+ if (EGifPutScreenDesc(outfile, width, height, colormap_size, 0, colormap)
+ == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+ if (EGifPutImageDesc(outfile, 0, 0, width, height, FALSE, NULL)
+ == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+
+@@ -224,7 +224,7 @@
+ {
+ if (EGifPutLine(outfile, ptr, width) == GIF_ERROR)
+ {
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+ return(0);
+ }
+ ptr += width;
+@@ -233,7 +233,7 @@
+ EGifSpew(outfile);
+
+ if (EGifCloseFile(outfile) == GIF_ERROR)
+- PrintGifError();
++ printf("%s\n", GifErrorString(GIF_ERROR));
+
+ free(buffer);
+