summaryrefslogtreecommitdiffstats
path: root/net/ekiga/Makefile
blob: 6690c3899b9905b300fa8452101871115a1c1338 (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
# Ports collection Makefile for:    gnomemeeting
# Date created:             24/07/2001
# Whom:                 roger@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   ekiga
PORTVERSION=    2.0.11
PORTREVISION=   13
CATEGORIES= net gnome
MASTER_SITES=   GNOME

MAINTAINER= mi@aldan.algebra.com
COMMENT=    VoIP phone for GNOME

LIB_DEPENDS=    opal_r:${PORTSDIR}/net/opal

OPTIONS=    AVAHI   "Support Avahi for service discovery on LAN" on \
        DBUS    "Use D-BUS for interprocess communication" on

CONFLICTS=  ekiga3-3.*

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_GETTEXT=    yes
USE_SDL=    sdl
INSTALLS_OMF=   yes
USE_GNOME=  libgnomeui gnomeprefix gnomehack gnomedocutils \
        evolutiondataserver intlhack
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV=  SDL_CONFIG="${SDL_CONFIG}"
CONFIGURE_ARGS= --with-pwlib-dir=${LOCALBASE} \
        --with-opal-dir=${LOCALBASE}
MAKE_JOBS_SAFE= yes

GCONF_SCHEMAS=  ekiga.schemas
MAN1=       ekiga.1

pre-configure:
    ${REINPLACE_CMD} -e "s,PWLIB_REC_VERSION=.*,PWLIB_REC_VERSION=`ptlib-config \
            --version`," \
        -e "s,OPAL_REC_VERSION=.*,OPAL_REC_VERSION=`${AWK} \
            '/define OPAL_VERSION/ \
            {printf $$NF}' ${LOCALBASE}/include/opal/opal/buildopts.h`," \
        ${WRKSRC}/configure

.include <bsd.port.pre.mk>

.ifndef (WITHOUT_AVAHI)
LIB_DEPENDS+=   avahi-core:${PORTSDIR}/net/avahi-app
CONFIGURE_ARGS+=--enable-avahi
.else
CONFIGURE_ARGS+=--disable-avahi
.endif

.ifndef (WITHOUT_DBUS)
LIB_DEPENDS+=   dbus-1:${PORTSDIR}/devel/dbus
CONFIGURE_ARGS+=--enable-dbus
PLIST_SUB+= DBUS:=""
.else
CONFIGURE_ARGS+=--disable-dbus
PLIST_SUB+= DBUS:="@comment "
.endif

.include <bsd.port.post.mk>