xplanet: 1.3.0 -> 1.3.1

This commit is contained in:
Danny Rawlins 2020-05-12 20:52:53 +10:00
parent 91bd5cb18e
commit 5f074feb50
3 changed files with 48 additions and 12 deletions

View File

@ -1,6 +1,7 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF36Wom4od79dYC8zGNB35PPu89gO1YsnEg3rdK9rlfJog16RVFtevBPB+CGNiKDrARnXacB9xMAKdcuimZ+KQcwI=
SHA256 (Pkgfile) = 0270140c12cedb58049d581c54a7fa9f6e9cbaec24891944372821c274fe2800
RWSagIOpLGJF33EBqQawngU+BisYqp5TBGR2NIMx5y9psa9vK5RPrSOGhAbGWRBjtAU+hkf2CxzhPvNtRLHxKkjvlcVWlkC+cgo=
SHA256 (Pkgfile) = 0a521a6de2820799c562c1f23a57bd5a7a495b67cd55c3104531d0eb2ff925c0
SHA256 (.footprint) = 9bf2944747899fa8014a9b57dfffbb39175e76a40989a68cc154b235c000cfcc
SHA256 (xplanet-1.3.0.tar.gz) = 44fb742bb93e5661ea8b11ccabcc12896693e051f3dd5083c9227224c416b442
SHA256 (xplanet-1.3.1.tar.gz) = 4380d570a8bf27b81fb629c97a636c1673407f4ac4989ce931720078a90aece7
SHA256 (giflib6.patch) = b42e3438e969713bcba6188669507bb23fde004598c070c4196a554ed5787be4
SHA256 (xplanet-c++11.patch) = e651c7081c43ea48090186580b5a2a5d5039ab3ffbf34f7dd970037a16081454

View File

@ -1,21 +1,26 @@
# Description: Renders an image of the earth into the X root window.
# URL: http://xplanet.sourceforge.net/
# Maintainer: Danny Rawlins, crux at romster dot me
# Packager: Danny Rawlins, crux at romster dot me
# Depends on: libtiff xorg
# Depends on: pango giflib libtiff xorg-libxscrnsaver
name=xplanet
version=1.3.0
release=2
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz
xplanet-c++11.patch)
version=1.3.1
release=1
source=(https://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz
giflib6.patch
xplanet-c++11.patch)
build() {
cd $name-$version
# https://git.archlinux.org/svntogit/community.git/tree/trunk/xplanet-c++11.patch?h=packages/xplanet
patch -Np1 -i $SRC/xplanet-c++11.patch
patch -p1 -i $SRC/giflib6.patch
patch -p1 -i $SRC/xplanet-c++11.patch
sed -e 's|freetype-config|pkg-config freetype2|g' -i acinclude.m4
autoreconf -vif
./configure \
--prefix=/usr
--prefix=/usr \
--with-freetype
make
make DESTDIR=$PKG install

30
xplanet/giflib6.patch Normal file
View File

@ -0,0 +1,30 @@
diff -wbBur xplanet-1.3.1/src/libimage/gif.c xplanet-1.3.1.q/src/libimage/gif.c
--- xplanet-1.3.1/src/libimage/gif.c 2013-02-16 23:37:47.000000000 +0400
+++ xplanet-1.3.1.q/src/libimage/gif.c 2016-03-14 17:41:14.244144734 +0300
@@ -179,7 +179,7 @@
}
}
- if (DGifCloseFile(GifFile) == GIF_ERROR) {
+ if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
return(0);
}
@@ -493,7 +493,7 @@
static void QuitGifError(GifFileType *GifFile)
{
fprintf(stderr, "Error writing GIF file\n");
- if (GifFile != NULL) EGifCloseFile(GifFile);
+ if (GifFile != NULL) EGifCloseFile(GifFile, NULL);
}
int
@@ -589,7 +589,7 @@
Ptr += width;
}
- if (EGifCloseFile(GifFile) == GIF_ERROR)
+ if (EGifCloseFile(GifFile, NULL) == GIF_ERROR)
{
QuitGifError(GifFile);