aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-05-16 15:22:06 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-05-16 15:46:53 +0000
commitb9e97ec819a9954114a56a222f36305440893187 (patch)
tree9960eb5fa7cfb15b61991ca773bc5f4dca1d0436
parent8a33036b89049e9a58bcd069927a8af26bb7c98b (diff)
downloadports-b9e97ec819a9954114a56a222f36305440893187.tar.gz
ports-b9e97ec819a9954114a56a222f36305440893187.zip
-rw-r--r--graphics/liblug/Makefile22
1 files 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>