openbsd-ports/graphics/evince/Makefile

127 lines
3.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.79 2012/06/15 08:32:16 ajacoutot Exp $
SHARED_ONLY= Yes
2011-03-26 11:05:31 -04:00
COMMENT-main= viewer for multiple document formats
COMMENT-djvu= evince document viewer backend for djvu documents
COMMENT-dvi= evince document viewer backend for dvi documents
COMMENT-nautilus= evince plugin for nautilus
GNOME_PROJECT= evince
2012-03-29 03:03:30 -04:00
GNOME_VERSION= 3.4.0
2011-09-27 09:14:00 -04:00
MAJ_V= 3.0
SUBST_VARS= MAJ_V
CATEGORIES= graphics print
2010-06-21 15:15:54 -04:00
PKGNAME-main= ${DISTNAME}
PKGNAME-djvu= evince-djvu-${GNOME_VERSION}
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
PKGNAME-nautilus= nautilus-evince-${GNOME_VERSION}
REVISION-main= 0
SHARED_LIBS += evdocument3 0.0 # 3.0
SHARED_LIBS += evview3 0.0 # 3.0
HOMEPAGE= http://www.gnome.org/projects/evince/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_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= x11/gnome/icon-theme \
devel/gsettings-desktop-schemas
2011-12-05 18:01:30 -05:00
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes drm stdc++
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
2011-12-05 18:01:30 -05:00
WANTLIB += gmodule-2.0 gobject-2.0 gtk-3 pango-1.0 Xau Xdmcp Xxf86vm
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
MODGNOME_TOOLS= goi yelp
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 \
2010-10-01 05:13:12 -04:00
gnome-keyring gs gcrypt gpg-error \
jpeg pthread tiff xml2 lcms openjpeg \
2011-12-05 18:01:30 -05:00
poppler poppler-glib spectre gnome-keyring
LIB_DEPENDS-main= print/poppler \
2010-11-17 03:05:12 -05:00
print/libspectre \
x11/gnome/libgnome-keyring \
${LIB_DEPENDS}
RUN_DEPENDS-main= ${RUN_DEPENDS} \
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}
WANTLIB-djvu= ${WANTLIB} jpeg evdocument3 djvulibre
# port-lib-depends-check misses these ones because the depending lib
# is under lib/evince/3/backends/
# we don't need qt3 support in djvulibre, hence no_x11
LIB_DEPENDS-djvu= ${LIB_DEPENDS} \
2010-11-17 03:05:12 -05:00
${BASE_PKGPATH} \
graphics/djvulibre,no_x11
WANTLIB-dvi= ${WANTLIB} gs evdocument3 kpathsea spectre ICE SM \
2011-12-05 18:01:30 -05:00
jpeg
# port-lib-depends-check misses these ones because the depending lib
# is under lib/evince/3/backends/
LIB_DEPENDS-dvi= ${LIB_DEPENDS} \
2010-11-17 03:05:12 -05:00
${BASE_PKGPATH} \
print/texlive/base \
print/libspectre
WANTLIB-nautilus= ${WANTLIB} gthread-2.0 nautilus-extension evdocument3
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
RUN_DEPENDS-nautilus=
2011-12-03 15:30:09 -05:00
MODGNOME_DESKTOP_FILE= Yes
MODGNOME_ICON_CACHE= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+= --disable-static \
2011-11-18 07:37:19 -05:00
--disable-comics
MODGNOME_CPPFLAGS=${CFLAGS}
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
2011-11-18 07:37:19 -05:00
MULTI_PACKAGES= -main -djvu -dvi -nautilus
PSEUDO_FLAVORS= no_djvu no_dvi no_nautilus light
FLAVOR?=
2011-11-18 07:37:19 -05:00
.if ${FLAVOR:Mlight}
FLAVOR += no_djvu no_dvi no_nautilus
.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
.include <bsd.port.mk>