summaryrefslogtreecommitdiff
path: root/devel/libsoup/Makefile
blob: 82103945bfe9285fa72c8063a759595241b9e1c3 (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
67
68
69
70
71
72
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>

PORTNAME=	libsoup
DISTVERSION=	2.74.0
PORTREVISION=	2
CATEGORIES=	devel gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome

MAINTAINER=	desktop@FreeBSD.org
COMMENT=	SOAP (Simple Object Access Protocol) implementation in C

LICENSE=	LGPL20
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	glib-networking>=2.29.18:net/glib-networking
LIB_DEPENDS=	libgcrypt.so:security/libgcrypt \
		libpsl.so:dns/libpsl
RUN_DEPENDS=	glib-networking>=2.29.18:net/glib-networking

USES=		cpe gettext gnome localbase meson \
		pkgconfig python:3.6+,build sqlite ssl tar:xz
USE_GNOME=	glib20 intlhack introspection:build \
		libxml2
USE_LDCONFIG=	yes
CPE_VENDOR=	gnome

OPTIONS_DEFINE=			SMB
OPTIONS_SINGLE=			GSSAPI
OPTIONS_SINGLE_GSSAPI=		GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE
OPTIONS_DEFAULT=		SMB GSSAPI_${${SSL_DEFAULT} == base :?BASE :NONE}

# Circular dependency samba -> tracker -> libsoup if the SPOTLIGHT
# option is turned on in samba. Since samba is a **runtime** only
# dependency, we can just tell it to be used. However, the Meson
# build does a **build** time check for samba (even though the code does
# a run-time check, too).
#
# Runtime deps still trigger a build / a dependency cycle, so as
# a stopgap, patch it in, don't build anything, and inform the
# user via pkg-message.
# SMB_USES=			samba:run
SMB_MESON_ENABLED=		ntlm

GSSAPI_BASE_USES=		gssapi
GSSAPI_BASE_MESON_ON=		-Dgssapi=enabled -Dkrb5_config=${KRB5CONFIG}

GSSAPI_HEIMDAL_USES=		gssapi:heimdal
GSSAPI_HEIMDAL_MESON_ON=	-Dgssapi=enabled -Dkrb5_config=${KRB5CONFIG}

GSSAPI_MIT_USES=		gssapi:mit
GSSAPI_MIT_MESON_ON=		-Dgssapi=enabled -Dkrb5_config=${KRB5CONFIG}

GSSAPI_NONE_MESON_DISABLED=	gssapi

MESON_ARGS=	-Dvapi=disabled \
		-Dsysprof=disabled \
		-Dtests=false \
		-Dgnome=true \
		-Dbrotli=disabled

LIBVERSION=	1.11.1
PLIST_SUB=	VERSION="2.4" LIBVERSION=${LIBVERSION}

PORTSCOUT=	limitw:1,even

post-patch:
	${REINPLACE_CMD} \
		-e 's+@@NTLM_AUTH@@+${LOCALBASE}/bin/ntlm_auth+' \
		${WRKSRC}/meson.build

.include <bsd.port.mk>