openbsd-ports/graphics/evince/Makefile

87 lines
2.3 KiB
Makefile
Raw Normal View History

2015-05-29 05:40:58 -04:00
# $OpenBSD: Makefile,v 1.129 2015/05/29 09:40:58 jasper Exp $
2014-10-15 09:12:46 -04:00
SHARED_ONLY= Yes
COMMENT= GNOME document viewer
2014-10-15 09:12:46 -04:00
GNOME_PROJECT= evince
2015-05-29 05:40:58 -04:00
GNOME_VERSION= 3.16.1
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 += 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
WANTLIB += gs gthread-2.0 gtk-3 harfbuzz jpeg lcms2 lzma m openjpeg
WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
WANTLIB += png poppler poppler-glib pthread pthread-stubs secret-1
WANTLIB += spectre stdc++ tiff xcb xcb-render xcb-shm xml2 z
2015-04-03 07:55:12 -04:00
WANTLIB += gmp hogweed nettle p11-kit tasn1 epoxy
2014-10-15 09:12:46 -04:00
MODULES= devel/dconf \
devel/gettext \
x11/gnome
MODGNOME_TOOLS += desktop-file-utils gobject-introspection yelp
MODGNOME_TOOLS += gtk-update-icon-cache shared-mime-info
2014-10-15 09:12:46 -04:00
BUILD_DEPENDS= devel/gsettings-desktop-schemas
LIB_DEPENDS= print/libspectre \
print/poppler \
x11/gnome/libsecret
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 \
print/ghostscript/gnu
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
FLAVORS= light
FLAVOR?=
.if ${FLAVOR:Mlight}
CONFIGURE_ARGS += --disable-dbus \
--disable-libgnome-desktop \
--disable-nautilus \
--disable-thumbnailer \
--disable-djvu \
--disable-dvi \
--disable-comics \
--disable-xps
.else
LIB_DEPENDS += graphics/djvulibre \
graphics/libgxps \
print/texlive/base \
x11/gnome/nautilus
WANTLIB += archive bz2 djvulibre gnome-desktop-3 gxps kpathsea
WANTLIB += nautilus-extension
.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>