git: 08760e525115 - main - print/dymo-cups-drivers: Fix build on 14

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 18 Aug 2023 07:54:03 UTC
The branch main has been updated by bofh:

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

commit 08760e5251156d56c6195f2edbfb8e15d36f42d1
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 07:50:15 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 07:53:32 +0000

    print/dymo-cups-drivers: Fix build on 14
    
    - Utilize USES=localbase
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 print/dymo-cups-drivers/Makefile | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/print/dymo-cups-drivers/Makefile b/print/dymo-cups-drivers/Makefile
index fee29e9de156..9fb95e67bec1 100644
--- a/print/dymo-cups-drivers/Makefile
+++ b/print/dymo-cups-drivers/Makefile
@@ -13,10 +13,19 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libcupsimage.so:print/cups
 
-WRKSRC=		${WRKDIR}/dymo-cups-drivers-1.4.0.5
+USES=	localbase:ldflags
 
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+
+WRKSRC=		${WRKDIR}/dymo-cups-drivers-1.4.0.5
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CPP=	clang-cpp${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+.endif
 
 .include <bsd.port.mk>