linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / pwlib / pwlib_1.6.6.4.bb
blob40ce8843536aa1fc0756490f5edbeed2768467ee
1 # status as of 2009/05/21: This particular bb file is broken beyond what I
2 # (Laibsch) care to fix. If you fix it, please base your changes on top
3 # of pwlib.inc
5 # pwlib .bb build file
6 # Copyright (C) 2006, Advanced Micro Devices, Inc. All Rights Reserved
7 # Released under the MIT license (see /COPYING)
10 DEFAULT_PREFERENCE = "-1"
12 HOMEPAGE="http://www.openh323.org/docs/PWLib/"
13 DESCRIPTION="Portable Text and GUI C/C++ Class Libarary."
14 LICENSE = "GPL"
16 SRC_URI="http://ftp.iinet.net.au/debian/debian-backports-woody/dists/woody/pwlib/source/pwlib_${PV}.orig.tar.gz"
17 SRC_URI[md5sum] = "618f0ec3e816d7ff9d3bbe23ea5a3312"
18 SRC_URI[sha256sum] = "c51e760ea1c143e2edbba5b6bfb4785b3b66805c4581d8517febb75cd52582da"
20 DEPENDS="openssl openldap"
22 inherit autotools
24 EXTRA_OECONF="--enable-ipv6 --disable-sasl --disable-sdl \
25 --disable-video --enable-plugins --with-plugins=oss"
27 S="${WORKDIR}/${PN}"
29 # Use openSSL
31 export OPENSSLFLAG="1"
32 export OPENSSLDIR="${STAGING_LIBDIR}"
33 export OPENSSLLIBS="-lssl -lcrypt"
34 export MACHTYPE="x86"
35 export OSTYPE="linux"
36 export OSRELEASE="openembedded"
38 export CPLUS="${CXX}"
40 do_compile() {
41 oe_runmake opt
44 HEADERS="ptbuildopts.h ptlib.h"
46 PTCLIB_HEADERS="ptclib/asnber.h ptclib/asner.h ptclib/asnper.h \
47 ptclib/asnxer.h ptclib/cypher.h ptclib/delaychan.h \
48 ptclib/dtmf.h ptclib/ftp.h ptclib/html.h ptclib/http.h \
49 ptclib/httpform.h ptclib/httpsvc.h ptclib/inetmail.h \
50 ptclib/inetprot.h ptclib/ipacl.h ptclib/memfile.h \
51 ptclib/mime.h ptclib/modem.h ptclib/pasn.h ptclib/pdns.h \
52 ptclib/pils.h ptclib/pldap.h ptclib/psnmp.h ptclib/psoap.h \
53 ptclib/pssl.h ptclib/pstun.h ptclib/ptts.h ptclib/pwavfile.h \
54 ptclib/pxml.h ptclib/pxmlrpc.h ptclib/pxmlrpcs.h \
55 ptclib/qchannel.h ptclib/random.h ptclib/shttpsvc.h \
56 ptclib/socks.h ptclib/telnet.h ptclib/url.h ptclib/vsdl.h \
57 ptclib/vxml.h"
59 PTLIB_HEADERS= "ptlib/MacMainIf.h ptlib/args.h ptlib/array.h \
60 ptlib/channel.h ptlib/conchan.h ptlib/config.h \
61 ptlib/contain.h ptlib/contain.inl ptlib/dict.h \
62 ptlib/dynalink.h ptlib/ethsock.h ptlib/file.h \
63 ptlib/filepath.h ptlib/icmpsock.h ptlib/indchan.h \
64 ptlib/int64.h ptlib/ipdsock.h ptlib/ipsock.h ptlib/ipxsock.h \
65 ptlib/lists.h ptlib/mail.h ptlib/mutex.h ptlib/notifier.h \
66 ptlib/object.h ptlib/osutil.inl ptlib/pdirect.h \
67 ptlib/pipechan.h ptlib/plugin.h ptlib/pluginmgr.h \
68 ptlib/pprocess.h ptlib/pstring.h ptlib/ptime.h ptlib/qos.h \
69 ptlib/remconn.h ptlib/safecoll.h ptlib/semaphor.h \
70 ptlib/serchan.h ptlib/sfile.h ptlib/smartptr.h \
71 ptlib/socket.h ptlib/sockets.h ptlib/sound.h \
72 ptlib/spxsock.h ptlib/svcproc.h ptlib/syncpoint.h \
73 ptlib/syncthrd.h ptlib/tcpsock.h ptlib/textfile.h \
74 ptlib/thread.h ptlib/timeint.h ptlib/timer.h ptlib/udpsock.h \
75 ptlib/vconvert.h ptlib/video.h ptlib/videoio.h \
76 ptlib/videoio1394dc.h ptlib/unix/ptlib/channel.h \
77 ptlib/unix/ptlib/conchan.h ptlib/unix/ptlib/config.h \
78 ptlib/unix/ptlib/contain.h ptlib/unix/ptlib/dynalink.h \
79 ptlib/unix/ptlib/ethsock.h ptlib/unix/ptlib/file.h \
80 ptlib/unix/ptlib/filepath.h ptlib/unix/ptlib/icmpsock.h \
81 ptlib/unix/ptlib/ipdsock.h ptlib/unix/ptlib/ipsock.h \
82 ptlib/unix/ptlib/mutex.h ptlib/unix/ptlib/pdirect.h \
83 ptlib/unix/ptlib/pipechan.h ptlib/unix/ptlib/pmachdep.h \
84 ptlib/unix/ptlib/pprocess.h ptlib/unix/ptlib/ptime.h \
85 ptlib/unix/ptlib/ptlib.inl ptlib/unix/ptlib/remconn.h \
86 ptlib/unix/ptlib/semaphor.h ptlib/unix/ptlib/serchan.h \
87 ptlib/unix/ptlib/sfile.h ptlib/unix/ptlib/socket.h \
88 ptlib/unix/ptlib/sound.h ptlib/unix/ptlib/svcproc.h \
89 ptlib/unix/ptlib/syncpoint.h ptlib/unix/ptlib/tcpsock.h \
90 ptlib/unix/ptlib/textfile.h ptlib/unix/ptlib/thread.h \
91 ptlib/unix/ptlib/timeint.h ptlib/unix/ptlib/timer.h \
92 ptlib/unix/ptlib/udpsock.h ptlib/unix/ptlib/video.h \
93 ptlib/unix/ptlib/videoio.h ptlib/unix/ptlib/videoio1394avc.h"
95 SHARE="make/common.mak make/defaultgui.mak \
96 make/gui.mak make/lib.mak make/motif.mak \
97 make/plugins.mak make/ptbuildopts.mak \
98 make/ptlib.mak make/pwlib.mak make/qt.mak \
99 make/unix.mak make/xlib.mak"
101 do_stage() {
102 install -d ${STAGING_INCDIR}/ptlib/unix/ptlib
103 install -d ${STAGING_INCDIR}/ptclib
105 for file in ${HEADERS} ${PTCLIB_HEADERS} ${PTLIB_HEADERS}; do
106 install -m 0644 ${S}/include/$file ${STAGING_INCDIR}/$file
107 done
109 install -d ${STAGING_LIBDIR}
111 oe_libinstall -C lib libpt_linux_x86_r ${STAGING_LIBDIR}
113 ln -sf ${STAGING_LIBDIR}/libpt_linux_x86_r.so ${STAGING_LIBDIR}/libpt.so
115 install -d ${STAGING_DATADIR}/pwlib/make
116 for file in ${SHARE}; do
117 install -m 0644 ${S}/$file ${STAGING_DATADIR}/pwlib/$file
118 done
120 cat ${S}/make/ptlib-config | sed -e 's:LIBDIR=\"/usr/lib\":LIBDIR=\"${STAGING_LIBDIR}\":' -e 's:PWINSTDIR=\"/usr/share/pwlib\":PWINSTDIR=\"${STAGING_DATADIR}/pwlib\":' > ${STAGING_DATADIR}/pwlib/make/ptlib-config
121 chmod 0755 ${STAGING_DATADIR}/pwlib/make/ptlib-config