git: 0f2302bb8dce - main - comms/libusbsio: fix installation where ARCH != MACHINE_CPU

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 25 Sep 2024 13:47:28 UTC
The branch main has been updated by pkubaj:

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

commit 0f2302bb8dcef61e84d5a149a84da59c19a7a1e1
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-09-19 23:38:41 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-09-25 13:47:18 +0000

    comms/libusbsio: fix installation where ARCH != MACHINE_CPU
    
    install  -m 0644 /wrkdirs/usr/ports/comms/libusbsio/work/libusbsio-8577280966ee91cab606df5b0c64889be71ce7b9/bin/freebsd_powerpc64le/libusbsio.a /wrkdirs/usr/ports/comms/libusbsio/work/stage/usr/local/lib
    install: /wrkdirs/usr/ports/comms/libusbsio/work/libusbsio-8577280966ee91cab606df5b0c64889be71ce7b9/bin/freebsd_powerpc64le/libusbsio.a: No such file or directory
---
 comms/libusbsio/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/comms/libusbsio/Makefile b/comms/libusbsio/Makefile
index a4b0d240b2e5..84dd21601141 100644
--- a/comms/libusbsio/Makefile
+++ b/comms/libusbsio/Makefile
@@ -22,7 +22,7 @@ GH_TAGNAME=	8577280966ee91cab606df5b0c64889be71ce7b9
 PLIST_FILES=	lib/${PORTNAME}.a lib/${PORTNAME}.so
 
 do-install:
-	${INSTALL_DATA} ${WRKSRC}/bin/${OPSYS:tl}_${ARCH}/${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
-	${INSTALL_LIB} ${WRKSRC}/bin/${OPSYS:tl}_${ARCH}/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_DATA} ${WRKSRC}/bin/${OPSYS:tl}_${MACHINE_CPU}/${PORTNAME}.a ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_LIB} ${WRKSRC}/bin/${OPSYS:tl}_${MACHINE_CPU}/${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib
 
 .include <bsd.port.mk>