118 lines
3.0 KiB
Makefile
118 lines
3.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.104 2014/03/27 12:14:31 jasper Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT-main= viewer for multiple document formats
|
|
COMMENT-dvi= evince document viewer backend for dvi documents
|
|
COMMENT-nautilus= evince plugin for nautilus
|
|
|
|
GNOME_PROJECT= evince
|
|
GNOME_VERSION= 3.12.0
|
|
|
|
MAJ_V= 3.0
|
|
SUBST_VARS= MAJ_V
|
|
|
|
CATEGORIES= graphics print
|
|
|
|
PKGNAME-main= ${DISTNAME}
|
|
PKGNAME-dvi= evince-dvi-${GNOME_VERSION}
|
|
PKGNAME-nautilus= nautilus-evince-${GNOME_VERSION}
|
|
|
|
SHARED_LIBS += evdocument3 0.2 # 4.0
|
|
SHARED_LIBS += evview3 0.0 # 3.0
|
|
|
|
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>, \
|
|
Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES= devel/gettext \
|
|
x11/gnome \
|
|
devel/dconf
|
|
|
|
USE_GROFF = Yes
|
|
|
|
BUILD_DEPENDS= devel/gsettings-desktop-schemas
|
|
|
|
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes gtk-3 pango-1.0
|
|
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 gobject-2.0
|
|
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs
|
|
WANTLIB += xcb-shm xcb xcb-render z gthread-2.0 cairo-gobject m ffi
|
|
WANTLIB += atk-bridge-2.0 atspi harfbuzz
|
|
WANTLIB += gmodule-2.0 graphite2
|
|
|
|
MODGNOME_TOOLS= gi yelp
|
|
|
|
LIB_DEPENDS= x11/gtk+3
|
|
|
|
WANTLIB-main= ${WANTLIB} ICE SM c dbus-1 gailutil-3 \
|
|
gs gcrypt gpg-error stdc++ secret-1 \
|
|
jpeg pthread tiff xml2 lcms2 openjpeg \
|
|
poppler poppler-glib spectre avahi-common \
|
|
djvulibre
|
|
LIB_DEPENDS-main= print/poppler \
|
|
print/libspectre \
|
|
graphics/djvulibre \
|
|
${LIB_DEPENDS}
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS} \
|
|
archivers/unrar \
|
|
archivers/unzip \
|
|
devel/gsettings-desktop-schemas \
|
|
print/ghostscript/gnu
|
|
|
|
WANTLIB-dvi= ${WANTLIB} gs evdocument3 kpathsea spectre ICE SM \
|
|
jpeg avahi-common dbus-1 pthread
|
|
LIB_DEPENDS-dvi= ${LIB_DEPENDS} \
|
|
${BASE_PKGPATH} \
|
|
print/texlive/base \
|
|
print/libspectre
|
|
RUN_DEPENDS-dvi=${MODGETTEXT_RUN_DEPENDS}
|
|
|
|
WANTLIB-nautilus= ${WANTLIB} gthread-2.0 nautilus-extension evdocument3 \
|
|
ICE SM dbus-1 pthread
|
|
LIB_DEPENDS-nautilus= ${BASE_PKGPATH} \
|
|
${LIB_DEPENDS} \
|
|
x11/gnome/nautilus
|
|
RUN_DEPENDS-nautilus=${MODGETTEXT_RUN_DEPENDS}
|
|
|
|
MODGNOME_DESKTOP_FILE= Yes
|
|
MODGNOME_ICON_CACHE= Yes
|
|
MODGNOME_MIME_FILE= Yes
|
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS+= --disable-static
|
|
|
|
MODGNOME_CPPFLAGS=${CFLAGS}
|
|
CONFIGURE_ENV= CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
|
|
|
|
MULTI_PACKAGES= -main -dvi -nautilus
|
|
PSEUDO_FLAVORS= no_dvi no_nautilus light
|
|
FLAVOR?=
|
|
.if ${FLAVOR:Mlight}
|
|
FLAVOR += no_dvi no_nautilus
|
|
.endif
|
|
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.for s in -nautilus -dvi
|
|
. if ${BUILD_PACKAGES:M$s}
|
|
CONFIGURE_ARGS+= --enable$s
|
|
. else
|
|
CONFIGURE_ARGS+= --disable$s
|
|
. endif
|
|
.endfor
|
|
|
|
post-install:
|
|
# This will fail if no_nautilus is found in FLAVOR, so make sure we don't
|
|
# do it if it is.
|
|
.if ${BUILD_PACKAGES:M-nautilus}
|
|
rm ${PREFIX}/lib/nautilus/extensions-${MAJ_V}/*.la
|
|
.endif
|
|
rm ${PREFIX}/lib/evince/4/backends/*.la
|
|
|
|
.include <bsd.port.mk>
|