1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/net/ekiga/Makefile
Mikhail Teterin a3325628ef Upgrade opal to 2.2.8 (from 2.2.4) and ekiga to 2.0.9 (from 2.0.4).
These versions are only available from Ekiga.org, rather than from
the traditionally used site VoxGratia.org...

Turn the previously "hidden" knobs into OPTIONS. Make ekiga accept
whatever versions of opal and pwlib are installed.

Take over maintainership, as I plan to use ekiga myself -- unlike
the current maintainer.

Approved by: maintainer
2007-06-18 14:24:29 +00:00

72 lines
1.8 KiB
Makefile

# Ports collection Makefile for: gnomemeeting
# Date created: 24/07/2001
# Whom: roger@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= ekiga
PORTVERSION= 2.0.9
CATEGORIES= net gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.0
MAINTAINER= mi@aldan.algebra.com
COMMENT= VoIP phone for GNOME
OPTIONS= AVAHI "Support Avahi for service discovery on LAN" on \
DBUS "Use D-BUS for interprocess communication" on
LIB_DEPENDS= opal_r:${PORTSDIR}/net/opal
USE_BZIP2= yes
USE_XLIB= yes
USE_GMAKE= yes
USE_SDL= sdl
INSTALLS_OMF= yes
USE_GNOME= libgnomeui gnomeprefix gnomehack gnomedocutils \
evolutiondataserver intlhack
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
SDL_CONFIG="${SDL_CONFIG}"
CONFIGURE_ARGS= --with-pwlib-dir=${LOCALBASE} \
--with-opal-dir=${LOCALBASE}
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
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
post-patch:
@${REINPLACE_CMD} -e 's|@prefix@/@DATADIRNAME@|${PREFIX}/share/gnome|' \
${WRKSRC}/*schemas*
@${REINPLACE_CMD} -e 's|{datadir}/dbus-1|(prefix)/share/dbus-1|g' \
${WRKSRC}/Makefile.in
.include <bsd.port.post.mk>