freebsd-ports/net/liferea/Makefile
Christoph Moench-Tegeder 3e64af4066 net/liferea: unbreak build
liferea tries to initialize it's graphics backend even when being run
for gobject introspection only - and that causes webkit to crash or
hang when there is no X server or similar available (e.g. during package
build in poudriere). This environment variable makes webkit survive
the package build.

PR:		243680
Submitted by:	v1ne2go
Approved by:	portmgr blanket (trivial and tested build fix)
2020-01-29 21:53:16 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Hye-Shik Chang <perky@FreeBSD.org>
# $FreeBSD$
PORTNAME= liferea
DISTVERSION= 1.12.7
CATEGORIES= net gnome
MASTER_SITES= https://github.com/lwindolf/liferea/releases/download/v${PORTVERSION:S/.r/-rc/}/
MAINTAINER= kwm@FreeBSD.org
COMMENT= Simple RSS/RDF feed reader
LICENSE= GPLv2
BUILD_DEPENDS= gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas
LIB_DEPENDS= libsoup-2.4.so:devel/libsoup \
libwebkit2gtk-4.0.so:www/webkit2-gtk3 \
libpeas-1.0.so:devel/libpeas \
libjson-glib-1.0.so:devel/json-glib
RUN_DEPENDS= gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas \
${PYTHON_PKGNAMEPREFIX}libpeas>=0:devel/py-libpeas@${PY_FLAVOR}
USES= compiler:c++11-lang desktop-file-utils gettext \
gmake gnome libtool localbase \
pathfix pkgconfig python:3.4+ sqlite tar:bzip2
USE_GNOME= cairo dconf:run gtk30 intltool introspection \
libxslt libxml2
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --enable-introspection
# Introspection starts the program, but it may hang or crash-abort
# without an X server because the Webkit compositor tries to initialize
# a graphics backend
MAKE_ENV+= WEBKIT_DISABLE_COMPOSITING_MODE=1
GLIB_SCHEMAS= net.sf.liferea.gschema.xml
INSTALLS_ICONS= yes
.include <bsd.port.mk>