openbsd-ports/graphics/evince/Makefile

112 lines
2.9 KiB
Makefile
Raw Normal View History

2014-08-10 07:57:05 -04:00
# $OpenBSD: Makefile,v 1.114 2014/08/10 11:57:05 jasper Exp $
SHARED_ONLY= Yes
2011-03-26 11:05:31 -04:00
COMMENT-main= viewer for multiple document formats
COMMENT-dvi= evince document viewer backend for dvi documents
COMMENT-nautilus= evince plugin for nautilus
GNOME_PROJECT= evince
2014-08-10 07:57:05 -04:00
GNOME_VERSION= 3.12.2
PKGNAME-main= ${DISTNAME}
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
PKGNAME-nautilus= nautilus-evince-${GNOME_VERSION}
2011-09-27 09:14:00 -04:00
MAJ_V= 3.0
SUBST_VARS= MAJ_V
CATEGORIES= graphics print
2013-09-26 12:06:47 -04:00
SHARED_LIBS += evdocument3 0.2 # 4.0
SHARED_LIBS += evview3 0.0 # 3.0
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MODULES= devel/gettext \
x11/gnome \
2011-03-25 05:13:43 -04:00
devel/dconf
2010-10-18 17:50:38 -04:00
USE_GROFF = Yes
BUILD_DEPENDS= devel/gsettings-desktop-schemas
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes gtk-3 pango-1.0
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig
WANTLIB += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs
WANTLIB += xcb-shm xcb xcb-render z gthread-2.0 cairo-gobject m ffi
WANTLIB += atk-bridge-2.0 atspi harfbuzz
WANTLIB += gmodule-2.0 graphite2
MODGNOME_TOOLS += desktop-file-utils gobject-introspection yelp
MODGNOME_TOOLS += gtk-update-icon-cache shared-mime-info
2011-09-20 16:51:51 -04:00
LIB_DEPENDS= x11/gtk+3
2011-12-05 18:01:30 -05:00
WANTLIB-main= ${WANTLIB} ICE SM c dbus-1 gailutil-3 \
2013-04-01 06:33:59 -04:00
gs gcrypt gpg-error stdc++ secret-1 \
jpeg pthread tiff xml2 lcms2 openjpeg \
poppler poppler-glib spectre avahi-common \
djvulibre
LIB_DEPENDS-main= print/poppler \
2010-11-17 03:05:12 -05:00
print/libspectre \
graphics/djvulibre \
${LIB_DEPENDS}
RUN_DEPENDS-main= ${RUN_DEPENDS} \
2013-04-01 06:33:59 -04:00
archivers/unrar \
archivers/unzip \
devel/gsettings-desktop-schemas \
2013-10-15 05:43:53 -04:00
print/ghostscript/gnu
WANTLIB-dvi= ${WANTLIB} gs evdocument3 kpathsea spectre ICE SM \
jpeg avahi-common dbus-1 pthread
LIB_DEPENDS-dvi= ${LIB_DEPENDS} \
2010-11-17 03:05:12 -05:00
${BASE_PKGPATH} \
print/texlive/base \
print/libspectre
2013-10-15 05:43:53 -04:00
RUN_DEPENDS-dvi=${MODGETTEXT_RUN_DEPENDS}
2012-09-28 07:44:52 -04:00
WANTLIB-nautilus= ${WANTLIB} gthread-2.0 nautilus-extension evdocument3 \
ICE SM dbus-1 pthread
2010-11-17 03:05:12 -05:00
LIB_DEPENDS-nautilus= ${BASE_PKGPATH} \
${LIB_DEPENDS} \
2010-11-17 03:05:12 -05:00
x11/gnome/nautilus
2013-10-15 05:43:53 -04:00
RUN_DEPENDS-nautilus=${MODGETTEXT_RUN_DEPENDS}
CONFIGURE_STYLE=gnu
MODGNOME_CPPFLAGS=${CFLAGS}
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
MULTI_PACKAGES= -main -dvi -nautilus
PSEUDO_FLAVORS= no_dvi no_nautilus light
FLAVOR?=
2011-11-18 07:37:19 -05:00
.if ${FLAVOR:Mlight}
FLAVOR += no_dvi no_nautilus
.endif
2011-11-18 07:37:19 -05:00
.include <bsd.port.arch.mk>
.for s in -nautilus -dvi
2011-11-18 07:37:19 -05:00
. if ${BUILD_PACKAGES:M$s}
CONFIGURE_ARGS+= --enable$s
. else
CONFIGURE_ARGS+= --disable$s
. endif
.endfor
2012-09-29 09:14:04 -04:00
post-install:
# This will fail if no_nautilus is found in FLAVOR, so make sure we don't
# do it if it is.
.if ${BUILD_PACKAGES:M-nautilus}
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>