summaryrefslogtreecommitdiff
path: root/astro/pngphoon
diff options
context:
space:
mode:
Diffstat (limited to 'astro/pngphoon')
-rw-r--r--astro/pngphoon/Makefile15
-rw-r--r--astro/pngphoon/distinfo6
-rw-r--r--astro/pngphoon/files/patch-moon.c11
-rw-r--r--astro/pngphoon/files/patch-tws.h11
-rw-r--r--astro/pngphoon/pkg-descr1
5 files changed, 34 insertions, 10 deletions
diff --git a/astro/pngphoon/Makefile b/astro/pngphoon/Makefile
index 2a562534ae48..3bcc5b1df0ec 100644
--- a/astro/pngphoon/Makefile
+++ b/astro/pngphoon/Makefile
@@ -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>
diff --git a/astro/pngphoon/distinfo b/astro/pngphoon/distinfo
index 8532d06226f7..d06a2fcb694f 100644
--- a/astro/pngphoon/distinfo
+++ b/astro/pngphoon/distinfo
@@ -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
diff --git a/astro/pngphoon/files/patch-moon.c b/astro/pngphoon/files/patch-moon.c
new file mode 100644
index 000000000000..9fdf5936475c
--- /dev/null
+++ b/astro/pngphoon/files/patch-moon.c
@@ -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 )
diff --git a/astro/pngphoon/files/patch-tws.h b/astro/pngphoon/files/patch-tws.h
new file mode 100644
index 000000000000..e4e6e992dfe8
--- /dev/null
+++ b/astro/pngphoon/files/patch-tws.h
@@ -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( );
diff --git a/astro/pngphoon/pkg-descr b/astro/pngphoon/pkg-descr
index 2e0f07f3e4cb..99f51534f4b5 100644
--- a/astro/pngphoon/pkg-descr
+++ b/astro/pngphoon/pkg-descr
@@ -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").
-