openbsd-ports/graphics/evince/Makefile

97 lines
2.3 KiB
Makefile
Raw Normal View History

2020-11-07 05:04:21 -05:00
# $OpenBSD: Makefile,v 1.185 2020/11/07 10:04:21 jasper Exp $
COMMENT= GNOME document viewer
2014-10-15 09:12:46 -04:00
GNOME_PROJECT= evince
2020-11-07 05:04:21 -05:00
GNOME_VERSION= 3.38.0
2014-10-15 09:12:46 -04:00
MAJ_V= 3.0
SUBST_VARS= MAJ_V
2013-09-26 12:06:47 -04:00
SHARED_LIBS += evdocument3 0.2 # 4.0
SHARED_LIBS += evview3 0.0 # 3.0
CATEGORIES= graphics print
2014-10-15 09:12:46 -04:00
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE= Yes
2020-05-20 06:14:26 -04:00
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 intl pango-1.0 pangocairo-1.0 poppler-glib
WANTLIB += secret-1 synctex tiff xml2
2020-07-05 14:52:51 -04:00
COMPILER= base-clang ports-gcc base-gcc
2014-10-15 09:12:46 -04:00
MODULES= devel/dconf \
2020-05-20 06:14:26 -04:00
devel/meson \
2014-10-15 09:12:46 -04:00
x11/gnome
2020-02-10 13:19:45 -05:00
DEBUG_PACKAGES = ${BUILD_PACKAGES}
MODGNOME_TOOLS += desktop-file-utils gobject-introspection
MODGNOME_TOOLS += gtk-update-icon-cache shared-mime-info
2014-10-15 09:12:46 -04:00
BUILD_DEPENDS= devel/gsettings-desktop-schemas
# msgfmt: cannot locate ITS rules for evince-pdfdocument.metainfo.xml.in
BUILD_DEPENDS += devel/appstream-glib
2020-05-20 06:14:26 -04:00
LIB_DEPENDS= print/poppler \
2019-01-06 08:54:15 -05:00
textproc/gspell \
x11/gnome/libsecret \
x11/gtk+3 \
print/texlive/base,-synctex
2014-10-15 09:12:46 -04:00
RUN_DEPENDS= archivers/unrar \
2014-10-15 09:12:46 -04:00
archivers/unzip \
devel/gsettings-desktop-schemas
2014-10-15 09:12:46 -04:00
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
# modern browsers can already display PDF
2020-05-20 06:14:26 -04:00
CONFIGURE_ARGS += -Dbrowser_plugin=false
CONFIGURE_ARGS += -Dt1lib=disabled \
-Dsystemduserunitdir=no \
-Dgtk_doc=false
2014-10-15 04:50:23 -04:00
# fix build with clang
CFLAGS += -Wno-error=format-nonliteral
FLAVORS= light
FLAVOR?=
.if ${FLAVOR:Mlight}
BUILD_DEPENDS += textproc/itstool
2020-05-20 06:14:26 -04:00
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 \
2020-05-20 06:14:26 -04:00
multimedia/gstreamer1/plugins-base \
graphics/libgxps \
print/libspectre \
print/texlive/base,-mktexlsr \
2019-01-06 08:54:15 -05:00
x11/gnome/desktop \
x11/gnome/nautilus
2020-05-20 06:14:26 -04:00
WANTLIB += archive djvulibre gnome-desktop-3 gstreamer-1.0 gstvideo-1.0
WANTLIB += gxps intl kpathsea m nautilus-extension spectre z
2018-07-01 05:25:59 -04:00
# XXX not sure that's needed automatic conversion
RUN_DEPENDS += print/texlive/base,-main
.endif
2011-11-18 07:37:19 -05:00
.include <bsd.port.mk>