blob: 2acc1d2985e54892c29ed94cbcd59f2dd70f114a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: options.mk,v 1.6 2013/01/20 00:52:18 riastradh Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.evince
PKG_SUPPORTED_OPTIONS= dbus dvi djvu gconf gdk-pixbuf gnome-keyring
PKG_SUPPORTED_OPTIONS+= scrollkeeper
PKG_SUGGESTED_OPTIONS+= dbus gconf gnome-keyring scrollkeeper
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus/buildlink3.mk"
BUILDLINK_API_DEPENDS.dbus-glib+= dbus-glib>=0.70
.include "../../sysutils/dbus-glib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
PLIST.dbus= yes
.else
CONFIGURE_ARGS+= --disable-dbus
.endif
.if !empty(PKG_OPTIONS:Mdvi)
CONFIGURE_ARGS+= --enable-dvi
PLIST.dvi= yes
GCONF_SCHEMAS+= evince-thumbnailer-dvi.schemas
.include "../../print/kpathsea/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mdjvu)
CONFIGURE_ARGS+= --enable-djvu
PLIST.djvu= yes
GCONF_SCHEMAS+= evince-thumbnailer-djvu.schemas
.include "../../graphics/djvulibre-lib/buildlink3.mk"
.endif
.if !empty(PKG_OPTIONS:Mgconf)
.include "../../devel/GConf/schemas.mk"
CONFIGURE_ARGS+= --with-gconf
GCONF_SCHEMAS+= evince-thumbnailer.schemas
GCONF_SCHEMAS+= evince-thumbnailer-ps.schemas
GCONF_SCHEMAS+= evince-thumbnailer-comics.schemas
PLIST.gconf= yes
.else
CONFIGURE_ARGS+= --without-gconf
CONFIGURE_ARGS+= --disable-schemas-install
.endif
.if !empty(PKG_OPTIONS:Mgdk-pixbuf)
CONFIGURE_ARGS+= --enable-pixbuf
PLIST.gdk-pixbuf= yes
.endif
.if !empty(PKG_OPTIONS:Mgnome-keyring)
.include "../../security/libgnome-keyring/buildlink3.mk"
CONFIGURE_ARGS+= --with-keyring
.else
CONFIGURE_ARGS+= --without-keyring
.endif
.if !empty(PKG_OPTIONS:Mscrollkeeper)
.include "../../mk/omf-scrollkeeper.mk"
CONFIGURE_ARGS+= --enable-scrollkeeper
.else
CONFIGURE_ARGS+= --disable-scrollkeeper
.endif
|