git: e4df88576373 - main - multimedia/winff: do not try to interact with fppkg.cfg

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 03 Mar 2024 11:36:21 UTC
The branch main has been updated by thierry:

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

commit e4df88576373e2ab3a76f1b0ddb8c1f96fa181b7
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2024-03-03 11:31:08 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-03-03 11:31:08 +0000

    multimedia/winff: do not try to interact with fppkg.cfg
---
 multimedia/winff/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/multimedia/winff/Makefile b/multimedia/winff/Makefile
index 0b4471281513..caead337815b 100644
--- a/multimedia/winff/Makefile
+++ b/multimedia/winff/Makefile
@@ -31,7 +31,7 @@ DESKTOP_ENTRIES=	"${PORTNAME}"	\
 			true
 
 LAZARUS_PROJECT_FILES=	winff.lpr
-LAZBUILD_ARGS=		-d
+LAZBUILD_ARGS=		-d --pcp=${WRKSRC} --scp=${WRKDIR}
 
 WRKSRC=		${WRKDIR}/${_PORTNAME}-${_PORTNAME}-${PORTVERSION}
 BUILD_WRKSRC=	${WRKSRC}/${_PORTNAME}
@@ -49,6 +49,9 @@ pre-configure:
 	${REINPLACE_CMD} -e 's|/usr/bin/|${LOCALBASE}/bin/|g' ${BUILD_WRKSRC}/${fp}
 .endfor
 
+pre-build:
+	${CP} -p ${LOCALBASE}/etc/fppkg.cfg ${WRKDIR}
+
 do-install:
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME:tl} ${STAGEDIR}${PREFIX}/bin
 	${MKDIR} ${STAGEDIR}${DATADIR}/languages