live555: add 20180218
[opendreambox.git] / meta-opendreambox / recipes-multimedia / live555 / live555.inc
1 # live555 OE build file
2 # Copyright (C) 2005, Koninklijke Philips Electronics NV.  All Rights Reserved
3 # Released under the MIT license (see packages/COPYING)
4
5 DESCRIPTION = "LIVE555 Streaming Media libraries"
6 HOMEPAGE = "http://live.com/"
7 LICENSE = "LGPLv3"
8 SECTION = "devel"
9
10 INC_PR = "r1"
11
12 URLV = "${@d.getVar('PV',1)[0:4]}.${@d.getVar('PV',1)[4:6]}.${@d.getVar('PV',1)[6:8]}"
13 SRC_URI = "http://www.live555.com/liveMedia/public/live.${URLV}.tar.gz \
14            file://config.linux-cross \
15            file://live555.pc"
16 # only latest live version stays on http://www.live555.com/liveMedia/public/, add mirror for older
17 MIRRORS += "http://www.live555.com/liveMedia/public/ http://distcache.FreeBSD.org/ports-distfiles/ \n"
18
19 S = "${WORKDIR}/live"
20 TARGET_CC_ARCH += "${LDFLAGS}"
21
22 do_configure() {
23     cp ${WORKDIR}/config.linux-cross .
24     echo "COMPILE_OPTS+=" -fPIC "" >> config.linux-cross
25     ./genMakefiles linux-cross
26 }
27
28 do_compile() {
29     make
30 }
31
32 do_install() {
33     install -d ${D}${includedir}/BasicUsageEnvironment
34     install -d ${D}${includedir}/groupsock
35     install -d ${D}${includedir}/liveMedia
36     install -d ${D}${includedir}/UsageEnvironment
37     install -d ${D}${libdir}
38     install -d ${D}/usr/lib/pkgconfig
39     cp -R --no-dereference --preserve=mode,links -v ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/
40     cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/
41     cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/
42     cp -R --no-dereference --preserve=mode,links -v ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/
43     cp -R --no-dereference --preserve=mode,links -v ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/
44     cp -R --no-dereference --preserve=mode,links -v ${WORKDIR}/live555.pc ${D}/usr/lib/pkgconfig/
45     # Find all the headers
46     for i in $(find . -name "*.hh") $(find . -name "*.h") ; do
47         install ${i} ${D}${includedir}
48     done
49     cp ${S}/*/*.a ${D}${libdir}
50     install -d ${D}${bindir}
51     for i in MPEG2TransportStreamIndexer openRTSP playSIP registerRTSPStream sapWatch; do
52         install -m 0755 ${S}/testProgs/${i} ${D}${bindir}/
53     done
54     install -m 0755 ${S}/mediaServer/live555MediaServer ${D}${bindir}/
55 }
56
57 PACKAGES =+ " live555-openrtsp live555-playsip live555-mediaserver"
58 FILES_${PN} = "${bindir}/sapWatch ${bindir}/registerRTSPStream ${bindir]/MPEG2TransportStreamIndexer"
59 FILES_live555-openrtsp = "${bindir}/openRTSP"
60 FILES_live555-playsip = "${bindir}/playSIP"
61 FILES_live555-mediaserver = "${bindir}/live555MediaServer"