summaryrefslogtreecommitdiff
path: root/dns/kf5-kdnssd/Makefile
blob: c1fef786ac31b978b74f1ddbe7ad771d9f0596a5 (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

PORTNAME=	kdnssd
DISTVERSION=	${KDE_FRAMEWORKS_VERSION}
CATEGORIES=	dns kde kde-frameworks

MAINTAINER=	kde@FreeBSD.org
COMMENT=	KF5 abstraction to system DNSSD features

USES=		cmake compiler:c++11-lib kde:5 pkgconfig qt:5 tar:xz
USE_KDE=	ecm
USE_QT=		core linguisttools network \
		buildtools_build qmake_build

OPTIONS_DEFAULT=AVAHI
OPTIONS_RADIO=ZEROCONF
OPTIONS_RADIO_ZEROCONF=AVAHI MDNSRESPONDER
ZEROCONF_DESC=	Zeroconf (Bonjour) support

# Add BUILD_DEPENDS to uniquely select one or the other.
AVAHI_BUILD_DEPENDS=		${LOCALBASE}/include/avahi-compat-libdns_sd/dns_sd.h:net/avahi-libdns
AVAHI_LIB_DEPENDS=		libdns_sd.so:net/avahi-libdns
AVAHI_CMAKE_BOOL_OFF=		CMAKE_DISABLE_FIND_PACKAGE_Avahi
AVAHI_USES=	qt:5
AVAHI_USE=			QT=dbus

MDNSRESPONDER_BUILD_DEPENDS=	${LOCALBASE}/include/dns_sd.h:net/mDNSResponder
MDNSRESPONDER_LIB_DEPENDS=	libdns_sd.so:net/mDNSResponder
MDNSRESPONDER_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_DNSSD
MDNSRESPONDER_USES=	qt:5
MDNSRESPONDER_USE=		QT=dbus

.include <bsd.port.mk>