git: b9e97ec819a9 - main - graphics/liblug: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 16 May 2023 15:47:10 UTC
The branch main has been updated by bofh:

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

commit b9e97ec819a9954114a56a222f36305440893187
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-16 15:22:06 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-16 15:46:53 +0000

    graphics/liblug: Unbreak on HEAD
    
    - Add LICENSE=LGPL20
    - Pet portclippy
    - Adopt port
---
 graphics/liblug/Makefile | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/graphics/liblug/Makefile b/graphics/liblug/Makefile
index 14da79c450d8..efdb26426f6a 100644
--- a/graphics/liblug/Makefile
+++ b/graphics/liblug/Makefile
@@ -4,22 +4,34 @@ PORTREVISION=		5
 CATEGORIES=		graphics
 MASTER_SITES=		SUNSITE/libs/graphics
 
-MAINTAINER=		ports@FreeBSD.org
+MAINTAINER=		bofh@FreeBSD.org
 COMMENT=		Multi-format graphics manipulation library
 
+LICENSE=		LGPL20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
 LIB_DEPENDS=		libtiff.so:graphics/tiff
 
-PLIST_FILES=		lib/liblug.a
 USES=			xorg
+USE_LDCONFIG=		yes
 USE_XORG=		x11
+
+MAKEFILE=		Makefile.linux
+
 CFLAGS+=		-Wno-return-type
 
 WRKSRC=			${WRKDIR}/lug
-MAKEFILE=		Makefile.linux
-USE_LDCONFIG=		yes
+
+PLIST_FILES=		lib/liblug.a
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=	-Wno-error=int-conversion
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|-DiTIFF|-DiTIFF -DTIFF_VERSION=TIFF_VERSION_CLASSIC|' \
 		${WRKSRC}/Makefile.linux
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>