summaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-08-15 14:12:03 +0000
committernaddy <naddy@FreeBSD.org>2002-08-15 14:12:03 +0000
commitcc5308f7f38445eb288233e1a0487b090472bb26 (patch)
tree5fd052c3134a0bd4ce53c7e6878fc6c89b060f9a /astro
parent6facd280a02ceaf55b57edd41f4ba8c4ad86d438 (diff)
downloadFreeBSD-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')
-rw-r--r--astro/Makefile1
-rw-r--r--astro/gkrellsun/Makefile26
-rw-r--r--astro/gkrellsun/distinfo1
-rw-r--r--astro/gkrellsun/files/patch-CalcEphem.c14
-rw-r--r--astro/gkrellsun/files/patch-Makefile46
-rw-r--r--astro/gkrellsun/files/patch-gkrellsun.c16
-rw-r--r--astro/gkrellsun/pkg-comment1
-rw-r--r--astro/gkrellsun/pkg-descr8
-rw-r--r--astro/gkrellsun/pkg-plist2
9 files changed, 115 insertions, 0 deletions
diff --git a/astro/Makefile b/astro/Makefile
index 36d4ef3..649fb16 100644
--- a/astro/Makefile
+++ b/astro/Makefile
@@ -9,6 +9,7 @@
SUBDIR += gkrellmearth
SUBDIR += gkrellmoon
SUBDIR += gkrellmseti
+ SUBDIR += gkrellsun
SUBDIR += glunarclock
SUBDIR += gpsdrive
SUBDIR += gpsman
diff --git a/astro/gkrellsun/Makefile b/astro/gkrellsun/Makefile
new file mode 100644
index 0000000..22bfec3
--- /dev/null
+++ b/astro/gkrellsun/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: gkrellsun
+# Date Created: 14.August 2002
+# Whom: Steffen Vogelreuter
+#
+# $FreeBSD$
+#
+
+PORTNAME= gkrellsun
+PORTVERSION= 0.2
+CATEGORIES= astro
+MASTER_SITES= http://nwalsh.com/hacks/gkrellsun/
+
+MAINTAINER= steffen@vogelreuter.de
+
+BUILD_DEPENDS= ${X11BASE}/include/gkrellm/gkrellm.h:${PORTSDIR}/sysutils/gkrellm
+RUN_DEPENDS= gkrellm:${PORTSDIR}/sysutils/gkrellm
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
+USE_X_PREFIX= yes
+USE_IMLIB= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gkrellsun.so \
+ ${PREFIX}/libexec/gkrellm/plugins
+
+.include <bsd.port.mk>
diff --git a/astro/gkrellsun/distinfo b/astro/gkrellsun/distinfo
new file mode 100644
index 0000000..90ff2d5
--- /dev/null
+++ b/astro/gkrellsun/distinfo
@@ -0,0 +1 @@
+MD5 (gkrellsun-0.2.tar.gz) = d692390b8cddcfc173365855f5ffe28c
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> */
diff --git a/astro/gkrellsun/pkg-comment b/astro/gkrellsun/pkg-comment
new file mode 100644
index 0000000..1fedde0
--- /dev/null
+++ b/astro/gkrellsun/pkg-comment
@@ -0,0 +1 @@
+A Gkrellm-Plugin that displays the local sun rise and sun set times
diff --git a/astro/gkrellsun/pkg-descr b/astro/gkrellsun/pkg-descr
new file mode 100644
index 0000000..1c02655
--- /dev/null
+++ b/astro/gkrellsun/pkg-descr
@@ -0,0 +1,8 @@
+A Gkrellm-Plugin that displays the local sun rise and sun set times.
+The local latitude and longtitude can be set.
+
+Author: Norman Walsh <ndw@nwalsh.com>
+WWW: http://nwalsh.com/hacks/gkrellsun/
+
+-- Steffen Vogelreuter
+steffen@vogelreuter.de
diff --git a/astro/gkrellsun/pkg-plist b/astro/gkrellsun/pkg-plist
new file mode 100644
index 0000000..08e5584
--- /dev/null
+++ b/astro/gkrellsun/pkg-plist
@@ -0,0 +1,2 @@
+@comment $FreeBSD$
+libexec/gkrellm/plugins/gkrellsun.so
OpenPOWER on IntegriCloud