mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
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>
This commit is contained in:
parent
521432de4f
commit
149a799667
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64541
@ -9,6 +9,7 @@
|
||||
SUBDIR += gkrellmearth
|
||||
SUBDIR += gkrellmoon
|
||||
SUBDIR += gkrellmseti
|
||||
SUBDIR += gkrellsun
|
||||
SUBDIR += glunarclock
|
||||
SUBDIR += gpsdrive
|
||||
SUBDIR += gpsman
|
||||
|
26
astro/gkrellsun/Makefile
Normal file
26
astro/gkrellsun/Makefile
Normal file
@ -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>
|
1
astro/gkrellsun/distinfo
Normal file
1
astro/gkrellsun/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (gkrellsun-0.2.tar.gz) = d692390b8cddcfc173365855f5ffe28c
|
14
astro/gkrellsun/files/patch-CalcEphem.c
Normal file
14
astro/gkrellsun/files/patch-CalcEphem.c
Normal file
@ -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 );
|
46
astro/gkrellsun/files/patch-Makefile
Normal file
46
astro/gkrellsun/files/patch-Makefile
Normal file
@ -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
|
16
astro/gkrellsun/files/patch-gkrellsun.c
Normal file
16
astro/gkrellsun/files/patch-gkrellsun.c
Normal file
@ -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> */
|
1
astro/gkrellsun/pkg-comment
Normal file
1
astro/gkrellsun/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A Gkrellm-Plugin that displays the local sun rise and sun set times
|
8
astro/gkrellsun/pkg-descr
Normal file
8
astro/gkrellsun/pkg-descr
Normal file
@ -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
|
2
astro/gkrellsun/pkg-plist
Normal file
2
astro/gkrellsun/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $FreeBSD$
|
||||
libexec/gkrellm/plugins/gkrellsun.so
|
Loading…
Reference in New Issue
Block a user