2005-11-19 04:34:52 +00:00
|
|
|
# New ports collection makefile for: avahi
|
|
|
|
# Date created: 18 November 2005
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= avahi
|
2006-03-15 05:40:56 +00:00
|
|
|
PORTVERSION= 0.6.9
|
2006-04-28 01:48:10 +00:00
|
|
|
PORTREVISION?= 3
|
2006-02-23 10:40:44 +00:00
|
|
|
CATEGORIES= net dns
|
2006-01-12 22:19:31 +00:00
|
|
|
MASTER_SITES= http://www.avahi.org/download/
|
2005-11-19 04:34:52 +00:00
|
|
|
|
2006-02-19 07:04:48 +00:00
|
|
|
MAINTAINER?= gnome@FreeBSD.org
|
|
|
|
COMMENT?= Service discovery on a local network
|
2005-11-19 04:34:52 +00:00
|
|
|
|
2006-02-19 07:04:48 +00:00
|
|
|
LIB_DEPENDS?= expat.6:${PORTSDIR}/textproc/expat2 \
|
2005-11-19 04:34:52 +00:00
|
|
|
daemon.2:${PORTSDIR}/devel/libdaemon \
|
2005-12-31 18:49:08 +00:00
|
|
|
dbus-1.2:${PORTSDIR}/devel/dbus \
|
2005-11-19 04:34:52 +00:00
|
|
|
gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
|
2006-02-19 07:04:48 +00:00
|
|
|
USE_GNOME?= gnomehack ltverhack glib20
|
2005-11-19 04:34:52 +00:00
|
|
|
USE_GMAKE= yes
|
2006-02-23 10:40:44 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-11-19 04:34:52 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2006-02-19 07:04:48 +00:00
|
|
|
CONFIGURE_ARGS?=--with-distro=freebsd \
|
2006-04-28 01:48:10 +00:00
|
|
|
--with-dbus-system-address=unix:path=/var/run/dbus/dbus.pipe \
|
2005-11-19 04:34:52 +00:00
|
|
|
--disable-qt3 \
|
|
|
|
--disable-qt4 \
|
|
|
|
--disable-python \
|
|
|
|
--disable-mono \
|
|
|
|
--disable-monodoc \
|
|
|
|
--disable-doxygen-doc \
|
2005-12-05 03:13:06 +00:00
|
|
|
--disable-doxygen-dot \
|
|
|
|
--localstatedir=/var
|
2005-11-19 04:34:52 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2006-01-29 18:47:31 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
2005-11-19 04:34:52 +00:00
|
|
|
|
2006-02-19 07:04:48 +00:00
|
|
|
.if !defined(AVAHI_SLAVE)
|
2005-11-19 04:34:52 +00:00
|
|
|
|
|
|
|
MAN1= avahi-browse-domains.1 avahi-browse.1 avahi-publish-address.1 \
|
|
|
|
avahi-publish-service.1 avahi-publish.1 avahi-resolve-address.1 \
|
|
|
|
avahi-resolve-host-name.1 avahi-resolve.1
|
2006-03-15 05:40:56 +00:00
|
|
|
MAN5= avahi-daemon.conf.5 avahi.service.5 avahi.hosts.5
|
2005-11-19 04:34:52 +00:00
|
|
|
MAN8= avahi-daemon.8 avahi-dnsconfd.8 avahi-dnsconfd.action.8
|
|
|
|
|
2005-11-19 17:38:17 +00:00
|
|
|
OPTIONS= GTK2 "Build a GTK+ 2 browser utility" off
|
2006-02-19 07:04:48 +00:00
|
|
|
.endif
|
2005-11-19 17:38:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-02-19 07:04:48 +00:00
|
|
|
.if !defined(AVAHI_SLAVE)
|
2005-11-19 19:43:36 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
2005-11-19 19:49:12 +00:00
|
|
|
IGNORE= does not work on FreeBSD 4.X
|
2005-11-19 19:43:36 +00:00
|
|
|
.endif
|
|
|
|
|
2005-11-19 17:38:17 +00:00
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
USE_GNOME+= libglade2
|
|
|
|
PLIST_SUB+= GTK=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gtk
|
|
|
|
PLIST_SUB+= GTK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-11-19 04:34:52 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(PACKAGE_BUILDING)
|
|
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.endif
|
|
|
|
|
2006-02-19 07:04:48 +00:00
|
|
|
.endif
|
|
|
|
|
2005-11-19 17:38:17 +00:00
|
|
|
.include <bsd.port.post.mk>
|