summaryrefslogtreecommitdiff
path: root/x11/yad/Makefile
blob: 73fde5a0b424dc554152d2df33a6ba8a765fe538 (plain) (blame)
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
PORTNAME=	yad
PORTVERSION=	7.3
PORTREVISION=	1
DISTVERSIONPREFIX=	v
CATEGORIES=	x11 gnome

MAINTAINER=	danilo@FreeBSD.org
COMMENT=	Display GNOME dialogs from the command line

LICENSE=	GPLv3

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2
RUN_DEPENDS=	${LOCALBASE}/lib/X11/rgb.txt:x11/rgb

USES=		autoreconf gettext gnome gmake pkgconfig

USE_GNOME=	cairo gtk30 intltool
GNU_CONFIGURE=	yes
CONFIGURE_ENV+=	DATADIRNAME=share
CONFIGURE_ARGS+=	--with-rgb=${LOCALBASE}/lib/X11/rgb.txt
GLIB_SCHEMAS=	yad.gschema.xml

USE_GITHUB=	yes
GH_ACCOUNT=	v1cont

OPTIONS_DEFINE=	HTML ICONBROWSER NLS PFD GTKSOURCEVIEW SPELL
HTML_DESC=		Build with HTML widget
ICONBROWSER_DESC=	Build YAD icon browser
PFD_DESC=		Build PFD fontnames transformation utility
GTKSOURCEVIEW_DESC=	Build with GtkSourceView support
SPELL_DESC=		Build with Spell check support
OPTIONS_DEFAULT=	SPELL
OPTIONS_SUB=	yes

HTML_CONFIGURE_ENABLE=	html
HTML_LIB_DEPENDS=	libwebkit2gtk-4.0.so:www/webkit2-gtk3 \
			libsoup-2.4.so:devel/libsoup \
			libjavascriptcoregtk-4.0.so:www/webkit2-gtk3

ICONBROWSER_CONFIGURE_ENABLE=	icon-browser

PFD_CONFIGURE_ENABLE=	pfd

GTKSOURCEVIEW_CONFIGURE_ENABLE=	sourceview
GTKSOURCEVIEW_USE=	GNOME=gtksourceview3

SPELL_CONFIGURE_ENABLE=	spell
SPELL_LIB_DEPENDS=	libgspell-1.so:textproc/gspell \
			libenchant-2.so:textproc/enchant2

.include <bsd.port.mk>