2019-05-08 08:55:52 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.168 2019/05/08 12:55:52 jasper Exp $
|
2006-06-18 10:22:26 -04:00
|
|
|
|
2014-10-31 19:05:36 -04:00
|
|
|
COMMENT= GNOME document viewer
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2014-10-15 09:12:46 -04:00
|
|
|
GNOME_PROJECT= evince
|
2019-05-08 08:55:52 -04:00
|
|
|
GNOME_VERSION= 3.32.0
|
2017-07-13 08:25:52 -04:00
|
|
|
|
2014-10-15 09:12:46 -04:00
|
|
|
MAJ_V= 3.0
|
|
|
|
SUBST_VARS= MAJ_V
|
2008-12-14 14:33:48 -05:00
|
|
|
|
2013-09-26 12:06:47 -04:00
|
|
|
SHARED_LIBS += evdocument3 0.2 # 4.0
|
2011-09-12 03:26:18 -04:00
|
|
|
SHARED_LIBS += evview3 0.0 # 3.0
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2014-10-31 19:05:36 -04:00
|
|
|
CATEGORIES= graphics print
|
|
|
|
|
2014-10-15 09:12:46 -04:00
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
|
|
|
|
Antoine Jacoutot <ajacoutot@openbsd.org>
|
2009-04-06 12:15:13 -04:00
|
|
|
|
2008-05-21 18:13:35 -04:00
|
|
|
# GPLv2
|
2006-06-18 10:22:26 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2019-01-03 10:45:17 -05:00
|
|
|
WANTLIB += ${COMPILER_LIBCXX} X11 Xcomposite Xcursor Xdamage Xext
|
|
|
|
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0
|
|
|
|
WANTLIB += c cairo cairo-gobject epoxy expat ffi fontconfig freetype
|
|
|
|
WANTLIB += fribidi gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0
|
|
|
|
WANTLIB += gmodule-2.0 gobject-2.0 gpg-error graphite2 gstbase-1.0
|
|
|
|
WANTLIB += gstreamer-1.0 gstvideo-1.0 gthread-2.0 gtk-3 harfbuzz
|
|
|
|
WANTLIB += iconv intl jpeg lcms2 lzma m openjp2 orc-0.4 pango-1.0
|
2019-05-08 08:55:52 -04:00
|
|
|
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png poppler
|
2019-01-03 10:45:17 -05:00
|
|
|
WANTLIB += poppler-glib secret-1 tiff xcb xcb-render xcb-shm xml2
|
2019-02-13 13:15:55 -05:00
|
|
|
WANTLIB += z aspell enchant-2 gspell-1 synctex
|
2009-10-13 07:00:39 -04:00
|
|
|
|
2018-10-24 10:27:57 -04:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
|
2014-10-15 09:12:46 -04:00
|
|
|
MODULES= devel/dconf \
|
|
|
|
x11/gnome
|
|
|
|
|
2015-07-17 12:26:47 -04:00
|
|
|
MODGNOME_TOOLS += desktop-file-utils gobject-introspection
|
2014-10-15 09:48:21 -04:00
|
|
|
MODGNOME_TOOLS += gtk-update-icon-cache shared-mime-info
|
2014-10-15 09:12:46 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= devel/gsettings-desktop-schemas
|
|
|
|
|
2015-10-25 07:30:32 -04:00
|
|
|
LIB_DEPENDS= multimedia/gstreamer1/plugins-base \
|
2014-11-07 07:52:21 -05:00
|
|
|
print/poppler \
|
2019-01-06 08:54:15 -05:00
|
|
|
textproc/gspell \
|
2015-10-13 13:18:29 -04:00
|
|
|
x11/gnome/libsecret \
|
2019-02-13 13:15:55 -05:00
|
|
|
x11/gtk+3 \
|
|
|
|
print/texlive/base,-synctex
|
2014-10-15 09:12:46 -04:00
|
|
|
|
2014-10-31 19:05:36 -04:00
|
|
|
RUN_DEPENDS= archivers/unrar \
|
2014-10-15 09:12:46 -04:00
|
|
|
archivers/unzip \
|
2018-09-03 15:56:34 -04:00
|
|
|
devel/gsettings-desktop-schemas
|
2014-10-15 09:12:46 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
2014-10-31 19:05:36 -04:00
|
|
|
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
|
2008-12-14 14:33:48 -05:00
|
|
|
|
2014-10-15 06:12:37 -04:00
|
|
|
# modern browsers can already display PDF
|
2014-10-15 04:50:23 -04:00
|
|
|
CONFIGURE_ARGS += --disable-browser-plugin
|
|
|
|
|
2016-04-25 10:41:31 -04:00
|
|
|
# Not much point in installing systemd service files
|
|
|
|
FAKE_FLAGS += systemd_user_in_files=""
|
|
|
|
|
2017-04-23 17:45:58 -04:00
|
|
|
# fix build with clang
|
|
|
|
CFLAGS += -Wno-error=format-nonliteral
|
|
|
|
|
2014-10-31 19:05:36 -04:00
|
|
|
FLAVORS= light
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:Mlight}
|
2015-07-17 12:26:47 -04:00
|
|
|
BUILD_DEPENDS += textproc/itstool
|
2014-10-31 19:05:36 -04:00
|
|
|
CONFIGURE_ARGS += --disable-dbus \
|
|
|
|
--disable-libgnome-desktop \
|
|
|
|
--disable-nautilus \
|
|
|
|
--disable-thumbnailer \
|
|
|
|
--disable-djvu \
|
|
|
|
--disable-dvi \
|
|
|
|
--disable-comics \
|
|
|
|
--disable-xps
|
|
|
|
.else
|
2015-07-17 12:26:47 -04:00
|
|
|
MODGNOME_TOOLS += yelp
|
2014-10-31 19:05:36 -04:00
|
|
|
LIB_DEPENDS += graphics/djvulibre \
|
|
|
|
graphics/libgxps \
|
2019-01-03 10:45:17 -05:00
|
|
|
print/libspectre \
|
2018-07-01 05:00:36 -04:00
|
|
|
print/texlive/base,-mktexlsr \
|
2019-01-06 08:54:15 -05:00
|
|
|
x11/gnome/desktop \
|
2014-10-31 19:05:36 -04:00
|
|
|
x11/gnome/nautilus
|
2019-01-03 10:45:17 -05:00
|
|
|
WANTLIB += ICE SM avahi-common dbus-1 gmp gs hogweed idn2 nettle
|
|
|
|
WANTLIB += p11-kit spectre tasn1 unistring zstd
|
|
|
|
WANTLIB += archive bz2 djvulibre gxps kpathsea
|
2019-01-06 08:54:15 -05:00
|
|
|
WANTLIB += nautilus-extension crypto lz4 gnome-desktop-3
|
2018-07-01 05:00:36 -04:00
|
|
|
|
2018-07-01 05:25:59 -04:00
|
|
|
# XXX not sure that's needed automatic conversion
|
2018-07-01 05:00:36 -04:00
|
|
|
RUN_DEPENDS += print/texlive/base,-main
|
2014-10-31 19:05:36 -04:00
|
|
|
.endif
|
2011-11-18 07:37:19 -05:00
|
|
|
|
2012-09-29 09:14:04 -04:00
|
|
|
post-install:
|
2014-10-31 19:05:36 -04:00
|
|
|
.if ! ${FLAVOR:Mlight}
|
2014-04-01 09:21:44 -04:00
|
|
|
rm ${PREFIX}/lib/nautilus/extensions-${MAJ_V}/*.{a,la}
|
2014-10-31 19:05:36 -04:00
|
|
|
.endif
|
2014-04-01 09:21:44 -04:00
|
|
|
rm ${PREFIX}/lib/evince/4/backends/*.{a,la}
|
2012-09-29 09:14:04 -04:00
|
|
|
|
2006-06-18 10:22:26 -04:00
|
|
|
.include <bsd.port.mk>
|