svn commit: r339879 - head/lang/gnustep-base

David Chisnall theraven at FreeBSD.org
Thu Jan 16 00:27:29 UTC 2014


Author: theraven
Date: Thu Jan 16 00:27:29 2014
New Revision: 339879
URL: http://svnweb.freebsd.org/changeset/ports/339879
QAT: https://qat.redports.org/buildarchive/r339879/

Log:
  Make mDNSResponder and Avahi options, with Avahi as the default.
  
  Submitted by:	Marcus Muller
  Approved by:	bapt (mentor)

Modified:
  head/lang/gnustep-base/Makefile

Modified: head/lang/gnustep-base/Makefile
==============================================================================
--- head/lang/gnustep-base/Makefile	Thu Jan 16 00:01:37 2014	(r339878)
+++ head/lang/gnustep-base/Makefile	Thu Jan 16 00:27:29 2014	(r339879)
@@ -14,11 +14,20 @@ COMMENT=	GNUstep Foundation library
 LICENSE=	GPLv3 LGPL3
 LICENSE_COMB=	multi
 
+OPTIONS_RADIO=		ZEROCONF
+OPTIONS_RADIO_ZEROCONF=	AVAHI MDNS
+OPTIONS_DEFAULT=	AVAHI
+
+NOZEROCONF_DESC=	Disable Zeroconf (Bonjour) support
+AVAHI_DESC?=		Zeroconf via Avahi (preferred)
+MDNS_DESC?=		Zeroconf via Apple's mDNSResponder
+
+.include <bsd.port.options.mk>
+
 LIB_DEPENDS+=	ffi:${PORTSDIR}/devel/libffi
 LIB_DEPENDS+=	xml2.5:${PORTSDIR}/textproc/libxml2
 LIB_DEPENDS+=	xslt.2:${PORTSDIR}/textproc/libxslt
 LIB_DEPENDS+=	gmp.10:${PORTSDIR}/math/gmp
-LIB_DEPENDS+=	dns_sd:${PORTSDIR}/net/mDNSResponder
 LIB_DEPENDS+=	gnutls-openssl.27:${PORTSDIR}/security/gnutls
 LIB_DEPENDS+=	icuuc:${PORTSDIR}/devel/icu
 LIB_DEPENDS+=	objc.4:${PORTSDIR}/lang/libobjc2
@@ -48,6 +57,17 @@ ETCDIR=		${LOCALBASE}/etc
 PLIST_SUB+=	BASEVERSION=${PORTVERSION:C/[.][0-9]*$//1}
 
 NO_STAGE=	yes
+
+.if ${PORT_OPTIONS:MAVAHI}
+CONFIGURE_ARGS+=	--with-zeroconf-api=avahi
+LIB_DEPENDS+=		avahi-client:${PORTSDIR}/net/avahi-app
+.elif ${PORT_OPTIONS:MMDNS}
+CONFIGURE_ARGS+=	--with-zeroconf-api=mdns
+LIB_DEPENDS+=		dns_sd:${PORTSDIR}/net/mDNSResponder
+.else
+CONFIGURE_ARGS+=	--disable-zeroconf
+.endif
+
 .include <bsd.port.pre.mk>
 
 PATH:=	${PREFIX}/System/Tools:${PATH}


More information about the svn-ports-all mailing list