2012-06-15 04:32:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.79 2012/06/15 08:32:16 ajacoutot 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-djvu= evince document viewer backend for djvu documents
|
|
|
|
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
|
2012-03-29 03:03:30 -04:00
|
|
|
GNOME_VERSION= 3.4.0
|
2010-10-14 10:31:01 -04:00
|
|
|
|
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
|
|
|
|
|
2010-06-21 15:15:54 -04:00
|
|
|
PKGNAME-main= ${DISTNAME}
|
2009-08-17 05:57:44 -04:00
|
|
|
PKGNAME-djvu= evince-djvu-${GNOME_VERSION}
|
|
|
|
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
|
2009-10-13 07:00:39 -04:00
|
|
|
PKGNAME-nautilus= nautilus-evince-${GNOME_VERSION}
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2012-06-15 04:32:14 -04:00
|
|
|
REVISION-main= 0
|
|
|
|
|
2011-09-12 03:26:18 -04:00
|
|
|
SHARED_LIBS += evdocument3 0.0 # 3.0
|
|
|
|
SHARED_LIBS += evview3 0.0 # 3.0
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2006-06-18 10:22:26 -04:00
|
|
|
HOMEPAGE= http://www.gnome.org/projects/evince/
|
|
|
|
|
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_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_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
|
|
|
|
2011-04-07 07:30:22 -04:00
|
|
|
BUILD_DEPENDS= x11/gnome/icon-theme \
|
2011-09-12 03:26:18 -04:00
|
|
|
devel/gsettings-desktop-schemas
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2011-12-05 18:01:30 -05:00
|
|
|
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes drm stdc++
|
2009-10-13 07:00:39 -04:00
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig
|
2011-09-12 03:26:18 -04:00
|
|
|
WANTLIB += freetype gdk-3 gdk_pixbuf-2.0 gio-2.0 glib-2.0
|
2011-12-05 18:01:30 -05:00
|
|
|
WANTLIB += gmodule-2.0 gobject-2.0 gtk-3 pango-1.0 Xau Xdmcp Xxf86vm
|
2009-10-13 07:00:39 -04:00
|
|
|
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs
|
2011-10-17 14:40:16 -04:00
|
|
|
WANTLIB += GL xcb-shm xcb xcb-render z gthread-2.0 cairo-gobject m ffi
|
2009-10-13 07:00:39 -04:00
|
|
|
|
2011-09-22 10:23:21 -04:00
|
|
|
MODGNOME_TOOLS= goi yelp
|
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 \
|
2010-10-01 05:13:12 -04:00
|
|
|
gnome-keyring gs gcrypt gpg-error \
|
2010-10-14 10:31:01 -04:00
|
|
|
jpeg pthread tiff xml2 lcms openjpeg \
|
2011-12-05 18:01:30 -05:00
|
|
|
poppler poppler-glib spectre gnome-keyring
|
2011-09-13 09:38:07 -04:00
|
|
|
LIB_DEPENDS-main= print/poppler \
|
2010-11-17 03:05:12 -05:00
|
|
|
print/libspectre \
|
|
|
|
x11/gnome/libgnome-keyring \
|
2011-09-12 03:26:18 -04:00
|
|
|
${LIB_DEPENDS}
|
2009-10-13 07:00:39 -04:00
|
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS} \
|
2011-09-12 03:26:18 -04:00
|
|
|
devel/gsettings-desktop-schemas \
|
2010-11-17 03:05:12 -05:00
|
|
|
misc/shared-mime-info \
|
|
|
|
print/ghostscript/gnu \
|
2011-09-20 16:51:51 -04:00
|
|
|
x11/gnome/icon-theme \
|
|
|
|
${MODGNOME_RUN_DEPENDS_yelp}
|
2009-10-13 07:00:39 -04:00
|
|
|
|
2011-09-12 03:26:18 -04:00
|
|
|
WANTLIB-djvu= ${WANTLIB} jpeg evdocument3 djvulibre
|
2009-08-17 05:57:44 -04:00
|
|
|
# port-lib-depends-check misses these ones because the depending lib
|
2010-10-14 10:31:01 -04:00
|
|
|
# is under lib/evince/3/backends/
|
|
|
|
# we don't need qt3 support in djvulibre, hence no_x11
|
2011-09-12 03:26:18 -04:00
|
|
|
LIB_DEPENDS-djvu= ${LIB_DEPENDS} \
|
2010-11-17 03:05:12 -05:00
|
|
|
${BASE_PKGPATH} \
|
|
|
|
graphics/djvulibre,no_x11
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2011-09-12 03:26:18 -04:00
|
|
|
WANTLIB-dvi= ${WANTLIB} gs evdocument3 kpathsea spectre ICE SM \
|
2011-12-05 18:01:30 -05:00
|
|
|
jpeg
|
2009-08-17 05:57:44 -04:00
|
|
|
# port-lib-depends-check misses these ones because the depending lib
|
2010-10-14 10:31:01 -04:00
|
|
|
# is under lib/evince/3/backends/
|
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
|
2008-12-14 14:33:48 -05:00
|
|
|
|
2011-09-12 03:26:18 -04:00
|
|
|
WANTLIB-nautilus= ${WANTLIB} gthread-2.0 nautilus-extension evdocument3
|
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
|
2009-10-13 07:00:39 -04:00
|
|
|
RUN_DEPENDS-nautilus=
|
2008-12-14 14:33:48 -05:00
|
|
|
|
2011-12-03 15:30:09 -05:00
|
|
|
MODGNOME_DESKTOP_FILE= Yes
|
|
|
|
MODGNOME_ICON_CACHE= Yes
|
2009-10-13 07:00:39 -04:00
|
|
|
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2006-06-18 10:22:26 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2011-09-20 17:04:24 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-static \
|
2011-11-18 07:37:19 -05:00
|
|
|
--disable-comics
|
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
|
|
|
|
2011-11-18 07:37:19 -05:00
|
|
|
MULTI_PACKAGES= -main -djvu -dvi -nautilus
|
|
|
|
PSEUDO_FLAVORS= no_djvu 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}
|
|
|
|
FLAVOR += no_djvu 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>
|
|
|
|
|
|
|
|
.for s in -nautilus -djvu -dvi
|
|
|
|
. if ${BUILD_PACKAGES:M$s}
|
|
|
|
CONFIGURE_ARGS+= --enable$s
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --disable$s
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2006-06-18 10:22:26 -04:00
|
|
|
.include <bsd.port.mk>
|