blob: a899049b77c774019242c24fe9e9816ed970659f [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001# 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
5DESCRIPTION = "LIVE555 Streaming Media libraries"
6HOMEPAGE = "http://live.com/"
Andrew Geissler9aee5002022-03-30 16:27:02 +00007LICENSE = "LGPL-3.0-only"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008SECTION = "devel"
9
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050010DEPENDS = "openssl"
11
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012URLV = "${@d.getVar('PV')[0:4]}.${@d.getVar('PV')[4:6]}.${@d.getVar('PV')[6:8]}"
Brad Bishopdec060e2019-09-23 08:01:31 -040013SRC_URI = "https://download.videolan.org/pub/contrib/live555/live.${URLV}.tar.gz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 file://config.linux-cross"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050015
Patrick Williamsb48b7b42016-08-17 15:04:38 -050016# only latest live version stays on http://www.live555.com/liveMedia/public/, add mirror for older
Brad Bishopdec060e2019-09-23 08:01:31 -040017MIRRORS += "http://www.live555.com/liveMedia/public/ http://download.videolan.org/contrib/live555/ \n"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050018
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050019SRC_URI[sha256sum] = "ce95a1c79f6d18e959f9dc129b8529b711c60e76754acc285e60946303b923ec"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050020
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021S = "${WORKDIR}/live"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050022
23LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
24 file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02 \
25 "
26
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027TARGET_CC_ARCH += "${LDFLAGS}"
28
29do_configure() {
30 cp ${WORKDIR}/config.linux-cross .
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031 echo "COMPILE_OPTS+=" -fPIC -DXLOCALE_NOT_USED"" >> config.linux-cross
Patrick Williamsb48b7b42016-08-17 15:04:38 -050032 ./genMakefiles linux-cross
33}
34
Patrick Williamsb48b7b42016-08-17 15:04:38 -050035do_install() {
36 install -d ${D}${includedir}/BasicUsageEnvironment
37 install -d ${D}${includedir}/groupsock
38 install -d ${D}${includedir}/liveMedia
39 install -d ${D}${includedir}/UsageEnvironment
40 install -d ${D}${libdir}
41 cp -R --no-dereference --preserve=mode,links -v ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/
42 cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/
43 cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/
44 cp -R --no-dereference --preserve=mode,links -v ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/
45 cp -R --no-dereference --preserve=mode,links -v ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/
46 # Find all the headers
47 for i in $(find . -name "*.hh") $(find . -name "*.h") ; do
48 install ${i} ${D}${includedir}
49 done
50 cp ${S}/*/*.a ${D}${libdir}
51 install -d ${D}${bindir}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050052 for i in MPEG2TransportStreamIndexer openRTSP playSIP sapWatch testMPEG1or2ProgramToTransportStream testMPEG1or2Splitter testMPEG1or2VideoReceiver testMPEG2TransportStreamTrickPlay testOnDemandRTSPServer testRelay testAMRAudioStreamer testDVVideoStreamer testMP3Receiver testMP3Streamer testMPEG1or2AudioVideoStreamer testMPEG1or2VideoStreamer testMPEG2TransportStreamer testMPEG4VideoStreamer testWAVAudioStreamer vobStreamer; do
Patrick Williamsb48b7b42016-08-17 15:04:38 -050053 install -m 0755 ${S}/testProgs/${i} ${D}${bindir}/
54 done
55 install -m 0755 ${S}/mediaServer/live555MediaServer ${D}${bindir}/
56}
57
Andrew Geissler9aee5002022-03-30 16:27:02 +000058RDEPENDS:${PN}-dev = ""
Brad Bishop87b3cb82019-11-15 16:35:37 -050059PACKAGES =+ "live555-openrtsp live555-playsip live555-mediaserver live555-examples"
Patrick Williams213cb262021-08-07 19:21:33 -050060FILES:live555-openrtsp = "${bindir}/openRTSP"
61FILES:live555-playsip = "${bindir}/playSIP"
62FILES:live555-mediaserver = "${bindir}/live555MediaServer"
63FILES:live555-examples = "${bindir}/*"