git: 5354435911f8 - main - audio/linux-rl9-alsa-plugins-oss: add check for !empty(WRKDIRPREFIX)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 15 Nov 2024 09:51:25 UTC
The branch main has been updated by fluffy:

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

commit 5354435911f8a3eef76b444ce69eae08e7ceae8a
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-11-15 09:47:59 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-11-15 09:47:59 +0000

    audio/linux-rl9-alsa-plugins-oss: add check for !empty(WRKDIRPREFIX)
    
    WRKDIRPREFIX is setted for poudriere/out-of-tree builds
    Set guards for plain build from ports withour WRKDIRPREFIX to prevent delete ${LINUXBASE} structure
    
    Sponsored by:   Future Crew, LLC
---
 audio/linux-rl9-alsa-plugins-oss/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/audio/linux-rl9-alsa-plugins-oss/Makefile b/audio/linux-rl9-alsa-plugins-oss/Makefile
index 144460d9037f..f93086b397f7 100644
--- a/audio/linux-rl9-alsa-plugins-oss/Makefile
+++ b/audio/linux-rl9-alsa-plugins-oss/Makefile
@@ -91,6 +91,8 @@ do-install:
 
 ## Pet poudriere's stage-qa
 post-install:
+.if defined(WRKDIRPREFIX) && !empty(WRKDIRPREFIX)
 	${RM} -r ${LINUXBASE}${WRKDIRPREFIX}
+.endif
 
 .include <bsd.port.mk>