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