linphonec

Al Johnson openmoko at mazikeen.demon.co.uk
Fri May 22 02:37:28 CEST 2009


On Thursday 21 May 2009, Angus Ainslie wrote:
> On May 21, 2009 03:01:48 pm GNUtoo wrote:
> > Hi,
> > I've just bitbaken linphonec and I didn't succeed at making it work
> > I've followed this howto:
> > http://wiki.openmoko.org/wiki/Linphone
> > and I've no sound...
> > Denis.
> >
> > PS: if there are better recipes I'd like to know where to find them
>
> Linphone 3 has been in the Om2009 feeds since testing 1

That looks like the release version where the GUI crashes if you try to access 
the preferences. This was a bug in the release version if built without video 
support, and has been fixed in svn. The attached recipe worked using autorev 
just after the upstream fix (rev 396) but I wasn't sure what the versioning 
convention was for svn recipes, then got distracted. Posting it now before I 
forget again! 



-------------- next part --------------
DESCRIPTION = "SIP-based IP phone (console edition)"
HOMEPAGE = "http://www.linphone.org/?lang=us"
SECTION = "x11/utils"
LICENSE = "GPLv2"

DEPENDS = "intltool libosip2 speex libogg alsa-lib readline"
DEPENDS_${PN} = "liblinphone"
DEPENDS_${PN}c = "liblinphone readline"
DEPENDS_liblinphone = "libmediastreamer libortp libosip2 libexosip2"
DEPENDS_libmediastreamer = "speex libogg alsa-lib libortp"

RDEPENDS_${PN} = "liblinphone"
RDEPENDS_${PN}c = "liblinphone readline"
RDEPENDS_liblinphone = "libmediastreamer libortp libosip2 libexosip2"
RDEPENDS_libmediastreamer = "speex libogg libasound libortp"

PROVIDES += "linphone linphonec liblinphone"

PV = "3.1+svnr${SRCREV}"
PR = "r1"

SRC_URI = "svn://svn.savannah.gnu.org/linphone/;module=trunk"

S = "${WORKDIR}/trunk/linphone"

inherit autotools pkgconfig

export PKG_CONFIG=${STAGING_BINDIR_NATIVE}/pkg-config

EXTRA_OECONF = "--disable-gtk-doc \
                --without-ffmpeg --disable-video --without-sdl \
                --enable-alsa \
                --with-osip=${STAGING_DIR_HOST}${layout_exec_prefix} \
                --with-readline=${STAGING_DIR_HOST}${layout_exec_prefix} \
                --with-speex=${STAGING_DIR_HOST}${layout_exec_prefix} \
                --disable-truespeech --disable-manual \
                --enable-strict=no \
		"

PARALLEL_MAKE = ""

do_stage () {
        install -d ${STAGING_DATADIR}/aclocal
        oe_libinstall -a -so liblinphone ${STAGING_LIBDIR}
        install -d ${STAGING_INCDIR}/linphone
        install -m 0644 ${S}/coreapi/linphonecore.h ${STAGING_INCDIR}/linphone
        install -m 0644 ${S}/coreapi/lpconfig.h ${STAGING_INCDIR}/linphone
        oe_libinstall -a -so libmediastreamer ${STAGING_LIBDIR}
        install -d ${STAGING_INCDIR}/mediastreamer2
        install -m 0644 ${S}/mediastreamer2/include/mediastreamer2/*.h ${STAGING_INCDIR}/mediastreamer2
        install -d ${STAGING_INCDIR}/ortp
        oe_libinstall -a -so libortp ${STAGING_LIBDIR}/
        install -m 0644 ${S}/oRTP/include/ortp/*.h ${STAGING_INCDIR}/ortp/
        autotools_stage_all
}

PACKAGES += "linphonec linphone-rings liblinphone libmediastreamer libortp"

FILES_${PN} = "${bindir}/linphone ${bindir}/linphone-3 ${datadir}/pixmaps ${datadir}/applications ${datadir}/gnome/apps ${datadir}/linphone"
FILES_${PN}c = "${bindir}/linphonec ${bindir}/linphonecsh ${bindir}/sipomatic ${datadir}/sounds/linphone/ringback.wav"
FILES_${PN}-rings = "${datadir}/sounds/linphone/rings"
FILES_liblinphone = "${libdir}/liblinphone.so.*"
FILES_libmediastreamer = "${libdir}/libmediastreamer.so.*"
FILES_libortp = "${libdir}/libortp.so.*"
FILES_${PN}-dev += "${libdir}/*.a ${libdir}/*.la ${libdir}/pkgconfig ${includedir}"



More information about the community mailing list