summaryrefslogtreecommitdiff
path: root/devel/cutter/options.mk
blob: 392aa5bb5966ab2af9175d6754435aeff9c175e4 (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
# $NetBSD: options.mk,v 1.5 2019/11/03 10:39:09 rillig Exp $
#

PKG_OPTIONS_VAR=	PKG_OPTIONS.cutter
PKG_SUPPORTED_OPTIONS=	goffice gstreamer gtk2 libsoup pdf
PKG_SUGGESTED_OPTIONS=	#

.include "../../mk/bsd.options.mk"

PLIST_VARS+=	goffice gst gtk pdf soup

###
### PDF support
###
.if !empty(PKG_OPTIONS:Mpdf)
.include "../../devel/pango/buildlink3.mk"
PLIST.pdf=		yes
.endif

###
### goffice support
###
.if !empty(PKG_OPTIONS:Mgoffice)
.include "../../misc/goffice0.8/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-goffice
PLIST.gtk=		yes
PLIST.pdf=		yes
.else
CONFIGURE_ARGS+=	--disable-goffice
.endif

###
### gstreamer support
###
.if !empty(PKG_OPTIONS:Mgstreamer)
.include "../../multimedia/gstreamer1/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-gstreamer
PLIST.gst=		yes
.else
CONFIGURE_ARGS+=	--disable-gstreamer
.endif

###
### gtk2 support
###
.if !empty(PKG_OPTIONS:Mgtk2)
.include "../../x11/gtk2/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-gtktest
PLIST.gtk=		yes
PLIST.pdf=		yes
.else
CONFIGURE_ARGS+=	--disable-gtktest
.endif

###
###
### libsoup support
###
.if !empty(PKG_OPTIONS:Mlibsoup)
.  include "../../net/libsoup/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-libsoup
PLIST.soup=		yes
.else
CONFIGURE_ARGS+=	--disable-libsoup
.endif