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$
|
2006-10-14 08:35:50 +00:00
|
|
|
# $MCom: ports/net/avahi/Makefile,v 1.19 2006/10/12 16:44:41 marcus Exp $
|
2005-11-19 04:34:52 +00:00
|
|
|
|
|
|
|
PORTNAME= avahi
|
2007-02-10 23:36:11 +00:00
|
|
|
PORTVERSION= 0.6.17
|
2006-11-11 02:56:18 +00:00
|
|
|
PORTREVISION?= 0
|
2006-04-30 00:47:21 +00:00
|
|
|
CATEGORIES?= net dns
|
2007-01-02 06:30:23 +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 \
|
2006-10-14 08:35:50 +00:00
|
|
|
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
|
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
|
2006-11-05 17:45:49 +00:00
|
|
|
USE_GNOME_SUBR=yes
|
|
|
|
USE_RC_SUBR= yes
|
2005-11-19 04:34:52 +00:00
|
|
|
USE_GMAKE= yes
|
2006-04-30 00:47:21 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-09-02 21:22:59 +00:00
|
|
|
USE_LDCONFIG= yes
|
2006-10-14 08:35:50 +00:00
|
|
|
USE_GETOPT_LONG=yes
|
2006-02-19 07:04:48 +00:00
|
|
|
CONFIGURE_ARGS?=--with-distro=freebsd \
|
2006-11-08 05:25:43 +00:00
|
|
|
--with-dbus-system-address=unix:path=/var/run/dbus/system_bus_socket \
|
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 \
|
2006-04-30 00:47:21 +00:00
|
|
|
--localstatedir=/var \
|
2006-07-03 19:13:54 +00:00
|
|
|
--enable-compat-howl \
|
2006-10-14 08:35:50 +00:00
|
|
|
--disable-autoipd \
|
2006-07-03 19:13:54 +00:00
|
|
|
--mandir=${PREFIX}/man
|
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)
|
2006-05-01 15:39:54 +00:00
|
|
|
CONFLICTS= howl-[0-9]*
|
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 \
|
2006-09-04 18:39:09 +00:00
|
|
|
avahi-resolve-host-name.1 avahi-resolve.1 avahi-set-host-name.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
|
|
|
|
|
2006-06-10 19:14:04 +00:00
|
|
|
OPTIONS= GTK2 "Build a GTK+ 2 browser utility" off \
|
|
|
|
LIBDNS "Enable mDNSResponder compatibility" 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)
|
2006-06-10 19:14:04 +00:00
|
|
|
.if defined(WITH_LIBDNS)
|
|
|
|
CONFIGURE_ARGS+=--enable-compat-libdns_sd
|
|
|
|
PLIST_SUB+= LIBDNS=""
|
|
|
|
CONFLICTS+= mDNSResponder-[0-9]*
|
2006-06-10 20:44:29 +00:00
|
|
|
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+libdns
|
2006-06-10 19:14:04 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-compat-libdns_sd
|
|
|
|
PLIST_SUB+= LIBDNS="@comment "
|
|
|
|
.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
|
|
|
|
|
2006-05-06 10:09:07 +00:00
|
|
|
post-patch:
|
2006-09-05 20:34:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||g ; s|netdev|network|g' \
|
|
|
|
${WRKSRC}/configure \
|
2006-05-06 10:09:07 +00:00
|
|
|
${WRKSRC}/avahi-client/Makefile.in \
|
|
|
|
${WRKSRC}/avahi-daemon/Makefile.in
|
2006-11-05 17:45:49 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|%%RC_SUBR%%|${RC_SUBR}| ; \
|
|
|
|
s|%%GNOME_SUBR%%|${GNOME_SUBR}|' \
|
2006-11-05 22:27:19 +00:00
|
|
|
${WRKSRC}/initscript/freebsd/avahi-dnsconfd.sh.in \
|
|
|
|
${WRKSRC}/initscript/freebsd/avahi-daemon.sh.in
|
2006-05-06 10:09:07 +00:00
|
|
|
|
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>
|