openbsd-ports/graphics/evince/Makefile
sturm 1b0cf61ea3 missing LIB_DEPENDS on gnome-keyring
unbreak BUILD_DEPENDS
bump PKGNAME
2009-01-08 20:09:33 +00:00

96 lines
2.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.18 2009/01/08 20:09:33 sturm Exp $
SHARED_ONLY= Yes
COMMENT-main= document viewer for multiple document formats
COMMENT-djvu= evince document viewer backend for djvu documents
COMMENT-dvi= evince document viewer backend for dvi documents
GNOME_PROJECT= evince
GNOME_VERSION= 2.24.2
CATEGORIES= graphics print
PKGNAME-main= ${DISTNAME}p2
PKGNAME-djvu= evince-djvu-${GNOME_VERSION}
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
SHARED_LIBS= evbackend 0.0 # .0.0
HOMEPAGE= http://www.gnome.org/projects/evince/
# GPLv2
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
MODULES= devel/gettext \
x11/gnome
BUILD_DEPENDS= ::textproc/rarian \
:gnome-doc-utils-*:x11/gnome/doc-utils \
::x11/gnome/icon-theme
MULTI_PACKAGES= -main -djvu -dvi
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 cairo expat \
fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 \
glib-2.0 glitz gmodule-2.0 gobject-2.0 gtk-x11-2.0 \
m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre \
pixman-1 png xml2 z
WANTLIB-main= ${WANTLIB} ICE ORBit-2 SM c dbus-1 dbus-glib-1 \
gconf-2 glade-2.0 gnome-keyring gs gthread-2.0 \
jpeg pthread tiff
LIB_DEPENDS-main= poppler.>=3,poppler-glib.>=3::print/poppler \
spectre::print/libspectre \
gnome-keyring::x11/gnome/keyring \
${MODGETTEXT_LIB_DEPENDS}
RUN_DEPENDS-main= ::textproc/rarian \
:shared-mime-info-*:misc/shared-mime-info \
:ghostscript-*:print/ghostscript/gnu \
::x11/gnome/icon-theme \
${MODGNOME_RUN_DEPENDS}
WANTLIB-djvu= ${WANTLIB} jpeg
LIB_DEPENDS-djvu= evbackend::${BASE_PKGPATH} \
djvulibre::graphics/djvulibre \
${MODGETTEXT_LIB_DEPENDS}
RUN_DEPENDS-djvu= # empty
WANTLIB-dvi= ${WANTLIB} gs spectre
LIB_DEPENDS-dvi= evbackend::${BASE_PKGPATH} \
kpathsea::print/texlive/base \
${MODGETTEXT_LIB_DEPENDS}
RUN_DEPENDS-dvi= # empty
USE_X11= Yes
MODGNOME_HELP_FILES= Yes
DESKTOP_FILES= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-static \
--disable-comics \
--disable-impress \
--enable-nautilus=no \
--disable-schemas-install \
--disable-scrollkeeper \
--enable-djvu \
--enable-dvi \
--enable-pixbuf \
--with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/evince/
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-patch:
@ln -s /usr/bin/true ${WRKDIR}/bin/scrollkeeper-update
.include <bsd.port.mk>