diff options
author | naddy <naddy@FreeBSD.org> | 2002-08-15 14:12:03 +0000 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-08-15 14:12:03 +0000 |
commit | cc5308f7f38445eb288233e1a0487b090472bb26 (patch) | |
tree | 5fd052c3134a0bd4ce53c7e6878fc6c89b060f9a /astro/gkrellsun/files | |
parent | 6facd280a02ceaf55b57edd41f4ba8c4ad86d438 (diff) | |
download | FreeBSD-ports-cc5308f7f38445eb288233e1a0487b090472bb26.zip FreeBSD-ports-cc5308f7f38445eb288233e1a0487b090472bb26.tar.gz |
Import gkrellsun 0.2.
A Gkrellm-Plugin that displays the local sun rise and sun set times.
The local latitude and longtitude can be set.
PR: 41670
Submitted by: Steffen Vogelreuter <steffen@vogelreuter.de>
Diffstat (limited to 'astro/gkrellsun/files')
-rw-r--r-- | astro/gkrellsun/files/patch-CalcEphem.c | 14 | ||||
-rw-r--r-- | astro/gkrellsun/files/patch-Makefile | 46 | ||||
-rw-r--r-- | astro/gkrellsun/files/patch-gkrellsun.c | 16 |
3 files changed, 76 insertions, 0 deletions
diff --git a/astro/gkrellsun/files/patch-CalcEphem.c b/astro/gkrellsun/files/patch-CalcEphem.c new file mode 100644 index 0000000..e358f58 --- /dev/null +++ b/astro/gkrellsun/files/patch-CalcEphem.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- CalcEphem.c.orig Thu Aug 15 15:34:37 2002 ++++ CalcEphem.c Thu Aug 15 15:35:00 2002 +@@ -239,7 +239,7 @@ + double UTRise, UTSet; + double LTRise, LTSet; + struct tm *LocalTime; +- long CurrentGMTTime; ++ time_t CurrentGMTTime; + double LocalHour, TimeZone; + + SinH0 = sin( -50.0/60.0 * RadPerDeg ); diff --git a/astro/gkrellsun/files/patch-Makefile b/astro/gkrellsun/files/patch-Makefile new file mode 100644 index 0000000..f91c058 --- /dev/null +++ b/astro/gkrellsun/files/patch-Makefile @@ -0,0 +1,46 @@ + +$FreeBSD$ + +--- Makefile.orig Wed Nov 7 01:36:29 2001 ++++ Makefile Thu Aug 15 15:06:43 2002 +@@ -1,18 +1,18 @@ +-GTK_INCLUDE = `gtk-config --cflags` +-GTK_LIB = `gtk-config --libs` ++GTK_INCLUDE = `$(GTK_CONFIG) --cflags` ++GTK_LIB = `$(GTK_CONFIG) --libs` + +-IMLIB_INCLUDE = `imlib-config --cflags-gdk` +-IMLIB_LIB = `imlib-config --libs-gdk` +-THREAD_LIB = -lpthread ++IMLIB_INCLUDE = `$(IMLIB_CONFIG) --cflags-gdk` ++IMLIB_LIB = `$(IMLIB_CONFIG) --libs-gdk` ++THREAD_LIB = + INSTALLDIR = /usr/local/share/gkrellm/plugins + + ZIPVER= + +-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) ++FLAGS = -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) + LIBS = $(GTK_LIB) $(IMLIB_LIB) $(THREAD_LIB) + LFLAGS = -shared + +-CC = gcc $(CFLAGS) $(FLAGS) ++CC += $(CFLAGS) $(FLAGS) + + OBJS = gkrellsun.o CalcEphem.o + +@@ -32,9 +32,6 @@ + install -c -s -m 644 gkrellsun.so $(INSTALLDIR) + + zip: +-ifeq ($(ZIPVER),) +- @echo You must specify ZIPVER for the zip target +-else + rm -rf /tmp/gkrellsun-$(ZIPVER) + rm -f /tmp/tar.exclude + rm -f /tmp/gkrellsun-$(ZIPVER).tar.gz +@@ -52,4 +49,3 @@ + cd /tmp && tar cf - gkrellsun-$(ZIPVER) | gzip > gkrellsun-$(ZIPVER).tar.gz + cd /tmp && zip -rpD gkrellsun-$(ZIPVER).zip gkrellsun-$(ZIPVER) + rm -f tar.exclude +-endif diff --git a/astro/gkrellsun/files/patch-gkrellsun.c b/astro/gkrellsun/files/patch-gkrellsun.c new file mode 100644 index 0000000..10dd7d4 --- /dev/null +++ b/astro/gkrellsun/files/patch-gkrellsun.c @@ -0,0 +1,16 @@ + +$FreeBSD$ + +--- gkrellsun.c.orig Thu Aug 15 15:32:05 2002 ++++ gkrellsun.c Thu Aug 15 15:35:13 2002 +@@ -92,8 +92,9 @@ + static void update_sun_data(Sun * sun) + { + struct tm *time_struc; /* The tm struct is defined in <time.h> */ ++ time_t current_gmt; + gdouble local_std_time, univ_time, eot; +- glong current_gmt, date; ++ glong date; + gint day_of_month, month, year; + + current_gmt = time(CurrentTime); /* CurrentTime defined in <X11/X.h> */ |