COMMENT =		app launcher and fuzzy finder for wayland

V =			1.14.1
DISTNAME=		fuzzel-${V}

DIST_TUPLE=		codeberg dnkl fuzzel ${V} .

CATEGORIES =		wayland

MAINTAINER =		Volker Schlecht <openbsd-ports@schlecht.dev>

# MIT
PERMIT_PACKAGE =	Yes

COMPILER =		base-clang ports-gcc

WANTLIB += c cairo epoll-shim fcft fontconfig m pixman-1 png pthread
WANTLIB += stdthreads wayland-client wayland-cursor xkbcommon

MODULES =		devel/meson

BUILD_DEPENDS =		devel/tllist \
			textproc/scdoc \
			wayland/libinput-openbsd \
			wayland/wayland-protocols \
			x11/gnome/librsvg

LIB_DEPENDS =		devel/libstdthreads \
			devel/epoll-shim \
			graphics/cairo \
			graphics/fcft \
			graphics/png \
			wayland/wayland \
			x11/xkbcommon

WRKDIST =		${WRKDIR}/fuzzel

pre-configure:
	mkdir -p ${WRKSRC}/bld/release && cd ${WRKSRC}/bld/release

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fuzzel
	${INSTALL_DATA} ${WRKSRC}/fuzzel.ini ${PREFIX}/share/examples/fuzzel

.include <bsd.port.mk>

