freebsd-ports/java/sablevm-classpath/Makefile
Muhammad Moinur Rahman 95274bf4f9 */*: Fix build with llvm16 on 13.2-STABLE
As like as HEAD(14.0-RELEASE) llvm16 was merged in base for 13.2-STABLE
with the OSVERSION 1302507.

- Utilize USE_CXXSTD=c++14 or similar solution where applicable
- Update conditionals to addtionally check for OSVERSION greater than
  1302507 and less than 1400000

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
2023-07-26 02:48:20 +02:00

58 lines
1.5 KiB
Makefile

PORTNAME= sablevm-classpath
PORTVERSION= 1.13
PORTREVISION= 13
CATEGORIES= java devel
MASTER_SITES= SF/sablevm/sablevm/${PORTVERSION}
MAINTAINER= java@FreeBSD.org
COMMENT= Classpath of SableVM
WWW= http://www.sablevm.org/
LICENSE= GPLv2
BROKEN_aarch64= Fails to configure: Endianess not declared
BROKEN_riscv64= Fails to configure: Endianess not declared
BUILD_DEPENDS= jikes:java/jikes
USES= gmake libtool localbase pkgconfig xorg
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
USE_XORG= x11 ice xtst sm
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alsa --disable-dssi
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
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 "
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
post-patch:
@${CP} -f ${WRKSRC}/resource/java/security/classpath.security \
${WRKSRC}/resource/java/security/SableVM.security
.include <bsd.port.mk>