astro/pngphoon: update to 1.4

Now comes with a man page.

Changelog: https://svolli.de/software/pngphoon/1.4.php
This commit is contained in:
Robert Clausecker
2025-07-18 09:32:56 +02:00
parent c13c2482f0
commit f323683952
5 changed files with 34 additions and 10 deletions
+9 -6
View File
@@ -1,24 +1,27 @@
PORTNAME= pngphoon
DISTVERSION= 1.3
DISTVERSION= 1.4
CATEGORIES= astro
MASTER_SITES= https://svolli.de/software/pngphoon/
COMMENT= PNG Phase of Moon
MAINTAINER= fuz@FreeBSD.org
COMMENT= PNG Phase of Moon
WWW= https://svolli.de/software/pngphoon/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png
LIB_DEPENDS= libpng16.so:graphics/png
USES= gmake localbase:ldflags tar:bz2
USES= gmake localbase:ldflags shebangfix tar:bz2
SHEBANG_FILES= contrib/phoonX
MAKE_ARGS= CC=${CC} CFLAGS="${CFLAGS}"
PLIST_FILES= bin/pngphoon
PLIST_FILES= bin/pngphoon bin/phoonX share/man/man1/pngphoon.1.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pngphoon ${STAGEDIR}${PREFIX}/bin/pngphoon
${INSTALL_PROGRAM} ${WRKSRC}/pngphoon ${STAGEDIR}${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/contrib/phoonX ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/contrib/pngphoon.1 ${STAGEDIR}${PREFIX}/share/man/man1/
.include <bsd.port.mk>
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1703936409
SHA256 (pngphoon-1.3.tar.bz2) = 86bd37d37d23da12aa38b239fa0b197d7a5052c6b96b82361716b54e152d3b23
SIZE (pngphoon-1.3.tar.bz2) = 67264
TIMESTAMP = 1752050037
SHA256 (pngphoon-1.4.tar.bz2) = 5492a1b75edd90e37e7f71b69ca8ed57c71c32bd5a35328085c79fb417cfd524
SIZE (pngphoon-1.4.tar.bz2) = 77764
+11
View File
@@ -0,0 +1,11 @@
--- moon.c.orig 2025-07-18 07:32:17 UTC
+++ moon.c
@@ -148,7 +148,7 @@ void mooncopy( image_t *image, moon_t *moondata, int c
moonoff = y * ( moondata->width ) / 8;
imageoff = (y + yoffset) * image->xbytes + xoffset / 8;
- shade = blackflag ? shade = 0xff : shades[shadeindex][y % 8];
+ shade = blackflag ? 0xff : shades[shadeindex][y % 8];
/* finally, hack the bits */
if( bytexleft == bytexright )
+11
View File
@@ -0,0 +1,11 @@
--- tws.h.orig 2025-07-18 07:31:08 UTC
+++ tws.h
@@ -33,7 +33,7 @@ struct tws
/* Declarations of routines. */
-struct tws *dlocaltime( );
+struct tws *dlocaltime( long * );
/* dlocaltime( &clock ) turns a time(3) clock value into a tws */
struct tws *dtwstime( );
-1
View File
@@ -13,4 +13,3 @@ program was originally written for.
The image must have a width of at least 760 pixels to place the moon.
If the image is smaller just the stars will be drawn. And by the way:
it is pronounced "pingphoon" (like "typhoon").