diff options
author | pho <pho@pkgsrc.org> | 2021-11-27 12:33:20 +0000 |
---|---|---|
committer | pho <pho@pkgsrc.org> | 2021-11-27 12:33:20 +0000 |
commit | a154a201f758724ed0707d4df6889ef46c985571 (patch) | |
tree | 1d477d40d371e5f4a2d426d187c341d661273bf6 /misc | |
parent | a8bf2032db87890bd6a2ef108eb68e3426b66707 (diff) | |
download | pkgsrc-a154a201f758724ed0707d4df6889ef46c985571.tar.gz |
Import gkrellsun-1.0.0
gkrellsun is a plugin for gkrellm which can display the following:
* Sun's setting time
* Sun's rising time
* Sun's estimate time before setting/rising
* Sun's path and current location on that path
* Sun's apogee path
* As of 0.11.0:
* Moon displayed as a full image (identical to gkrellmoon).
* User can click on image to toggle between Sun/Moon.
* Sun/Moon images will be toggled every X minutes (changable).
* Moon has a tooltip with more info.
There are currently two background images. One is a static UltraViolet
image and the other is an Orange image consists of six levels of
brightness. The text color for each of the Suns' rise/set/eta times
can be set independantly. The font type and size can also be set for
all the times.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/gkrellsun/DESCR | 18 | ||||
-rw-r--r-- | misc/gkrellsun/Makefile | 21 | ||||
-rw-r--r-- | misc/gkrellsun/PLIST | 4 | ||||
-rw-r--r-- | misc/gkrellsun/distinfo | 6 | ||||
-rw-r--r-- | misc/gkrellsun/options.mk | 13 | ||||
-rw-r--r-- | misc/gkrellsun/patches/patch-src20_Makefile | 15 |
6 files changed, 77 insertions, 0 deletions
diff --git a/misc/gkrellsun/DESCR b/misc/gkrellsun/DESCR new file mode 100644 index 00000000000..80558712d7d --- /dev/null +++ b/misc/gkrellsun/DESCR @@ -0,0 +1,18 @@ +gkrellsun is a plugin for gkrellm which can display the following: + +* Sun's setting time +* Sun's rising time +* Sun's estimate time before setting/rising +* Sun's path and current location on that path +* Sun's apogee path +* As of 0.11.0: + * Moon displayed as a full image (identical to gkrellmoon). + * User can click on image to toggle between Sun/Moon. + * Sun/Moon images will be toggled every X minutes (changable). + * Moon has a tooltip with more info. + +There are currently two background images. One is a static UltraViolet +image and the other is an Orange image consists of six levels of +brightness. The text color for each of the Suns' rise/set/eta times +can be set independantly. The font type and size can also be set for +all the times. diff --git a/misc/gkrellsun/Makefile b/misc/gkrellsun/Makefile new file mode 100644 index 00000000000..5f6c70be04b --- /dev/null +++ b/misc/gkrellsun/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1 2021/11/27 12:33:20 pho Exp $ +DISTNAME= gkrellsun-1.0.0 +CATEGORIES= misc +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gkrellsun/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://gkrellsun.sourceforge.net/ +COMMENT= GKrellM plugin to display sun rise and sun set times +LICENSE= gnu-gpl-v2 + +USE_TOOLS+= pkg-config gmake + +.include "options.mk" + +INSTALLATION_DIRS+= share/doc/${PKGBASE} +post-install: + ${INSTALL_DATA} "${WRKSRC}/README" \ + "${DESTDIR}${PREFIX}/share/doc/${PKGBASE}" + +.include "../../sysutils/gkrellm/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/misc/gkrellsun/PLIST b/misc/gkrellsun/PLIST new file mode 100644 index 00000000000..07bbfffa170 --- /dev/null +++ b/misc/gkrellsun/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2021/11/27 12:33:20 pho Exp $ +lib/gkrellm2/plugins/gkrellsun.so +share/doc/gkrellsun/README +share/locale/ru/LC_MESSAGES/gkrellsun.mo diff --git a/misc/gkrellsun/distinfo b/misc/gkrellsun/distinfo new file mode 100644 index 00000000000..05c01d9014b --- /dev/null +++ b/misc/gkrellsun/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/11/27 12:33:20 pho Exp $ + +BLAKE2s (gkrellsun-1.0.0.tar.gz) = 29aebc2c39df47ce9b06a27882f2ba2b0853fa5c1504c01d3e735ba267a33e03 +SHA512 (gkrellsun-1.0.0.tar.gz) = 1a34812e94f16d19311c23d44a0353dade50b802dd3ab115738959b9322c3bc6a28daa2bcea889700e6cc2ff8eb9400b989bf02c6f138bb878b94118ffd6e27a +Size (gkrellsun-1.0.0.tar.gz) = 96970 bytes +SHA1 (patch-src20_Makefile) = aa82b3842f704ced762830bf65de5b69e368c78d diff --git a/misc/gkrellsun/options.mk b/misc/gkrellsun/options.mk new file mode 100644 index 00000000000..f5f2a61808d --- /dev/null +++ b/misc/gkrellsun/options.mk @@ -0,0 +1,13 @@ +# $NetBSD: options.mk,v 1.1 2021/11/27 12:33:20 pho Exp $ +PKG_OPTIONS_VAR= PKG_OPTIONS.gkrellsun +PKG_SUPPORTED_OPTIONS= nls +PKG_SUGGESTED_OPTIONS= nls + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mnls) +USE_TOOLS+= gmake msgfmt +MAKE_FLAGS+= enable_nls=1 +MAKE_FLAGS+= LOCALEDIR="${PREFIX}/${PKGLOCALEDIR}/locale" +MAKE_FLAGS+= INSTALL_PREFIX="${DESTDIR}" +.endif diff --git a/misc/gkrellsun/patches/patch-src20_Makefile b/misc/gkrellsun/patches/patch-src20_Makefile new file mode 100644 index 00000000000..8127ab5b63f --- /dev/null +++ b/misc/gkrellsun/patches/patch-src20_Makefile @@ -0,0 +1,15 @@ +$NetBSD: patch-src20_Makefile,v 1.1 2021/11/27 12:33:20 pho Exp $ + +Honor LDFLAGS to support RELRO. + +--- src20/Makefile.orig 2006-03-16 18:59:17.000000000 +0000 ++++ src20/Makefile +@@ -35,7 +35,7 @@ all: gkrellsun.so + + gkrellsun.so: $(OBJS) + (cd po && ${MAKE}) +- $(CC) $(OBJS) -o gkrellsun.so $(LFLAGS) $(LIBS) ++ $(CC) $(OBJS) -o gkrellsun.so $(LFLAGS) $(LDFLAGS) $(LIBS) + + suninfo: suninfo.o CalcEphem.o Moon.o MoonRise.o + $(CC) $^ -o suninfo -lm $(LIBS) |