openbsd-ports/graphics/evince/Makefile

103 lines
2.8 KiB
Makefile
Raw Normal View History

2019-05-08 08:55:52 -04:00
# $OpenBSD: Makefile,v 1.168 2019/05/08 12:55:52 jasper Exp $
COMMENT= GNOME document viewer
2014-10-15 09:12:46 -04:00
GNOME_PROJECT= evince
2019-05-08 08:55:52 -04:00
GNOME_VERSION= 3.32.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_CDROM= Yes
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
WANTLIB += poppler-glib secret-1 tiff xcb xcb-render xcb-shm xml2
WANTLIB += z aspell enchant-2 gspell-1 synctex
COMPILER = base-clang ports-gcc base-gcc
2014-10-15 09:12:46 -04:00
MODULES= devel/dconf \
x11/gnome
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
2015-10-25 07:30:32 -04:00
LIB_DEPENDS= multimedia/gstreamer1/plugins-base \
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_STYLE= gnu
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
# 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=""
# fix build with clang
CFLAGS += -Wno-error=format-nonliteral
FLAVORS= light
FLAVOR?=
.if ${FLAVOR:Mlight}
BUILD_DEPENDS += textproc/itstool
CONFIGURE_ARGS += --disable-dbus \
--disable-libgnome-desktop \
--disable-nautilus \
--disable-thumbnailer \
--disable-djvu \
--disable-dvi \
--disable-comics \
--disable-xps
.else
MODGNOME_TOOLS += yelp
LIB_DEPENDS += graphics/djvulibre \
graphics/libgxps \
print/libspectre \
print/texlive/base,-mktexlsr \
2019-01-06 08:54:15 -05:00
x11/gnome/desktop \
x11/gnome/nautilus
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: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
2012-09-29 09:14:04 -04:00
post-install:
.if ! ${FLAVOR:Mlight}
rm ${PREFIX}/lib/nautilus/extensions-${MAJ_V}/*.{a,la}
.endif
rm ${PREFIX}/lib/evince/4/backends/*.{a,la}
2012-09-29 09:14:04 -04:00
.include <bsd.port.mk>