diff --git a/x11/hyprcursor/Makefile b/x11/hyprcursor/Makefile index 524e18e138fe..b9f4541f1904 100644 --- a/x11/hyprcursor/Makefile +++ b/x11/hyprcursor/Makefile @@ -1,28 +1,34 @@ PORTNAME= hyprcursor DISTVERSIONPREFIX= v DISTVERSION= 0.1.4 CATEGORIES= x11 MAINTAINER= jbeich@FreeBSD.org COMMENT= Hyprland cursor format, library and utilities WWW= https://github.com/hyprwm/hyprcursor LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libzip.so:archivers/libzip \ libhyprlang.so:devel/hyprlang RUN_DEPENDS= xcur2png:x11/xcur2png USES= compiler:c++11-lib cmake:testing gnome pathfix pkgconfig USE_GITHUB= yes USE_GNOME= cairo librsvg2 GH_ACCOUNT= hyprwm PLIST_SUB= VERSION=${DISTVERSION:C/-.*//} +# XXX Drop after FreeBSD 14.0 EOL around 2025-03-01 +.if exists(/usr/include/c++/v1/__format/format_functions.h) && \ + !exists(/usr/include/c++/v1/__format/write_escaped.h) +CXXFLAGS+= -fexperimental-library +.endif + post-patch: # Respect PREFIX for icons @${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \ ${WRKSRC}/lib${PORTNAME}/${PORTNAME}.cpp .include