git: 0f6d608630e5 - main - astro/fowsr: make the compile respect CFLAGS

From: Alexander Leidinger <netchild_at_FreeBSD.org>
Date: Fri, 13 Jan 2023 11:10:23 UTC
The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0f6d608630e59fb5e1a414f62fe39ec10d6d7714

commit 0f6d608630e59fb5e1a414f62fe39ec10d6d7714
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2023-01-13 11:09:00 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2023-01-13 11:10:20 +0000

    astro/fowsr: make the compile respect CFLAGS
    
    This fixes builds with WITH_PIE enabled.
---
 astro/fowsr/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/astro/fowsr/Makefile b/astro/fowsr/Makefile
index 2cd1091a892a..97de89510d35 100644
--- a/astro/fowsr/Makefile
+++ b/astro/fowsr/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	fowsr
 PORTVERSION=	${FILEVER}
+PORTREVISION=	1
 CATEGORIES=	astro
 
 MAINTAINER=	netchild@FreeBSD.org
@@ -20,7 +21,7 @@ USES=		gmake dos2unix
 PLIST_FILES=	bin/fowsr
 
 post-patch:
-	${REINPLACE_CMD} 's:gcc:${CC}:g' ${WRKSRC}/Makefile
+	${REINPLACE_CMD} 's:gcc:${CC} ${CFLAGS}:g' ${WRKSRC}/Makefile
 	${REINPLACE_CMD} 's:/usr/bin/fowsr:fowsr:g ; s://var//://var/tmp//:g' \
 	    ${WRKSRC}/*.sh ${WRKSRC}/fowsr.c