2018-06-29 18:16:08 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.157 2018/06/29 22:16:16 espie 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
|
2018-04-23 15:49:14 -04:00
|
|
|
GNOME_VERSION= 3.28.2
|
2018-06-29 18:16:08 -04:00
|
|
|
REVISION= 1
|
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
|
|
|
|
|
2014-10-31 19:05:36 -04:00
|
|
|
WANTLIB += ICE SM X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi
|
|
|
|
WANTLIB += Xinerama Xrandr Xrender atk-1.0 atk-bridge-2.0 atspi
|
|
|
|
WANTLIB += avahi-common c cairo cairo-gobject dbus-1 expat ffi
|
|
|
|
WANTLIB += fontconfig freetype gcrypt gdk-3 gdk_pixbuf-2.0 gio-2.0
|
|
|
|
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gpg-error graphite2
|
2017-02-22 09:03:57 -05:00
|
|
|
WANTLIB += gs gthread-2.0 gtk-3 harfbuzz jpeg lcms2 lzma m openjp2
|
2014-10-31 19:05:36 -04:00
|
|
|
WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
|
2017-10-23 13:10:49 -04:00
|
|
|
WANTLIB += png poppler poppler-glib pthread secret-1 spectre
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} tiff xcb xcb-render xcb-shm xml2 z unistring
|
2018-04-23 15:49:14 -04:00
|
|
|
WANTLIB += gmp hogweed nettle p11-kit tasn1 epoxy iconv intl
|
2017-02-22 09:03:57 -05:00
|
|
|
WANTLIB += gstbase-1.0 gstreamer-1.0 gstvideo-1.0 orc-0.4 idn2
|
2018-04-23 15:49:14 -04:00
|
|
|
WANTLIB += fribidi
|
2009-10-13 07:00:39 -04:00
|
|
|
|
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 \
|
2015-10-25 03:46:59 -04:00
|
|
|
print/libspectre \
|
2014-11-07 07:52:21 -05:00
|
|
|
print/poppler \
|
2015-10-13 13:18:29 -04:00
|
|
|
x11/gnome/libsecret \
|
|
|
|
x11/gtk+3
|
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 \
|
|
|
|
devel/gsettings-desktop-schemas \
|
|
|
|
print/ghostscript/gnu
|
|
|
|
|
|
|
|
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 \
|
|
|
|
print/texlive/base \
|
|
|
|
x11/gnome/nautilus
|
|
|
|
WANTLIB += archive bz2 djvulibre gnome-desktop-3 gxps kpathsea
|
2018-04-23 15:49:14 -04:00
|
|
|
WANTLIB += nautilus-extension crypto lz4
|
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>
|