1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/x11/wvkbd/Makefile
Jan Beich 39404973f3 x11/wvkbd: update to 0.9
Changes:	https://github.com/jjsullivan5196/wvkbd/releases/tag/v0.9
Reported by:	GitHub (watch releases)
2022-07-26 23:49:20 +00:00

49 lines
1.4 KiB
Makefile

PORTNAME= wvkbd
DISTVERSIONPREFIX= v
DISTVERSION= 0.9
CATEGORIES= x11 wayland
MAINTAINER= jbeich@FreeBSD.org
COMMENT= On-screen keyboard for wlroots
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
libwayland-client.so:graphics/wayland
USES= gmake gnome pkgconfig
USE_GITHUB= yes
USE_GNOME= cairo pango
GH_ACCOUNT= jjsullivan5196
MAKE_ARGS= VERSION="${DISTVERSIONFULL}"
PLIST_FILES= bin/${PORTNAME}-mobintl \
share/man/man1/${PORTNAME}.1.gz
LDFLAGS+= -Wl,--as-needed # pango deps
pre-everything::
@${ECHO_MSG} "To build ${PORTNAME} with your own config.h set ${PORTNAME:tu}_CONF variable"
@${ECHO_MSG} "either in ${.CURDIR:T}/Makefile.local, make.conf(5), environ(7) or command line e.g.,"
@${ECHO_MSG} "\$$ make install clean ${PORTNAME:tu}_CONF=/path/to/${PORTNAME}/config.h"
post-extract:
# .if exists(...) before bsd.port.mk ignores *_CONF in make.conf(5) and Makefile.local
@if [ -e "${${PORTNAME:tu}_CONF}" ]; then \
${ECHO_MSG} "Creating symlink: config.h -> ${${PORTNAME:tu}_CONF}"; \
${LN} -fs "${${PORTNAME:tu}_CONF}" ${WRKSRC}/config.h; \
fi
post-patch:
@${REINPLACE_CMD} -e '/^PKGS/s/$$/ epoll-shim/' \
-e 's/ xkbcommon//' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e '/^PREFIX/s/=/?=/' \
-e '/^CFLAGS/s/=/+=/' \
${WRKSRC}/config.mk
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}*
.include <bsd.port.mk>