diff --git a/astro/accrete/Makefile b/astro/accrete/Makefile index daa279fd5a34..ef45ff7024cc 100644 --- a/astro/accrete/Makefile +++ b/astro/accrete/Makefile @@ -1,14 +1,17 @@ PORTNAME= accrete PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Physical simulation of solar system planet formation WWW= https://sourceforge.net/projects/accrete/ +LICENSE= BSD3CLAUSE + MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX=${STAGEDIR}${PREFIX} \ CDEBUG="" COPT="" PLIST_FILES= bin/accrete .include diff --git a/astro/accrete/files/patch-display.c b/astro/accrete/files/patch-display.c new file mode 100644 index 000000000000..73a2e4174462 --- /dev/null +++ b/astro/accrete/files/patch-display.c @@ -0,0 +1,14 @@ +--- display.c.orig 2022-12-31 01:22:36 UTC ++++ display.c +@@ -8,6 +8,11 @@ display_system (void) + + FILE *f; + f = fopen("New.System", "w"); ++ if (f == NULL) ++ { ++ perror("New.System"); ++ exit(1); ++ } + + fprintf(f," SYSTEM CHARACTERISTICS\n"); + fprintf(f,"Mass of central star: %6.3f solar masses\n", stellar_mass_ratio);