xplanet dependency for kstars

This commit is contained in:
groni
2015-11-18 20:44:19 +01:00
parent 5b0d08cecb
commit f8a1eb6b7a
11 changed files with 398 additions and 2 deletions
+78
View File
@@ -98791,6 +98791,84 @@ uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>xplanet</Name>
<Homepage>http://xplanet.sourceforge.net</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:gui</IsA>
<PartOf>science.astronomy</PartOf>
<Summary xml:lang="en">Render a planetary image into an X window</Summary>
<Summary xml:lang="tr">Gezegen görüntülerini bir X penceresine çizdirir</Summary>
<Description xml:lang="en">Xplanet was inspired by Xearth, which renders an image of the earth into the X root window. All of the major planets and most satellites can be drawn, similar to the Solar System Simulator. A number of different map projections are also supported, including azimuthal, Lambert, Mercator, Mollweide, orthographic, and rectangular.</Description>
<Description xml:lang="tr">Xplanet, Dünya&apos;nın bir görüntüsünü bir X penceresine çizdiren Xearth programından esinlenilerek yapılmıştır. Güneş Sistemi Simülatörü&apos;ne benzer şekilde bir çok büyük gezegen ve uydu çizdirilebilir. Azimut, Lambert, Mercator, Mollweide, ortografik, dikdörtgen de dahil olmak üzere bir çok farklı harita projeksiyonunu destekler.</Description>
<Archive type="targz" sha1sum="7c5208b501b441a0184cbb334a5658d0309d7dac">mirrors://sourceforge/project/xplanet/xplanet/1.3.0/xplanet-1.3.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>pango-devel</Dependency>
<Dependency>netpbm-devel</Dependency>
<Dependency>libXScrnSaver-devel</Dependency>
<Dependency>giflib-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
<Dependency>tiff-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">giflib6.patch</Patch>
<Patch>xplanet-1.2.1-fix-gcc44.patch</Patch>
</Patches>
<SourceURI>science/astronomy/xplanet/pspec.xml</SourceURI>
</Source>
<Package>
<Name>xplanet</Name>
<RuntimeDependencies>
<Dependency>pango</Dependency>
<Dependency>netpbm</Dependency>
<Dependency>libXScrnSaver</Dependency>
<Dependency>giflib</Dependency>
<Dependency>libjpeg-turbo</Dependency>
<Dependency>tiff</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2014-06-14</Date>
<Version>1.3.0</Version>
<Comment>Rebuild for gcc</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-01-29</Date>
<Version>1.3.0</Version>
<Comment>add giflib patch</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-17</Date>
<Version>1.3.0</Version>
<Comment>Rebuild for 1.0</Comment>
<Name>Richard de Bruin</Name>
<Email>richdb@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-28</Date>
<Version>1.3.0</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>libspiro</Name>
+1 -1
View File
@@ -1 +1 @@
3f28de88944d08fd8f5e0f8e42258a1e0599b329
b5c9b8589f01b55c8f0df066e63986fb747c62f7
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
7666474d57b2e33c60bef27e6c9cce6c3a40cfae
5a18492984c655999976d6e77f852a967f37bca1
+3
View File
@@ -0,0 +1,3 @@
<PISI>
<Name>science.astronomy</Name>
</PISI>
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--with-xscreensaver \
--with-freetype \
--with-pango \
--with-cspice \
--with-gif \
--with-jpeg \
--with-png \
--with-pnm \
--with-tiff")
def build():
autotools.make()
def install():
autotools.install()
pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README", "TODO")
@@ -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);
@@ -0,0 +1,36 @@
diff -Naur xplanet-1.2.1-orig/configure xplanet-1.2.1/configure
--- xplanet-1.2.1-orig/configure 2009-12-04 10:34:21.766146687 +0200
+++ xplanet-1.2.1/configure 2009-12-04 10:34:36.868516259 +0200
@@ -7974,7 +7974,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-#include <pnm.h>
+#include <netpbm/pnm.h>
_ACEOF
rm -f conftest.$ac_objext
if { (ac_try="$ac_compile"
diff -Naur xplanet-1.2.1-orig/src/libimage/pnm.c xplanet-1.2.1/src/libimage/pnm.c
--- xplanet-1.2.1-orig/src/libimage/pnm.c 2009-12-04 10:34:21.768391483 +0200
+++ xplanet-1.2.1/src/libimage/pnm.c 2009-12-04 10:35:13.152141234 +0200
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <string.h>
-#include <pnm.h>
+#include <netpbm/pnm.h>
int
read_pnm(const char *filename, int *width, int *height, char **rgb)
diff -Naur xplanet-1.2.1-orig/src/libimage/WriteImage.cpp xplanet-1.2.1/src/libimage/WriteImage.cpp
--- xplanet-1.2.1-orig/src/libimage/WriteImage.cpp 2009-12-04 10:34:21.768391483 +0200
+++ xplanet-1.2.1/src/libimage/WriteImage.cpp 2009-12-04 10:35:00.145228715 +0200
@@ -31,7 +31,7 @@
#endif
#ifdef HAVE_LIBPNM
-#include <pnm.h>
+#include <netpbm/pnm.h>
int
write_pnm(FILE *outfile, int width, int height, unsigned char *rgb,
int maxv, int format, int forceplain);
@@ -0,0 +1,35 @@
Index: src/PlanetProperties.cpp
===================================================================
--- src/PlanetProperties.cpp
+++ src/PlanetProperties.cpp 2009-05-25 12:31:55.000000000 +0200
@@ -1,6 +1,8 @@
#include <algorithm>
#include <cctype>
#include <cstring>
+#include <cstdio>
+#include <cstdlib>
#include <string>
#include <vector>
using namespace std;
Index: src/Satellite.cpp
===================================================================
--- src/Satellite.cpp
+++ src/Satellite.cpp 2009-05-25 11:44:36.000000000 +0200
@@ -1,5 +1,6 @@
#include <clocale>
#include <cstring>
+#include <cstdio>
#include <iostream>
using namespace std;
Index: src/Separation.cpp
===================================================================
--- src/Separation.cpp
+++ src/Separation.cpp 2009-05-25 11:50:11.000000000 +0200
@@ -1,5 +1,6 @@
#include <cmath>
#include <iostream>
+#include <cstdio>
#include "Separation.h"
#include "View.h"
+78
View File
@@ -0,0 +1,78 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>xplanet</Name>
<Homepage>http://xplanet.sourceforge.net</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:gui</IsA>
<Summary>Render a planetary image into an X window</Summary>
<Description>Xplanet was inspired by Xearth, which renders an image of the earth into the X root window. All of the major planets and most satellites can be drawn, similar to the Solar System Simulator. A number of different map projections are also supported, including azimuthal, Lambert, Mercator, Mollweide, orthographic, and rectangular.</Description>
<Archive sha1sum="7c5208b501b441a0184cbb334a5658d0309d7dac" type="targz">mirrors://sourceforge/project/xplanet/xplanet/1.3.0/xplanet-1.3.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>pango-devel</Dependency>
<Dependency>netpbm-devel</Dependency>
<Dependency>libXScrnSaver-devel</Dependency>
<Dependency>giflib-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
<Dependency>tiff-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">giflib6.patch</Patch>
<Patch>xplanet-1.2.1-fix-gcc44.patch</Patch>
</Patches>
</Source>
<Package>
<Name>xplanet</Name>
<RuntimeDependencies>
<Dependency>pango</Dependency>
<Dependency>netpbm</Dependency>
<Dependency>libXScrnSaver</Dependency>
<Dependency>giflib</Dependency>
<Dependency>libjpeg-turbo</Dependency>
<Dependency>tiff</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2014-06-14</Date>
<Version>1.3.0</Version>
<Comment>Rebuild for gcc</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-01-29</Date>
<Version>1.3.0</Version>
<Comment>add giflib patch</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2014-01-17</Date>
<Version>1.3.0</Version>
<Comment>Rebuild for 1.0</Comment>
<Name>Richard de Bruin</Name>
<Email>richdb@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-28</Date>
<Version>1.3.0</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>xplanet</Name>
<Summary xml:lang="tr">Gezegen görüntülerini bir X penceresine çizdirir</Summary>
<Description xml:lang="tr">Xplanet, Dünya'nın bir görüntüsünü bir X penceresine çizdiren Xearth programından esinlenilerek yapılmıştır. Güneş Sistemi Simülatörü'ne benzer şekilde bir çok büyük gezegen ve uydu çizdirilebilir. Azimut, Lambert, Mercator, Mollweide, ortografik, dikdörtgen de dahil olmak üzere bir çok farklı harita projeksiyonunu destekler.</Description>
</Source>
</PISI>