-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathoptions.mk
95 lines (82 loc) · 2.33 KB
/
options.mk
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# $NetBSD: options.mk,v 1.6 2023/12/30 12:57:53 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.atril
PKG_SUPPORTED_OPTIONS= dbus pdf ps xps dvi djvu tiff gdk-pixbuf keyring introspection
PKG_SUGGESTED_OPTIONS= dbus pdf ps xps djvu tiff gdk-pixbuf keyring
.include "../../mk/bsd.options.mk"
PLIST_VARS+= dbus pdf ps xps dvi djvu tiff pixbuf introspection
.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus-glib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
PLIST.dbus= yes
.else
CONFIGURE_ARGS+= --disable-dbus
.endif
.if !empty(PKG_OPTIONS:Mps)
.include "../../print/libspectre/buildlink3.mk"
CONFIGURE_ARGS+= --enable-ps
PLIST.ps= yes
.else
CONFIGURE_ARGS+= --disable-ps
.endif
.if !empty(PKG_OPTIONS:Mxps)
.include "../../print/libgxps/buildlink3.mk"
CONFIGURE_ARGS+= --enable-xps
PLIST.xps= yes
.else
CONFIGURE_ARGS+= --disable-xps
.endif
.if !empty(PKG_OPTIONS:Mpdf)
BUILDLINK_API_DEPENDS.poppler+= poppler>=23.12.0
.include "../../print/poppler/buildlink3.mk"
CONFIGURE_ARGS+= --enable-pdf
PLIST.pdf= yes
.else
CONFIGURE_ARGS+= --disable-pdf
.endif
.if !empty(PKG_OPTIONS:Mdvi)
.include "../../print/kpathsea/buildlink3.mk"
.include "../../fonts/t1lib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dvi
CONFIGURE_ARGS+= --enable-t1lib
PLIST.dvi= yes
.else
CONFIGURE_ARGS+= --disable-dvi
CONFIGURE_ARGS+= --disable-t1lib
.endif
.if !empty(PKG_OPTIONS:Mdjvu)
.include "../../graphics/djvulibre-lib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-djvu
PLIST.djvu= yes
.else
CONFIGURE_ARGS+= --disable-djvu
.endif
.if !empty(PKG_OPTIONS:Mtiff)
.include "../../graphics/tiff/buildlink3.mk"
CONFIGURE_ARGS+= --enable-tiff
PLIST.tiff= yes
.else
CONFIGURE_ARGS+= --disable-tiff
.endif
.if !empty(PKG_OPTIONS:Mgdk-pixbuf)
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
CONFIGURE_ARGS+= --enable-pixbuf
PLIST.pixbuf=yes
.else
CONFIGURE_ARGS+= --disable-pixbuf
.endif
.if !empty(PKG_OPTIONS:Mkeyring)
.include "../../security/libsecret/buildlink3.mk"
CONFIGURE_ARGS+= --with-keyring
.else
CONFIGURE_ARGS+= --without-keyring
.endif
.if !empty(PKG_OPTIONS:Mintrospection)
BUILDLINK_DEPMETHOD.gobject-introspection+= build
.include "../../devel/gobject-introspection/buildlink3.mk"
BUILDLINK_API_DEPENDS.cairo+= cairo>=1.18
.include "../../graphics/cairo/buildlink3.mk"
CONFIGURE_ARGS+= --enable-introspection
PLIST.introspection= yes
.else
CONFIGURE_ARGS+= --disable-introspection
.endif