poedit has two optional dependencies that we don't have packaged: - cld2 for automatic language recognition - C++REST SDK for Crowdin integration
upstream seems to care a lot about these two optional deps: when you build poedit the configure scripts goes out of his way to print a warning banner about the missing optional deps and how it's suggested to build poedit with those in. However, I don't have a need for those and they have their own issues. cld2 is an obscenity from the building pov; don't look into it if you're faint of heart. It's also fundamentally unmaintained. C++REST is in better shape but upstream (microsoft) is not interested in it anymore and it's in maintainance mode. New projects are discouraged to use it but it still receive security fixes (should at least.) So... I'm not sure what to do. I'd like to hear from some existing poedit users if they're interested in these functionalities and if they work (tests passes but I can't properly run test.) I'm attaching the new ports for those, plus a diff for poedit to correctly build with these two optional deps. To test, extract cpprest.tar.gz in /usr/ports/net and cld2.tar.gz in /usr/ports/textproc. Then, apply the diff for devel/poedit, build and install the package. Index: Makefile =================================================================== RCS file: /home/cvs/ports/devel/poedit/Makefile,v retrieving revision 1.40 diff -u -p -r1.40 Makefile --- Makefile 8 Jun 2022 11:04:12 -0000 1.40 +++ Makefile 13 Jun 2022 15:55:29 -0000 @@ -2,6 +2,7 @@ COMMENT= cross-platform gettext catalogs V= 3.1 DISTNAME= poedit-${V} +REVISION= 0 CATEGORIES= devel textproc HOMEPAGE= https://www.poedit.net/ @@ -13,13 +14,14 @@ MASTER_SITES= https://github.com/vslavik # 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 pugixml -WANTLIB += wx_baseu-3.0 wx_baseu_net-3.0 wx_baseu_xml-3.0 wx_gtk3u_adv-3.0 -WANTLIB += wx_gtk3u_core-3.0 wx_gtk3u_xrc-3.0 wx_gtk3u_webview-3.0 +WANTLIB += ${COMPILER_LIBCXX} atk-1.0 boost_iostreams-mt boost_regex-mt +WANTLIB += boost_system boost_thread-mt c cairo cairo-gobject +WANTLIB += cld2 cpprest crypto enchant-2 gdk-3 gdk_pixbuf-2.0 +WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3 gtkspell3-3 harfbuzz +WANTLIB += icudata icui18n icuuc intl lucene++ m pango-1.0 pangocairo-1.0 +WANTLIB += pugixml secret-1 ssl 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_webview-3.0 wx_gtk3u_xrc-3.0 # C++14 COMPILER= base-clang ports-gcc @@ -27,11 +29,18 @@ COMPILER= base-clang ports-gcc RUN_DEPENDS= devel/desktop-file-utils \ devel/gettext,-tools \ x11/gtk+3,-guic -LIB_DEPENDS= textproc/gtkspell3 \ + +LIB_DEPENDS= net/cpprest \ + textproc/cld2 \ + textproc/gtkspell3 \ textproc/luceneplusplus \ textproc/pugixml \ x11/wxWidgets,-webkit +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + CONFIGURE_STYLE=gnu +CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" .include <bsd.port.mk>
cpprest.tar.gz
Description: GNU Zip compressed data
cld2.tar.gz
Description: GNU Zip compressed data