2011-09-13 08:37:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.64 2011/09/13 12:37:37 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
|
2011-09-12 03:26:18 -04:00
|
|
|
GNOME_VERSION= 3.0.2
|
2010-10-14 10:31:01 -04:00
|
|
|
|
|
|
|
MAJ_V= ${GNOME_VERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
|
|
|
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
|
|
|
|
2011-09-13 08:37:37 -04:00
|
|
|
REVISION-main= 2
|
|
|
|
REVISION-djvu= 1
|
2011-01-06 17:55:31 -05:00
|
|
|
REVISION-dvi= 0
|
2011-09-12 03:26:18 -04:00
|
|
|
REVISION-nautilus=0
|
2010-10-27 07:04:27 -04:00
|
|
|
|
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
|
|
|
|
|
2011-09-12 08:07:24 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
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/gobject-introspection \
|
|
|
|
devel/gsettings-desktop-schemas
|
2008-05-21 18:13:35 -04:00
|
|
|
|
2009-10-13 07:00:39 -04:00
|
|
|
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
|
|
|
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
|
|
|
|
WANTLIB += gmodule-2.0 gobject-2.0 gtk-3 pango-1.0
|
2009-10-13 07:00:39 -04:00
|
|
|
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs
|
2011-09-12 03:26:18 -04:00
|
|
|
WANTLIB += GL Xxf86vm drm xcb-shm
|
|
|
|
WANTLIB += xcb xcb-render z gthread-2.0 cairo-gobject m
|
2009-10-13 07:00:39 -04:00
|
|
|
|
2011-09-12 03:26:18 -04:00
|
|
|
LIB_DEPENDS= x11/gtk+3
|
|
|
|
|
|
|
|
WANTLIB-main= ${WANTLIB} ICE SM c dbus-1 gailutil-3 gdk-x11-2.0 \
|
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 \
|
|
|
|
poppler poppler-glib spectre gnome-keyring \
|
2011-09-12 03:26:18 -04:00
|
|
|
stdc++
|
2011-09-13 08:37:37 -04:00
|
|
|
# we don't need qt3 nor qt4 support in poppler
|
|
|
|
LIB_DEPENDS-main= print/poppler,no_qt,no_qt4 \
|
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-03-25 05:13:43 -04:00
|
|
|
x11/gnome/icon-theme
|
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 \
|
|
|
|
c 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
|
|
|
|
2010-04-20 18:06:50 -04:00
|
|
|
MODGNOME_HELP_FILES= Yes
|
|
|
|
DESKTOP_FILES= Yes
|
2009-10-13 07:00:39 -04:00
|
|
|
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2006-06-18 10:22:26 -04:00
|
|
|
|
2011-04-07 07:30:22 -04:00
|
|
|
# XXX: the libtool wrapper script is passed as argument to g-ir-scanner,
|
|
|
|
# instead of the actual library
|
|
|
|
USE_LIBTOOL= gnu
|
|
|
|
|
2006-06-18 10:22:26 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2009-10-13 07:00:39 -04:00
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
|
2010-10-14 10:31:01 -04:00
|
|
|
--disable-gtk-doc \
|
2008-12-14 14:33:48 -05:00
|
|
|
--disable-static \
|
|
|
|
--disable-comics \
|
2011-04-07 07:30:22 -04:00
|
|
|
--enable-introspection \
|
2009-10-13 07:00:39 -04:00
|
|
|
--enable-nautilus \
|
2007-12-07 15:00:40 -05:00
|
|
|
--enable-djvu \
|
2011-09-12 03:26:18 -04:00
|
|
|
--enable-dvi
|
2008-12-14 14:33:48 -05:00
|
|
|
|
2006-06-18 10:22:26 -04:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2010-05-20 05:57:21 -04:00
|
|
|
MULTI_PACKAGES= -main
|
|
|
|
PSEUDO_FLAVORS= light
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mlight}
|
|
|
|
CONFIGURE_ARGS+= --disable-nautilus \
|
|
|
|
--disable-djvu \
|
|
|
|
--disable-dvi
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES+= -djvu -dvi -nautilus
|
|
|
|
CONFIGURE_ARGS+= --enable-nautilus \
|
|
|
|
--enable-djvu \
|
|
|
|
--enable-dvi
|
|
|
|
.endif
|
|
|
|
|
2006-06-18 10:22:26 -04:00
|
|
|
.include <bsd.port.mk>
|