blob: cf4dc7f4fe25af316a039e3bbcc2bb7eb979b69f [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/"
7LICENSE = "LGPLv3"
8SECTION = "devel"
9
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010URLV = "${@d.getVar('PV')[0:4]}.${@d.getVar('PV')[4:6]}.${@d.getVar('PV')[6:8]}"
Brad Bishopdec060e2019-09-23 08:01:31 -040011SRC_URI = "https://download.videolan.org/pub/contrib/live555/live.${URLV}.tar.gz \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012 file://config.linux-cross"
13# only latest live version stays on http://www.live555.com/liveMedia/public/, add mirror for older
Brad Bishopdec060e2019-09-23 08:01:31 -040014MIRRORS += "http://www.live555.com/liveMedia/public/ http://download.videolan.org/contrib/live555/ \n"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050015
16S = "${WORKDIR}/live"
17TARGET_CC_ARCH += "${LDFLAGS}"
18
19do_configure() {
20 cp ${WORKDIR}/config.linux-cross .
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021 echo "COMPILE_OPTS+=" -fPIC -DXLOCALE_NOT_USED"" >> config.linux-cross
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022 ./genMakefiles linux-cross
23}
24
25do_compile() {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050026 oe_runmake
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027}
28
29do_install() {
30 install -d ${D}${includedir}/BasicUsageEnvironment
31 install -d ${D}${includedir}/groupsock
32 install -d ${D}${includedir}/liveMedia
33 install -d ${D}${includedir}/UsageEnvironment
34 install -d ${D}${libdir}
35 cp -R --no-dereference --preserve=mode,links -v ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/
36 cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/
37 cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/
38 cp -R --no-dereference --preserve=mode,links -v ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/
39 cp -R --no-dereference --preserve=mode,links -v ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/
40 # Find all the headers
41 for i in $(find . -name "*.hh") $(find . -name "*.h") ; do
42 install ${i} ${D}${includedir}
43 done
44 cp ${S}/*/*.a ${D}${libdir}
45 install -d ${D}${bindir}
Brad Bishop6e60e8b2018-02-01 10:27:11 -050046 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 -050047 install -m 0755 ${S}/testProgs/${i} ${D}${bindir}/
48 done
49 install -m 0755 ${S}/mediaServer/live555MediaServer ${D}${bindir}/
50}
51
52PACKAGES =+ " live555-openrtsp live555-playsip live555-mediaserver"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050053FILES_${PN} = "${bindir}/sapWatch ${bindir}/testMPEG1or2ProgramToTransportStream ${bindir}/testMPEG1or2Splitter ${bindir}/testMPEG1or2VideoReceiver ${bindir}/testMPEG2TransportStreamTrickPlay ${bindir}/testOnDemandRTSPServer ${bindir}/testRelay ${bindir}/testAMRAudioStreamer ${bindir}/testDVVideoStreamer ${bindir}/testMP3Receiver ${bindir}/testMP3Streamer ${bindir}/testMPEG1or2AudioVideoStreamer ${bindir}/testMPEG1or2VideoStreamer ${bindir}/testMPEG2TransportStreamer ${bindir}/testMPEG4VideoStreamer ${bindir}/testWAVAudioStreamer ${bindir}/vobStreamer ${bindir}/MPEG2TransportStreamIndexer"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050054FILES_live555-openrtsp = "${bindir}/openRTSP"
55FILES_live555-playsip = "${bindir}/playSIP"
56FILES_live555-mediaserver = "${bindir}/live555MediaServer"