git: 5d9d9b114e0e - main - lang/gcc13: Fix libisl.so linking

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Wed, 12 Mar 2025 14:31:20 UTC
The branch main has been updated by salvadore:

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

commit 5d9d9b114e0e5df1ca806d9f00c1d86e7e7819e2
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2025-03-12 09:36:24 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2025-03-12 14:30:52 +0000

    lang/gcc13: Fix libisl.so linking
    
    Fix linking with libisl.so depending on GRAPHITE option, which is now
    implemented through options helpers.
    
    Co-authored-by: Gerald Pfeifer <gerald@FreeBSD.org>
    
    PR:             276070
    Reported by:    Ivan Rozhuk <rozhuk.im@gmail.com>
---
 lang/gcc13/Makefile | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/lang/gcc13/Makefile b/lang/gcc13/Makefile
index a213be8912d7..039e857a26c3 100644
--- a/lang/gcc13/Makefile
+++ b/lang/gcc13/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gcc
 PORTVERSION=	13.3.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang
 MASTER_SITES=	GCC
 PKGNAMESUFFIX=	${SUFFIX}
@@ -65,6 +65,9 @@ CFLAGS:=	${CFLAGS:S/mcpu=g/mcpu=G/}
 CXXFLAGS:=	${CFLAGS:S/mcpu=g/mcpu=G/}
 .endif
 
+GRAPHITE_LIB_DEPENDS=          libisl.so:devel/isl
+GRAPHITE_CONFIGURE_WITH+=      isl
+
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == amd64
@@ -132,11 +135,6 @@ INFO+=		gcc${SUFFIX}/libquadmath \
 SUB_FILES=	pkg-message
 SUB_LIST+=	TARGLIB=${TARGLIB}
 
-.if ${PORT_OPTIONS:MGRAPHITE}
-LIB_DEPENDS+=	libisl.so:devel/isl
-CONFIGURE_ARGS+=--with-isl=${LOCALBASE}
-.endif
-
 CONFIGURE_ARGS+=--enable-languages=${LANGUAGES}
 
 pre-everything::