<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: adding pjsip to my openmoko overlay &#8211; part 2</title>
	<atom:link href="http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/</link>
	<description>random ramblings about nerdy things</description>
	<lastBuildDate>Tue, 30 Aug 2011 09:41:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: ankur jain</title>
		<link>http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/comment-page-1/#comment-288</link>
		<dc:creator>ankur jain</dc:creator>
		<pubDate>Thu, 30 Jul 2009 03:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/#comment-288</guid>
		<description>hey gene
I had one question for you regarding pjsip(I know its been long since you have worked on it but I really need some help...). I want to convert the static library files created from running the pjsip_svn.bb file into dynamic linked files. Being new to this whole gig I have no idea how to do this,my best bet is to take the code above and create a function do_compile() in which all the pjsip c program file are recompiled with the dynamic linkage. Please tell me I some where close to right</description>
		<content:encoded><![CDATA[<p>hey gene<br />
I had one question for you regarding pjsip(I know its been long since you have worked on it but I really need some help&#8230;). I want to convert the static library files created from running the pjsip_svn.bb file into dynamic linked files. Being new to this whole gig I have no idea how to do this,my best bet is to take the code above and create a function do_compile() in which all the pjsip c program file are recompiled with the dynamic linkage. Please tell me I some where close to right</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gene Oden</title>
		<link>http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/comment-page-1/#comment-267</link>
		<dc:creator>Gene Oden</dc:creator>
		<pubDate>Wed, 23 Apr 2008 15:25:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/#comment-267</guid>
		<description>excellent.  is this in openembedded?  i haven&#039;t had much time to tinker with openmoko lately but plan to spend some time this week.</description>
		<content:encoded><![CDATA[<p>excellent.  is this in openembedded?  i haven&#8217;t had much time to tinker with openmoko lately but plan to spend some time this week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pat</title>
		<link>http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/comment-page-1/#comment-266</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Mon, 14 Apr 2008 21:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.eugeneoden.com/2008/02/28/adding-pjsip-to-my-openmoko-overlay-part-2/#comment-266</guid>
		<description>$ cat pjproject_0.5.10.1.bb
DESCRIPTION = &quot;SIP and media stack&quot;
SECTION = &quot;multimedia&quot;
LICENSE = &quot;GPL&quot;
PRIORITY = &quot;optional&quot;
PR=&quot;r0&quot;
# DEFAULT_PREFERENCE=&quot;-1&quot;

SRC_URI = &quot;http://www.pjsip.org/release/${PV}/${PN}-${PV}.tar.gz \
	file://libpj.pc \
&quot;

EXTRA_OECONF = &quot;--disable-sound&quot;

inherit autotools
inherit pkgconfig

do_install() {
	install -d ${D}${bindir}

	install -m 0755 ${S}/pjsip-apps/bin/pjsua* ${D}${bindir}/pjsua
}

STAGE_TEMP = &quot;${WORKDIR}/temp-staging&quot;
do_stage() {
        rm -rf ${STAGE_TEMP}
        mkdir -p ${STAGE_TEMP}

	PJ_OS_NAME=`ls ${S}/pjlib/lib/ &#124; sed -e &#039;s/libpj\(-.*\).a/\1/&#039;`

	for i in `find ${S} -name &#039;*.a&#039;`; do
		lib=`basename $i`
		install $i ${STAGE_TEMP}/`echo $lib &#124; sed -e s/${PJ_OS_NAME}//`
	done

	for i in `find ${STAGE_TEMP} -name &#039;*.a&#039;`; do
		oe_libinstall -C ${STAGE_TEMP} $(basename $i .a) ${STAGING_LIBDIR}
	done

	echo hier

	for i in `find ${S} -wholename &quot;*/include/*&quot; -type d &#124; sed -e &#039;s/^.*\/include\///&#039;`; do
		install -m 0755 -d ${STAGING_INCDIR}/$i
	done

	for i in `find ${S} -wholename &quot;*/include/*\.h&quot;; find ${S} -wholename &quot;*/include/*\.hpp&quot;`; do
		install -m 0644 $i ${STAGING_INCDIR}/`echo $i &#124; sed -e &#039;s/^.*\/include\///&#039;`
	done

	cp ${WORKDIR}/libpj.pc ${S}

        rm -rf ${STAGE_TEMP}
}

$ cat files/libpj.pc
# Package Information for pkg-config

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libpj
Description: Sip library
Version: 5.10.1
Libs: -L${libdir} -lpjsua -lpjsip -lpjmedia -lpjsip-ua -lpjsip-simple -lpjsip-ua -lpjmedia-codec -lpjlib-util -lpj
Cflags: -I${includedir}</description>
		<content:encoded><![CDATA[<p>$ cat pjproject_0.5.10.1.bb<br />
DESCRIPTION = &#8220;SIP and media stack&#8221;<br />
SECTION = &#8220;multimedia&#8221;<br />
LICENSE = &#8220;GPL&#8221;<br />
PRIORITY = &#8220;optional&#8221;<br />
PR=&#8221;r0&#8243;<br />
# DEFAULT_PREFERENCE=&#8221;-1&#8243;</p>
<p>SRC_URI = &#8220;http://www.pjsip.org/release/${PV}/${PN}-${PV}.tar.gz \<br />
	file://libpj.pc \<br />
&#8221;</p>
<p>EXTRA_OECONF = &#8220;&#8211;disable-sound&#8221;</p>
<p>inherit autotools<br />
inherit pkgconfig</p>
<p>do_install() {<br />
	install -d ${D}${bindir}</p>
<p>	install -m 0755 ${S}/pjsip-apps/bin/pjsua* ${D}${bindir}/pjsua<br />
}</p>
<p>STAGE_TEMP = &#8220;${WORKDIR}/temp-staging&#8221;<br />
do_stage() {<br />
        rm -rf ${STAGE_TEMP}<br />
        mkdir -p ${STAGE_TEMP}</p>
<p>	PJ_OS_NAME=`ls ${S}/pjlib/lib/ | sed -e &#8216;s/libpj\(-.*\).a/\1/&#8217;`</p>
<p>	for i in `find ${S} -name &#8216;*.a&#8217;`; do<br />
		lib=`basename $i`<br />
		install $i ${STAGE_TEMP}/`echo $lib | sed -e s/${PJ_OS_NAME}//`<br />
	done</p>
<p>	for i in `find ${STAGE_TEMP} -name &#8216;*.a&#8217;`; do<br />
		oe_libinstall -C ${STAGE_TEMP} $(basename $i .a) ${STAGING_LIBDIR}<br />
	done</p>
<p>	echo hier</p>
<p>	for i in `find ${S} -wholename &#8220;*/include/*&#8221; -type d | sed -e &#8216;s/^.*\/include\///&#8217;`; do<br />
		install -m 0755 -d ${STAGING_INCDIR}/$i<br />
	done</p>
<p>	for i in `find ${S} -wholename &#8220;*/include/*\.h&#8221;; find ${S} -wholename &#8220;*/include/*\.hpp&#8221;`; do<br />
		install -m 0644 $i ${STAGING_INCDIR}/`echo $i | sed -e &#8216;s/^.*\/include\///&#8217;`<br />
	done</p>
<p>	cp ${WORKDIR}/libpj.pc ${S}</p>
<p>        rm -rf ${STAGE_TEMP}<br />
}</p>
<p>$ cat files/libpj.pc<br />
# Package Information for pkg-config</p>
<p>prefix=/usr<br />
exec_prefix=${prefix}<br />
libdir=${exec_prefix}/lib<br />
includedir=${prefix}/include</p>
<p>Name: libpj<br />
Description: Sip library<br />
Version: 5.10.1<br />
Libs: -L${libdir} -lpjsua -lpjsip -lpjmedia -lpjsip-ua -lpjsip-simple -lpjsip-ua -lpjmedia-codec -lpjlib-util -lpj<br />
Cflags: -I${includedir}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

