PORTNAME= wordgrinder PORTVERSION= 0.6 CATEGORIES= editors MAINTAINER= vmagerya@gmail.com COMMENT= Simple Unicode-aware console and X11-based word processor WWW= https://cowlark.com/wordgrinder/ BROKEN_FreeBSD_14= Fails to build with llvm16 use of undeclared identifier 'KEY_EVENT' RUN_DEPENDS= ${LUA_REFMODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR} USE_GITHUB= yes GH_ACCOUNT= davidgiven USES= gmake lua:52 ncurses PLIST_FILES= bin/wordgrinder \ share/doc/wordgrinder/README.wg \ man/man1/wordgrinder.1.gz OPTIONS_DEFINE= X11 OPTIONS_DEFAULT=X11 X11_DESC= Support running in an X window in addition to console X11_PLIST_FILES=bin/xwordgrinder X11_USE= xorg=x11,xft X11_USES= pkgconfig xorg X11_ALL_TARGET_OFF=unix post-patch: ${REINPLACE_CMD} \ -e '/hide = /s/@//' \ -e '/cc := gcc/s|gcc|${CC}|' \ -e '/LUA_INCLUDE := /s|= .*|= ${LUA_INCDIR}|' \ -e '/ldflags := /s|=|= -L${LUA_LIBDIR}|' \ -e 's|-llua5.2|-llua-${LUA_VER}|' \ -e 's|$$(hide)lua|$$(hide)${LUA_CMD}|' \ -e '/PREFIX = /d' \ -e '/install /s|$$(PRE|$$(DESTDIR)$$(PRE|' \ -e '/install /s|share/man/man1|man/man1|' \ -e '/NCURSES_CFLAGS :=/s|=.*|=|' \ -e '/NCURSES_LIB :=/s|=.*|= -lncursesw|' \ -e '/X11_CFLAGS :=/s|=.*|= $$(shell pkg-config --cflags x11 xft)|' \ -e '/X11_LIB :=/s|=.*|= $$(shell pkg-config --libs x11 xft)|' \ ${WRKSRC}/Makefile ${REINPLACE_CMD} \ -e '/#include