git: 6266198345bc - main - deskutils/remind: fix build on FreeBSD 12.

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 20 Oct 2022 20:56:02 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6266198345bc09234456296f97db68d7206ee996

commit 6266198345bc09234456296f97db68d7206ee996
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-10-20 05:52:56 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-10-20 20:52:12 +0000

    deskutils/remind: fix build on FreeBSD 12.
    
    ChangeLog: https://lists.freebsd.org/archives/freebsd-pkg-fallout/2022-October/282238.html
    
    PR:             267196
    Reported by:    fuz@fuz.su (maintainer)
---
 deskutils/remind/Makefile                    |  6 +++---
 deskutils/remind/files/patch-src_Makefile.in |  4 ++--
 deskutils/remind/files/patch-src_funcs.c     | 13 +++++++++++++
 3 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/deskutils/remind/Makefile b/deskutils/remind/Makefile
index 8f3d618e6e64..4320f8fd9948 100644
--- a/deskutils/remind/Makefile
+++ b/deskutils/remind/Makefile
@@ -67,16 +67,16 @@ LOCATION?=	Ottawa
 
 .include <bsd.port.options.mk>
 
-post-patch:
+pre-configure:
 	@${REINPLACE_CMD} \
 	    -e 's#DEFAULT_LATITUDE 39#DEFAULT_LATITUDE ${DEFAULT_LATITUDE}#' \
 	    -e 's#DEFAULT_LONGITUDE 39#DEFAULT_LONGITUDE ${DEFAULT_LONGITUDE}#' \
 	    -e 's#Ottawa#${LOCATION}#' ${WRKSRC}/src/custom.h
 
-post-patch-A4-on:
+pre-configure-A4-on:
 	@${REINPLACE_CMD} -e 's#"Letter", 612, 792#"A4", 595, 842#' ${WRKSRC}/src/custom.h
 
-post-patch-TCLTK-on:
+pre-configure-TCLTK-on:
 	@${REINPLACE_CMD} -e 's,wish,${WISH},' ${WRKSRC}/scripts/tkremind
 
 do-build:
diff --git a/deskutils/remind/files/patch-src_Makefile.in b/deskutils/remind/files/patch-src_Makefile.in
index b97ab8f15d13..3314391e7576 100644
--- a/deskutils/remind/files/patch-src_Makefile.in
+++ b/deskutils/remind/files/patch-src_Makefile.in
@@ -1,8 +1,8 @@
---- src/Makefile.in.orig	2022-02-10 22:15:01 UTC
+--- src/Makefile.in.orig	2022-10-14 15:06:27 UTC
 +++ src/Makefile.in
 @@ -52,8 +52,11 @@ remind: $(REMINDOBJS)
  
- install-nostripped: all
+ install: all
  	-mkdir -p $(DESTDIR)$(bindir) || true
 -	for prog in $(PROGS) $(SCRIPTS) ; do \
 +	for prog in $(PROGS) ; do \
diff --git a/deskutils/remind/files/patch-src_funcs.c b/deskutils/remind/files/patch-src_funcs.c
new file mode 100644
index 000000000000..90e64dbf9c68
--- /dev/null
+++ b/deskutils/remind/files/patch-src_funcs.c
@@ -0,0 +1,13 @@
+--- src/funcs.c.orig	2022-10-19 10:26:29 UTC
++++ src/funcs.c
+@@ -29,9 +29,7 @@
+ 
+ #include <unistd.h>
+ 
+-#ifdef HAVE_SYS_FILE_H
+-#include <sys/file.h>
+-#endif
++#include <fcntl.h>
+ 
+ #include <sys/types.h>
+