Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2023 12:52:49 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: 7b5a22aab9be - main - java/sablevm-classpath: Fix build with llvm16
Message-ID:  <202307241252.36OCqnhB096952@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=7b5a22aab9be731ac84e6ced719c2fd26b7ca52a

commit 7b5a22aab9be731ac84e6ced719c2fd26b7ca52a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-24 11:20:25 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-24 12:52:37 +0000

    java/sablevm-classpath: Fix build with llvm16
    
    - Utilize USES=localbase
    - COnvert to OPTIONSNG
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 java/sablevm-classpath/Makefile | 50 +++++++++++++++++------------------------
 1 file changed, 21 insertions(+), 29 deletions(-)

diff --git a/java/sablevm-classpath/Makefile b/java/sablevm-classpath/Makefile
index 82fb13e06476..b192a207cdfb 100644
--- a/java/sablevm-classpath/Makefile
+++ b/java/sablevm-classpath/Makefile
@@ -15,48 +15,40 @@ BROKEN_riscv64=		Fails to configure: Endianess not declared
 
 BUILD_DEPENDS=	jikes:java/jikes
 
-GNU_CONFIGURE=	yes
-INSTALL_TARGET=	install-strip
-USES=		gmake libtool pkgconfig xorg
+USES=		gmake libtool localbase pkgconfig xorg
 USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
 USE_XORG=	x11 ice xtst sm
 
-PLIST_SUB+=	PORTVERSION=${PORTVERSION}
-
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-alsa --disable-dssi
-CPPFLAGS+=	-I${LOCALBASE}/include
-LIBS+=		-L${LOCALBASE}/lib
+
+INSTALL_TARGET=	install-strip
+
+PLIST_SUB+=	PORTVERSION=${PORTVERSION}
 
 OPTIONS_DEFINE=	CAIRO GTK2 ZIP
 OPTIONS_DEFAULT=GTK2 ZIP
+OPTIONS_SUB=	yes
+
 CAIRO_DESC=	Use Cairo based Graphics2D
 GTK2_DESC=	Enable Gtk+ AWT peer
 ZIP_DESC=	Compress class library
 
-.include <bsd.port.options.mk>
+CAIRO_IMPLIES=	GTK2
+CAIRO_CONFIGURE_ON=	--enable-gtk-cairo
+GTK2_USES=			gnome
+GTK2_USE=	GNOME=gtk20
+GTK2_CONFIGURE_OFF=	--disable-gtk-peer
+ZIP_BUILD_DEPENDS=		zip:archivers/zip
+ZIP_CONFIGURE_ON=	--with-compressed-classes=zip
+ZIP_CONFIGURE_OFF=	--with-compressed-classes=no
+ZIP_PLIST_SUB=		WITHOUT_ZIP="@comment " WITH_ZIP=""
+ZIP_PLIST_SUB_OFF=		WITHOUT_ZIP="" WITH_ZIP="@comment "
 
-.if ${PORT_OPTIONS:MGTK2}
-USES+=			gnome
-USE_GNOME+=		gtk20
-PLIST_SUB+=		GTK2=""
-.if ${PORT_OPTIONS:MCAIRO}
-CONFIGURE_ARGS+=	--enable-gtk-cairo
-.endif
-.else
-CONFIGURE_ARGS+=	--disable-gtk-peer
-PLIST_SUB+=		GTK2="@comment "
-.if ${PORT_OPTIONS:MCAIRO}
-IGNORE=you need to enable the Gtk+ AWT peer in order to use Cairo based Graphics2D.
-.endif
-.endif
+.include <bsd.port.options.mk>
 
-.if ${PORT_OPTIONS:MZIP}
-CONFIGURE_ARGS+=	--with-compressed-classes=zip
-BUILD_DEPENDS+=		zip:archivers/zip
-PLIST_SUB+=		WITHOUT_ZIP="@comment " WITH_ZIP=""
-.else
-CONFIGURE_ARGS+=	--with-compressed-classes=no
-PLIST_SUB+=		WITHOUT_ZIP="" WITH_ZIP="@comment "
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
 .endif
 
 post-patch:



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