diff --git a/x11/wmenu/Makefile b/x11/wmenu/Makefile index 8764a8ffe766..277d9948eef3 100644 --- a/x11/wmenu/Makefile +++ b/x11/wmenu/Makefile @@ -1,32 +1,38 @@ PORTNAME= wmenu DISTVERSION= 0.1.4 CATEGORIES= x11 wayland MASTER_SITES= https://git.sr.ht/~adnano/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ MAINTAINER= o.hushchenkov@gmail.com COMMENT= Efficient dynamic menu for Wayland WWW= https://sr.ht/~adnano/wmenu/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= scdoc:textproc/scdoc \ wayland-protocols>0:graphics/wayland-protocols LIB_DEPENDS= libwayland-client.so:graphics/wayland \ libxkbcommon.so:x11/libxkbcommon USES= compiler:c11 gnome meson pkgconfig USE_GNOME= cairo pango # XXX Drop after FreeBSD 13.4 EOL around 2026-01-31 # https://cgit.freebsd.org/src/commit/?id=af93fea71038 .if !exists(/usr/include/sys/timerfd.h) LIB_DEPENDS+= libepoll-shim.so:devel/libepoll-shim CPPFLAGS+= `pkg-config --cflags epoll-shim` LDFLAGS+= `pkg-config --libs epoll-shim` .endif PLIST_FILES= bin/wmenu \ man/man1/wmenu.1.gz +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097 +CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE +.endif + .include