# New ports collection makefile for: linphone # Date created: 30 December 2002 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= linphone PORTVERSION= 2.1.1 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES?= net MASTER_SITES= SAVANNAH/${PORTNAME}/stable/sources MAINTAINER= ports@FreeBSD.org COMMENT= A web phone that supports SIP protocol LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \ speex.1:${PORTSDIR}/audio/speex \ eXosip2.6:${PORTSDIR}/net/libexosip2 CONFLICTS= ortp-[0-9]* USE_GNOME= glib20 gnomehack gnometarget intlhack pkgconfig USE_GMAKE= yes USE_AUTOTOOLS= libtool:15 LIBTOOLFILES= configure oRTP/configure mediastreamer2/configure CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --disable-ipv6 --disable-manual --disable-ewarning \ --disable-strict --disable-video --disable-external-ortp \ --with-osip=${LOCALBASE} --with-gsm=${LOCALBASE} MAKE_ENV= SUBDIRS="${SUBDIRS}" USE_LDCONFIG= yes CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} .include .if ${OSVERSION} < 600000 LIB_DEPENDS+= readline.[5-9]:${PORTSDIR}/devel/readline .endif .if defined(WITHOUT_NLS) CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .else USE_GETTEXT= yes PLIST_SUB+= NLS="" .endif .if defined(LINPHONE_GUI) BUILD_DEPENDS+= linphone-base>=2.1.1:${PORTSDIR}/net/linphone-base RUN_DEPENDS+= linphone-base>=2.1.1:${PORTSDIR}/net/linphone-base DESCR= ${PKGDIR}/pkg-descr.gui PLIST= ${PKGDIR}/pkg-plist.gui USE_GNOME+= gnomepanel gnomeprefix MAN1= linphone.1 SUBDIRS= pixmaps gtk .else PKGNAMESUFFIX= -base CONFIGURE_ARGS+= --enable-gtk_ui=no MAN1= linphonec.1 sipomatic.1 SUBDIRS= po oRTP mediastreamer2 media_api coreapi console .endif post-extract: @${CP} -f ${FILESDIR}/GNOME_LinphoneApplet.xml ${WRKSRC}/gtk post-patch: @${REINPLACE_CMD} -e '/^SUBDIRS =/s| =| ?=|g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e '/^imgdir =/s|(datadir)|(pkgdatadir)|g' \ ${WRKSRC}/mediastreamer2/src/Makefile.in .for file in configure src/gsm.c @${REINPLACE_CMD} -e 's|gsm/gsm\.h|gsm.h|g' \ ${WRKSRC}/mediastreamer2/${file} .endfor post-install: .if defined(LINPHONE_GUI) ${INSTALL_MAN} ${WRKSRC}/share/C/linphone.1 ${MANPREFIX}/man/man1 ${INSTALL_DATA} ${WRKSRC}/share/linphone.desktop \ ${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/share/linphone_applet.desktop \ ${PREFIX}/share/applications .else ${INSTALL_MAN} ${WRKSRC}/share/C/linphonec.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/share/C/sipomatic.1 ${MANPREFIX}/man/man1 ${INSTALL_DATA} ${WRKSRC}/share/linphone.pc ${PREFIX}/libdata/pkgconfig @${MKDIR} ${DATADIR}/sounds ${INSTALL_DATA} ${WRKSRC}/share/*.wav ${DATADIR}/sounds @${MKDIR} ${DATADIR}/sounds/rings ${INSTALL_DATA} ${WRKSRC}/share/rings/*.wav ${DATADIR}/sounds/rings .endif .include