Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2023 21:43:15 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 26ca5c86155d - main - graphics/agg: Fix build with llvm16
Message-ID:  <202306252143.35PLhF1i057041@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit 26ca5c86155d5fcef26d4d527bcc19852bb01d89
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 21:23:29 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 21:42:45 +0000

    graphics/agg: Fix build with llvm16
    
    - Pet portclippy
    - Adopt port
    
    Sponsored by:   The FreeBSD Foundation
---
 graphics/agg/Makefile | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/graphics/agg/Makefile b/graphics/agg/Makefile
index 652339897bac..1564f22d1ed3 100644
--- a/graphics/agg/Makefile
+++ b/graphics/agg/Makefile
@@ -6,7 +6,7 @@ MASTER_SITES=	http://distfiles.alpinelinux.org/distfiles/ \
 		http://distfiles.lesslinux.org/ \
 		http://gentoo.netnitco.net/distfiles/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	High Quality Rendering Engine for C++
 WWW=		http://www.antigrain.com/
 
@@ -15,14 +15,22 @@ LICENSE_FILE=	${WRKSRC}/copying
 
 LIB_DEPENDS=	libfreetype.so:print/freetype2
 
-GNU_CONFIGURE=	yes
 USES=		autoreconf cpe gmake libtool pathfix pkgconfig sdl xorg
 CPE_VENDOR=	antigrain
-USE_XORG=	x11
-USE_SDL=	sdl
 USE_LDCONFIG=	yes
+USE_SDL=	sdl
+USE_XORG=	x11
+
+GNU_CONFIGURE=	yes
+
 INSTALL_TARGET=	install-strip
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+=  -Dregister=
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's/_LDFLAGS/_LDADD/' ${WRKSRC}/examples/Makefile.am
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306252143.35PLhF1i057041>