astro/fowsr: make the compile respect CFLAGS

This fixes builds with WITH_PIE enabled.
This commit is contained in:
Alexander Leidinger 2023-01-13 12:09:00 +01:00
parent 36d5a0919f
commit 0f6d608630
1 changed files with 2 additions and 1 deletions

View File

@ -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