COMMENT= GNOME document viewer GNOME_PROJECT= evince GNOME_VERSION= 43.1 MAJ_V= 3.0 SUBST_VARS= MAJ_V SHARED_LIBS += evdocument3 0.2 # 4.0.0 SHARED_LIBS += evview3 0.0 # 3.0.0 CATEGORIES= graphics print MAINTAINER= Antoine Jacoutot # GPLv2 PERMIT_PACKAGE= Yes WANTLIB += atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0 WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gspell-1 WANTLIB += gtk-3 handy-1 intl pango-1.0 pangocairo-1.0 poppler-glib WANTLIB += secret-1 synctex tiff xml2 COMPILER= base-clang ports-gcc base-gcc MODULES= devel/dconf \ devel/meson \ x11/gnome DEBUG_PACKAGES = ${BUILD_PACKAGES} MODGNOME_TOOLS += desktop-file-utils gobject-introspection gi-docgen MODGNOME_TOOLS += gtk-update-icon-cache shared-mime-info BUILD_DEPENDS= devel/gsettings-desktop-schemas # msgfmt: cannot locate ITS rules for evince-pdfdocument.metainfo.xml.in BUILD_DEPENDS += devel/appstream-glib LIB_DEPENDS= print/poppler \ print/texlive/base,-synctex \ textproc/gspell \ x11/gnome/libsecret \ x11/libhandy RUN_DEPENDS= archivers/unrar \ archivers/unzip \ devel/gsettings-desktop-schemas CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" CONFIGURE_ARGS= -Dsystemduserunitdir=no # fix build with clang CFLAGS += -Wno-error=format-nonliteral FLAVORS= light FLAVOR?= .if ${FLAVOR:Mlight} BUILD_DEPENDS += textproc/itstool CONFIGURE_ARGS += -Dcomics=disabled \ -Ddbus=false \ -Ddjvu=disabled \ -Ddvi=disabled \ -Dmultimedia=disabled \ -Dnautilus=false \ -Dthumbnail_cache=disabled \ -Dthumbnailer=false \ -Dxps=disabled WANTLIB += m poppler-glib .else MODGNOME_TOOLS += yelp LIB_DEPENDS += graphics/djvulibre \ multimedia/gstreamer1/plugins-base \ graphics/libgxps \ print/libspectre \ print/texlive/base,-mktexlsr \ x11/gnome/desktop WANTLIB += archive djvulibre gnome-desktop-3 gstreamer-1.0 gstvideo-1.0 WANTLIB += gxps intl kpathsea m spectre # DVI support RUN_DEPENDS += print/texlive/base,-main .endif .include