diff --git a/x11/foot/Makefile b/x11/foot/Makefile index 864946204c51..1dbbd33d5ce4 100644 --- a/x11/foot/Makefile +++ b/x11/foot/Makefile @@ -1,50 +1,59 @@ PORTNAME= foot DISTVERSION= 1.9.0 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= https://codeberg.org/dnkl/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ MAINTAINER= jbeich@FreeBSD.org COMMENT= Fast, lightweight and minimalistic Wayland terminal emulator LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto \ tllist>=1.0.4:devel/tllist \ wayland-protocols>0:graphics/wayland-protocols LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ libwayland-client.so:graphics/wayland \ libfcft.so:x11-fonts/fcft \ libfontconfig.so:x11-fonts/fontconfig \ libxkbcommon.so:x11/libxkbcommon USES= compiler:c11 meson pkgconfig xorg USE_XORG= pixman WRKSRC= ${WRKDIR}/${PORTNAME} -OPTIONS_DEFINE= DOCS NOTIFY UTF8PROC XDG -OPTIONS_DEFAULT=NOTIFY UTF8PROC XDG +OPTIONS_DEFINE= DOCS LTO NOTIFY UTF8PROC XDG +OPTIONS_DEFAULT=LTO NOTIFY UTF8PROC XDG +OPTIONS_EXCLUDE+= ${CC:T:Mgcc*:C/.+/LTO/} # undefined reference to `xstrdup' +OPTIONS_EXCLUDE_powerpc64= ${"${/usr/bin/ld:L:tA}"==/usr/bin/ld.lld:?LTO:} # LLVM bug 47353 DOCS_BUILD_DEPENDS= scdoc:textproc/scdoc DOCS_MESON_ENABLED= docs +LTO_MESON_TRUE= b_lto +.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld +# --plugin isn't supported by old GNU ld.bfd in base +LTO_LDFLAGS= -fuse-ld=lld +.endif + NOTIFY_RUN_DEPENDS= notify-send:devel/libnotify UTF8PROC_DESC= Grapheme clustering using libutf8proc UTF8PROC_LIB_DEPENDS= libutf8proc.so:textproc/utf8proc UTF8PROC_MESON_ENABLED= grapheme-clustering XDG_DESC= Open files with xdg-open XDG_RUN_DEPENDS= xdg-open:devel/xdg-utils .if exists(/usr/bin/tic) # Add site- suffix to avoid conflict with terminfo-db (part of ncurses) MESON_ARGS+= -Dcustom-terminfo-install-location="${PLIST_FILES:M*terminfo*:[1]:H:H}" PKGMESSAGE= ${NONEXISTENT} PLIST_FILES+= share/site-terminfo/${PORTNAME:C,^.,&/&,} \ share/site-terminfo/${PORTNAME:C,^.,&/&,}-direct .else MESON_ARGS+= -Dterminfo=disabled -Ddefault-terminfo=xterm-256color .endif .include