mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
astro/wmsun: update to 1.06
Changelog: https://repo.or.cz/dockapps.git/blob_plain/HEAD:/wmsun/ChangeLog Major changes: * Fix typo in manpage. * Move version number definition to Makefile * Add 'dist' target to Makefile to generate tarball Port changes: * reformat Makefile to make portfmt happy * update WWW (error 404)
This commit is contained in:
parent
bd98656c02
commit
f641d910db
4 changed files with 22 additions and 19 deletions
|
@ -1,12 +1,12 @@
|
||||||
PORTNAME= wmsun
|
PORTNAME= wmsun
|
||||||
DISTVERSION= 1.05
|
DISTVERSION= 1.06
|
||||||
PORTEPOCH= 1
|
PORTEPOCH= 1
|
||||||
CATEGORIES= astro windowmaker
|
CATEGORIES= astro windowmaker
|
||||||
MASTER_SITES= https://www.dockapps.net/download/
|
MASTER_SITES= https://www.dockapps.net/download/
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= Dockapp that displays the rise and set times of the Sun
|
COMMENT= Dockapp that displays the rise and set times of the Sun
|
||||||
WWW= https://www.dockapps.net/wmsun/
|
WWW= https://www.dockapps.net/wmsun
|
||||||
|
|
||||||
LICENSE= GPLv2+
|
LICENSE= GPLv2+
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||||
|
@ -16,13 +16,16 @@ LIB_DEPENDS= libdockapp.so:x11-wm/libdockapp
|
||||||
USES= xorg
|
USES= xorg
|
||||||
USE_XORG= x11 xext xpm
|
USE_XORG= x11 xext xpm
|
||||||
|
|
||||||
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
|
MAKE_ARGS= CC="${CC}" \
|
||||||
INCDIR="-I${LOCALBASE}/include" LIBDIR="-L${LOCALBASE}/lib"
|
CFLAGS="${CFLAGS}" \
|
||||||
|
INCDIR="-I${LOCALBASE}/include" \
|
||||||
|
LIBDIR="-L${LOCALBASE}/lib"
|
||||||
MAKE_JOBS_UNSAFE= yes
|
MAKE_JOBS_UNSAFE= yes
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/dockapps-a1e67bd
|
#WRKSRC= ${WRKDIR}/dockapps-a1e67bd
|
||||||
|
|
||||||
PLIST_FILES= bin/wmsun share/man/man1/wmsun.1.gz
|
PLIST_FILES= bin/wmsun \
|
||||||
|
share/man/man1/wmsun.1.gz
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/wmsun ${STAGEDIR}${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/wmsun ${STAGEDIR}${PREFIX}/bin
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1549747586
|
TIMESTAMP = 1729200043
|
||||||
SHA256 (wmsun-1.05.tar.gz) = 29c7d2da4c0731a20955af9ba01bde3901dc269bfa1020ff707927c62d5b83a0
|
SHA256 (wmsun-1.06.tar.gz) = 32fccc7d2f7fa1c2a2fda6a9d24e6747f79789396e975d7ca20cb97742ce5a21
|
||||||
SIZE (wmsun-1.05.tar.gz) = 20640
|
SIZE (wmsun-1.06.tar.gz) = 20127
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
--- Makefile.orig 2015-08-28 11:57:39 UTC
|
--- Makefile.orig 2024-10-17 21:56:44 UTC
|
||||||
+++ Makefile
|
+++ Makefile
|
||||||
@@ -19,14 +19,14 @@ LIBS = -lXpm -lX11 -lXext -lm -ldockapp
|
@@ -21,14 +21,14 @@
|
||||||
OBJS = wmsun.o SunRise.o
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
|
$(CC) $(CPPFLAGS) -DWMSUN_VERSION=\"$(WMSUN_VERSION)\" $(CFLAGS) -c $< \
|
||||||
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ $(INCDIR)
|
- -o $*.o
|
||||||
|
+ -o $@ $(INCDIR)
|
||||||
|
|
||||||
all: wmsun.o wmsun
|
all: wmsun.o wmsun
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
--- wmsun.c.orig 2015-08-28 11:57:39 UTC
|
--- wmsun.c.orig 2024-10-17 21:51:08 UTC
|
||||||
+++ wmsun.c
|
+++ wmsun.c
|
||||||
@@ -43,7 +43,6 @@
|
@@ -43,7 +43,7 @@
|
||||||
/*
|
/*
|
||||||
* Includes
|
* Includes
|
||||||
*/
|
*/
|
||||||
-#define _POSIX_C_SOURCE 1
|
-#define _POSIX_C_SOURCE 1
|
||||||
|
+#define _POSIX_C_SOURCE 200112L
|
||||||
#include <X11/X.h> /* for ButtonPress, ButtonRelease, etc */
|
#include <X11/X.h> /* for ButtonPress, ButtonRelease, etc */
|
||||||
#include <X11/Xlib.h> /* for XEvent, ConnectionNumber, etc */
|
#include <X11/Xlib.h> /* for XEvent, ConnectionNumber, etc */
|
||||||
#include <math.h> /* for cos, sin */
|
#include <math.h> /* for cos, sin */
|
||||||
@@ -106,7 +105,8 @@ int main(int argc, char *argv[]) {
|
@@ -105,7 +105,7 @@
|
||||||
int n;
|
int n;
|
||||||
int Year, Month;
|
int Year, Month;
|
||||||
int DayOfMonth;
|
int DayOfMonth;
|
||||||
- long CurrentLocalTime, CurrentGMTTime, date;
|
- long CurrentLocalTime, CurrentGMTTime, date;
|
||||||
+ time_t CurrentLocalTime, CurrentGMTTime;
|
+ time_t CurrentLocalTime, CurrentGMTTime, date;
|
||||||
+ long date;
|
|
||||||
double UT, val, LTRise, LTSet, LocalHour, hour24();
|
double UT, val, LTRise, LTSet, LocalHour, hour24();
|
||||||
int H, M;
|
int H, M;
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
|
|
Loading…
Add table
Reference in a new issue