# $OpenBSD: Makefile,v 1.34 2020/11/11 09:13:11 benoit Exp $

COMMENT=	cross-platform gettext catalogs (PO-files) editor

V=		2.4.2
DISTNAME=	poedit-${V}
CATEGORIES=	devel

HOMEPAGE=	https://www.poedit.net/

MASTER_SITES=	https://github.com/vslavik/poedit/releases/download/v${V}-oss/

# MIT
PERMIT_PACKAGE=	Yes

WANTLIB += c m pthread ${COMPILER_LIBCXX}
WANTLIB += atk-1.0 boost_regex-mt boost_system boost_thread-mt
WANTLIB += cairo cairo-gobject enchant-2 gdk-3 gdk_pixbuf-2.0
WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3 gtkspell3-3 harfbuzz icudata
WANTLIB += icui18n icuuc intl lucene++ pango-1.0 pangocairo-1.0
WANTLIB += wx_gtk3u_stc-3.0 wx_baseu-3.0 wx_baseu_net-3.0
WANTLIB += wx_baseu_xml-3.0 wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
WANTLIB += wx_gtk3u_html-3.0 wx_gtk3u_xrc-3.0

COMPILER=	base-clang ports-gcc base-gcc

RUN_DEPENDS=	devel/desktop-file-utils \
		devel/gettext,-tools \
		x11/gtk+3,-guic
LIB_DEPENDS=	textproc/gtkspell3 \
		textproc/luceneplusplus \
		x11/wxWidgets>=2.6.3

CONFIGURE_STYLE=gnu

.include <bsd.port.mk>
