1d159c7fbSAndrew Geissler# live555 OE build file 2d159c7fbSAndrew Geissler# Copyright (C) 2005, Koninklijke Philips Electronics NV. All Rights Reserved 3d159c7fbSAndrew Geissler# Released under the MIT license (see packages/COPYING) 4d159c7fbSAndrew Geissler 5d159c7fbSAndrew GeisslerDESCRIPTION = "LIVE555 Streaming Media libraries" 6d159c7fbSAndrew GeisslerHOMEPAGE = "http://live.com/" 79aee5003SAndrew GeisslerLICENSE = "LGPL-3.0-only" 8d159c7fbSAndrew GeisslerSECTION = "devel" 9d159c7fbSAndrew Geissler 10d159c7fbSAndrew GeisslerDEPENDS = "openssl" 11d159c7fbSAndrew Geissler 12d159c7fbSAndrew GeisslerURLV = "${@d.getVar('PV')[0:4]}.${@d.getVar('PV')[4:6]}.${@d.getVar('PV')[6:8]}" 13d159c7fbSAndrew GeisslerSRC_URI = "https://download.videolan.org/pub/contrib/live555/live.${URLV}.tar.gz \ 14d159c7fbSAndrew Geissler file://config.linux-cross" 15d159c7fbSAndrew Geissler 16d159c7fbSAndrew Geissler# only latest live version stays on http://www.live555.com/liveMedia/public/, add mirror for older 17d159c7fbSAndrew GeisslerMIRRORS += "http://www.live555.com/liveMedia/public/ http://download.videolan.org/contrib/live555/ \n" 18d159c7fbSAndrew Geissler 19d159c7fbSAndrew GeisslerSRC_URI[sha256sum] = "ce95a1c79f6d18e959f9dc129b8529b711c60e76754acc285e60946303b923ec" 20d159c7fbSAndrew Geissler 21d159c7fbSAndrew GeisslerS = "${WORKDIR}/live" 22d159c7fbSAndrew Geissler 23d159c7fbSAndrew GeisslerLIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ 24d159c7fbSAndrew Geissler file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02 \ 25d159c7fbSAndrew Geissler " 26d159c7fbSAndrew Geissler 27d159c7fbSAndrew GeisslerTARGET_CC_ARCH += "${LDFLAGS}" 28d159c7fbSAndrew Geissler 29d159c7fbSAndrew Geisslerdo_configure() { 30*edff4923SAndrew Geissler cp ${UNPACKDIR}/config.linux-cross . 31d159c7fbSAndrew Geissler echo "COMPILE_OPTS+=" -fPIC -DXLOCALE_NOT_USED"" >> config.linux-cross 32d159c7fbSAndrew Geissler ./genMakefiles linux-cross 33d159c7fbSAndrew Geissler} 34d159c7fbSAndrew Geissler 35d159c7fbSAndrew Geisslerdo_install() { 36d159c7fbSAndrew Geissler install -d ${D}${includedir}/BasicUsageEnvironment 37d159c7fbSAndrew Geissler install -d ${D}${includedir}/groupsock 38d159c7fbSAndrew Geissler install -d ${D}${includedir}/liveMedia 39d159c7fbSAndrew Geissler install -d ${D}${includedir}/UsageEnvironment 40d159c7fbSAndrew Geissler install -d ${D}${libdir} 41d159c7fbSAndrew Geissler cp -R --no-dereference --preserve=mode,links -v ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/ 42d159c7fbSAndrew Geissler cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/ 43d159c7fbSAndrew Geissler cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/ 44d159c7fbSAndrew Geissler cp -R --no-dereference --preserve=mode,links -v ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/ 45d159c7fbSAndrew Geissler cp -R --no-dereference --preserve=mode,links -v ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/ 46d159c7fbSAndrew Geissler # Find all the headers 47d159c7fbSAndrew Geissler for i in $(find . -name "*.hh") $(find . -name "*.h") ; do 48d159c7fbSAndrew Geissler install ${i} ${D}${includedir} 49d159c7fbSAndrew Geissler done 50d159c7fbSAndrew Geissler cp ${S}/*/*.a ${D}${libdir} 51d159c7fbSAndrew Geissler install -d ${D}${bindir} 52d159c7fbSAndrew Geissler for i in MPEG2TransportStreamIndexer openRTSP playSIP sapWatch testMPEG1or2ProgramToTransportStream testMPEG1or2Splitter testMPEG1or2VideoReceiver testMPEG2TransportStreamTrickPlay testOnDemandRTSPServer testRelay testAMRAudioStreamer testDVVideoStreamer testMP3Receiver testMP3Streamer testMPEG1or2AudioVideoStreamer testMPEG1or2VideoStreamer testMPEG2TransportStreamer testMPEG4VideoStreamer testWAVAudioStreamer vobStreamer; do 53d159c7fbSAndrew Geissler install -m 0755 ${S}/testProgs/${i} ${D}${bindir}/ 54d159c7fbSAndrew Geissler done 55d159c7fbSAndrew Geissler install -m 0755 ${S}/mediaServer/live555MediaServer ${D}${bindir}/ 56d159c7fbSAndrew Geissler} 57d159c7fbSAndrew Geissler 589aee5003SAndrew GeisslerRDEPENDS:${PN}-dev = "" 59d159c7fbSAndrew GeisslerPACKAGES =+ "live555-openrtsp live555-playsip live555-mediaserver live555-examples" 60d159c7fbSAndrew GeisslerFILES:live555-openrtsp = "${bindir}/openRTSP" 61d159c7fbSAndrew GeisslerFILES:live555-playsip = "${bindir}/playSIP" 62d159c7fbSAndrew GeisslerFILES:live555-mediaserver = "${bindir}/live555MediaServer" 63d159c7fbSAndrew GeisslerFILES:live555-examples = "${bindir}/*" 64