git: 2e499eeab4df - main - multimedia/mplayer: Fix icon install with GUI build

From: Thomas Zander <riggs_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 20:26:39 UTC
The branch main has been updated by riggs:

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

commit 2e499eeab4df13d21e960beb701af1bb81bac148
Author:     Thomas Zander <riggs@FreeBSD.org>
AuthorDate: 2024-02-25 20:23:13 +0000
Commit:     Thomas Zander <riggs@FreeBSD.org>
CommitDate: 2024-02-25 20:26:37 +0000

    multimedia/mplayer: Fix icon install with GUI build
    
    While on it: Remove additional "-f" passing to ${CP}.
    
    PR:             277295
    Reported by:    m.ne@gmx.net
    MFH:            2024Q1
---
 multimedia/mplayer/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/multimedia/mplayer/Makefile b/multimedia/mplayer/Makefile
index 3e512598535e..126cfd597a82 100644
--- a/multimedia/mplayer/Makefile
+++ b/multimedia/mplayer/Makefile
@@ -90,7 +90,8 @@ post-install:
 .if ${PORT_OPTIONS:MGUI} && ${PORT_OPTIONS:MX11}
 	@${LN} -sf mplayer ${STAGEDIR}${PREFIX}/bin/gmplayer
 	@(cd ${STAGEDIR}${PREFIX}/share/man/man1 && ${LN} -sf mplayer.1.gz gmplayer.1.gz)
-	${CP} -f ${WRKSRC}/etc/mplayer256x256.png ${STAGEDIR}${PREFIX}/share/pixmaps/mplayer.png
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
+	${CP} ${WRKSRC}/etc/mplayer256x256.png ${STAGEDIR}${PREFIX}/share/pixmaps/mplayer.png
 .endif
 
 .include <bsd.port.post.mk>