summaryrefslogtreecommitdiffstats
path: root/net/avahi/Makefile
blob: a6450444d94cabbf90702425d0279c7e094bd3dc (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    avahi
# Date created:     18 November 2005
# Whom:         Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#    $MCom: ports/net/avahi/Makefile,v 1.7 2006/01/31 12:25:11 ahze Exp $

PORTNAME=   avahi
PORTVERSION=    0.6.5
PORTREVISION=   4
CATEGORIES= net dns
MASTER_SITES=   http://www.avahi.org/download/

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Service discovery on a local network

LIB_DEPENDS=    expat.6:${PORTSDIR}/textproc/expat2 \
        daemon.2:${PORTSDIR}/devel/libdaemon \
        dbus-1.2:${PORTSDIR}/devel/dbus \
        gdbm.3:${PORTSDIR}/databases/gdbm

USE_GNOME=  gnomehack ltverhack glib20
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool:15
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --with-distro=freebsd \
        --with-dbus-system-address=unix:path=/var/run/dbus \
        --disable-qt3 \
        --disable-qt4 \
        --disable-python \
        --disable-mono \
        --disable-monodoc \
        --disable-doxygen-doc \
        --disable-doxygen-dot \
        --localstatedir=/var \
        --enable-compat-howl \
        --enable-compat-libdns_sd
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib" \
        PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
        PTHREAD_LIBS="${PTHREAD_LIBS}"

CONFLICTS=  howl-[0-9]* mDNSResponder-[0-9]*
USE_RC_SUBR=    yes

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
MAN5=   avahi-daemon.conf.5 avahi.service.5
MAN8=   avahi-daemon.8 avahi-dnsconfd.8 avahi-dnsconfd.action.8

OPTIONS=    GTK2 "Build a GTK+ 2 browser utility" off

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
IGNORE= does not work on FreeBSD 4.X
.endif

.if defined(WITH_GTK2)
USE_GNOME+= libglade2
PLIST_SUB+= GTK=""
.else
CONFIGURE_ARGS+=--disable-gtk
PLIST_SUB+= GTK="@comment "
.endif

post-install:
.if !defined(PACKAGE_BUILDING)
    @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif

.include <bsd.port.post.mk>