diff options
Diffstat (limited to 'net/avahi/Makefile')
-rw-r--r-- | net/avahi/Makefile | 110 |
1 files changed, 36 insertions, 74 deletions
diff --git a/net/avahi/Makefile b/net/avahi/Makefile index 5a509b3cb7eb..e90d5a8c6ab0 100644 --- a/net/avahi/Makefile +++ b/net/avahi/Makefile @@ -3,101 +3,63 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/net/avahi/Makefile,v 1.19 2006/10/12 16:44:41 marcus Exp $ +# $MCom: ports/net/avahi/Makefile,v 1.26 2007/09/09 22:45:27 mezz Exp $ +# PORTNAME= avahi PORTVERSION= 0.6.21 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= net dns -MASTER_SITES= http://www.avahi.org/download/ - -MAINTAINER?= gnome@FreeBSD.org -COMMENT?= Service discovery on a local network +MASTER_SITES= # empty +DISTFILES= # empty +EXTRACT_ONLY= # empty -LIB_DEPENDS?= expat.6:${PORTSDIR}/textproc/expat2 \ - daemon.0:${PORTSDIR}/devel/libdaemon \ - dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \ - gdbm.3:${PORTSDIR}/databases/gdbm +MAINTAINER= gnome@FreeBSD.org +COMMENT= The "meta-port" for the Avahi service discovery suite -USE_GNOME?= gnomehack ltverhack glib20 -USE_GNOME_SUBR=yes -USE_RC_SUBR= yes -USE_GMAKE= yes -USE_AUTOTOOLS= libtool:15 -USE_LDCONFIG= yes -USE_GETOPT_LONG=yes -CONFIGURE_ARGS?=--with-distro=freebsd \ - --with-dbus-system-address=unix:path=/var/run/dbus/system_bus_socket \ - --disable-qt3 \ - --disable-qt4 \ - --disable-python \ - --disable-mono \ - --disable-monodoc \ - --disable-doxygen-doc \ - --disable-doxygen-dot \ - --localstatedir=/var \ - --enable-compat-howl \ - --disable-autoipd -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DHAVE_KQUEUE" \ - LDFLAGS="-L${LOCALBASE}/lib" \ - PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ - PTHREAD_LIBS="${PTHREAD_LIBS}" +RUN_DEPENDS= avahi-resolve:${PORTSDIR}/net/avahi-app \ + avahi-app>=0.6.20_2:${PORTSDIR}/net/avahi-app -.if !defined(AVAHI_SLAVE) -CONFLICTS= howl-[0-9]* +OPTIONS= AUTOIPD "IPv4LL network address configuration daemon" off \ + GTK "Gtk+ tools and bindings" off \ + LIBDNS "mDNSResponder compatibility" off \ + MONO "Mono bindings" off \ + QT3 "Qt 3 bindings" off \ + QT4 "Qt 4 bindings" off \ + PYTHON "Python bindings and tools" off -MAN1= avahi-browse.1 avahi-publish.1 avahi-resolve.1 avahi-set-host-name.1 -MAN5= avahi-daemon.conf.5 avahi.service.5 avahi.hosts.5 -MAN8= avahi-daemon.8 avahi-dnsconfd.8 avahi-dnsconfd.action.8 +NO_BUILD= yes -MLINKS= avahi-browse.1 avahi-browse-domains.1 \ - avahi-publish.1 avahi-publish-address.1 \ - avahi-publish.1 avahi-publish-service.1 \ - avahi-resolve.1 avahi-resolve-address.1 \ - avahi-resolve.1 avahi-resolve-host-name.1 +.include <bsd.port.pre.mk> -OPTIONS= GTK2 "Build a GTK+ 2 browser utility and other tools" off \ - LIBDNS "Enable mDNSResponder compatibility" off +.if defined(WITH_AUTOIPD) +RUN_DEPENDS+= avahi-autoipd:${PORTSDIR}/net/avahi-autoipd .endif -.include <bsd.port.pre.mk> +.if defined(WITH_GTK) +RUN_DEPENDS+= avahi-discover-standalone:${PORTSDIR}/net/avahi-gtk +.endif -.if !defined(AVAHI_SLAVE) .if defined(WITH_LIBDNS) -CONFIGURE_ARGS+=--enable-compat-libdns_sd -PLIST_SUB+= LIBDNS="" -CONFLICTS+= mDNSResponder-[0-9]* -PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+libdns -.else -CONFIGURE_ARGS+=--disable-compat-libdns_sd -PLIST_SUB+= LIBDNS="@comment " +RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/avahi-compat-libdns_sd.pc:${PORTSDIR}/net/avahi-libdns .endif -.if defined(WITH_GTK2) -USE_GNOME+= libglade2 -PLIST_SUB+= GTK="" -MAN1+= bssh.1 -MLINKS+= bssh.1 bvnc.1 -.else -CONFIGURE_ARGS+=--disable-gtk -PLIST_SUB+= GTK="@comment " +.if defined(WITH_MONO) +RUN_DEPENDS+= ${LOCALBASE}/lib/mono/avahi-sharp/avahi-sharp.dll:${PORTSDIR}/net/avahi-sharp .endif -post-patch: - @${REINPLACE_CMD} -e 's|-ldl||g ; s|netdev|network|g' \ - ${WRKSRC}/configure \ - ${WRKSRC}/avahi-client/Makefile.in \ - ${WRKSRC}/avahi-daemon/Makefile.in - @${REINPLACE_CMD} -e 's|%%RC_SUBR%%|${RC_SUBR}| ; \ - s|%%GNOME_SUBR%%|${GNOME_SUBR}|' \ - ${WRKSRC}/initscript/freebsd/avahi-dnsconfd.sh.in \ - ${WRKSRC}/initscript/freebsd/avahi-daemon.sh.in +.if defined(WITH_QT3) +RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/avahi-qt3.pc:${PORTSDIR}/net/avahi-qt3 +.endif -post-install: -.if !defined(PACKAGE_BUILDING) - @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.if defined(WITH_QT4) +RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/avahi-qt4.pc:${PORTSDIR}/net/avahi-qt4 .endif +.if defined(WITH_PYTHON) +RUN_DEPENDS+= avahi-bookmarks:${PORTSDIR}/net/py-avahi .endif +do-install: + .include <bsd.port.post.mk> |