1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00: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:
Rodrigo Osorio 2024-10-18 00:00:17 +02:00
parent bd98656c02
commit f641d910db
4 changed files with 22 additions and 19 deletions

View File

@ -1,12 +1,12 @@
PORTNAME= wmsun
DISTVERSION= 1.05
DISTVERSION= 1.06
PORTEPOCH= 1
CATEGORIES= astro windowmaker
MASTER_SITES= https://www.dockapps.net/download/
MAINTAINER= ports@FreeBSD.org
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_FILE= ${WRKSRC}/COPYING
@ -16,13 +16,16 @@ LIB_DEPENDS= libdockapp.so:x11-wm/libdockapp
USES= xorg
USE_XORG= x11 xext xpm
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \
INCDIR="-I${LOCALBASE}/include" LIBDIR="-L${LOCALBASE}/lib"
MAKE_ARGS= CC="${CC}" \
CFLAGS="${CFLAGS}" \
INCDIR="-I${LOCALBASE}/include" \
LIBDIR="-L${LOCALBASE}/lib"
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:
${INSTALL_PROGRAM} ${WRKSRC}/wmsun ${STAGEDIR}${PREFIX}/bin

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1549747586
SHA256 (wmsun-1.05.tar.gz) = 29c7d2da4c0731a20955af9ba01bde3901dc269bfa1020ff707927c62d5b83a0
SIZE (wmsun-1.05.tar.gz) = 20640
TIMESTAMP = 1729200043
SHA256 (wmsun-1.06.tar.gz) = 32fccc7d2f7fa1c2a2fda6a9d24e6747f79789396e975d7ca20cb97742ce5a21
SIZE (wmsun-1.06.tar.gz) = 20127

View File

@ -1,11 +1,11 @@
--- Makefile.orig 2015-08-28 11:57:39 UTC
--- Makefile.orig 2024-10-17 21:56:44 UTC
+++ Makefile
@@ -19,14 +19,14 @@ LIBS = -lXpm -lX11 -lXext -lm -ldockapp
OBJS = wmsun.o SunRise.o
@@ -21,14 +21,14 @@
.c.o:
- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ $(INCDIR)
$(CC) $(CPPFLAGS) -DWMSUN_VERSION=\"$(WMSUN_VERSION)\" $(CFLAGS) -c $< \
- -o $*.o
+ -o $@ $(INCDIR)
all: wmsun.o wmsun

View File

@ -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
@@ -43,7 +43,6 @@
@@ -43,7 +43,7 @@
/*
* Includes
*/
-#define _POSIX_C_SOURCE 1
+#define _POSIX_C_SOURCE 200112L
#include <X11/X.h> /* for ButtonPress, ButtonRelease, etc */
#include <X11/Xlib.h> /* for XEvent, ConnectionNumber, etc */
#include <math.h> /* for cos, sin */
@@ -106,7 +105,8 @@ int main(int argc, char *argv[]) {
@@ -105,7 +105,7 @@
int n;
int Year, Month;
int DayOfMonth;
- long CurrentLocalTime, CurrentGMTTime, date;
+ time_t CurrentLocalTime, CurrentGMTTime;
+ long date;
+ time_t CurrentLocalTime, CurrentGMTTime, date;
double UT, val, LTRise, LTSet, LocalHour, hour24();
int H, M;
struct timeval timeout;