Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | # only latest live version stays on http://www.live555.com/liveMedia/public/, add mirror for older |
| 16 | MIRRORS += "http://www.live555.com/liveMedia/public/ http://distcache.FreeBSD.org/ports-distfiles/ \n" |
| 17 | |
| 18 | S = "${WORKDIR}/live" |
| 19 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 20 | |
| 21 | do_configure() { |
| 22 | cp ${WORKDIR}/config.linux-cross . |
| 23 | echo "COMPILE_OPTS+=" -fPIC "" >> config.linux-cross |
| 24 | ./genMakefiles linux-cross |
| 25 | } |
| 26 | |
| 27 | do_compile() { |
| 28 | make |
| 29 | } |
| 30 | |
| 31 | do_install() { |
| 32 | install -d ${D}${includedir}/BasicUsageEnvironment |
| 33 | install -d ${D}${includedir}/groupsock |
| 34 | install -d ${D}${includedir}/liveMedia |
| 35 | install -d ${D}${includedir}/UsageEnvironment |
| 36 | install -d ${D}${libdir} |
| 37 | cp -R --no-dereference --preserve=mode,links -v ${S}/BasicUsageEnvironment/include/*.hh ${D}${includedir}/BasicUsageEnvironment/ |
| 38 | cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.h ${D}${includedir}/groupsock/ |
| 39 | cp -R --no-dereference --preserve=mode,links -v ${S}/groupsock/include/*.hh ${D}${includedir}/groupsock/ |
| 40 | cp -R --no-dereference --preserve=mode,links -v ${S}/liveMedia/include/*.hh ${D}${includedir}/liveMedia/ |
| 41 | cp -R --no-dereference --preserve=mode,links -v ${S}/UsageEnvironment/include/*.hh ${D}${includedir}/UsageEnvironment/ |
| 42 | # Find all the headers |
| 43 | for i in $(find . -name "*.hh") $(find . -name "*.h") ; do |
| 44 | install ${i} ${D}${includedir} |
| 45 | done |
| 46 | cp ${S}/*/*.a ${D}${libdir} |
| 47 | install -d ${D}${bindir} |
| 48 | for i in MPEG2TransportStreamIndexer openRTSP playSIP sapWatch testMPEG1or2AudioVideoToDarwin testMPEG1or2ProgramToTransportStream testMPEG1or2Splitter testMPEG1or2VideoReceiver testMPEG2TransportStreamTrickPlay testMPEG4VideoToDarwin testOnDemandRTSPServer testRelay testAMRAudioStreamer testDVVideoStreamer testMP3Receiver testMP3Streamer testMPEG1or2AudioVideoStreamer testMPEG1or2VideoStreamer testMPEG2TransportStreamer testMPEG4VideoStreamer testWAVAudioStreamer vobStreamer; do |
| 49 | install -m 0755 ${S}/testProgs/${i} ${D}${bindir}/ |
| 50 | done |
| 51 | install -m 0755 ${S}/mediaServer/live555MediaServer ${D}${bindir}/ |
| 52 | } |
| 53 | |
| 54 | PACKAGES =+ " live555-openrtsp live555-playsip live555-mediaserver" |
| 55 | FILES_${PN} = "${bindir}/sapWatch ${bindir}/testMPEG1or2AudioVideoToDarwin ${bindir}/testMPEG1or2ProgramToTransportStream ${bindir}/testMPEG1or2Splitter ${bindir}/testMPEG1or2VideoReceiver ${bindir}/testMPEG2TransportStreamTrickPlay ${bindir}/testMPEG4VideoToDarwin ${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" |
| 56 | FILES_live555-openrtsp = "${bindir}/openRTSP" |
| 57 | FILES_live555-playsip = "${bindir}/playSIP" |
| 58 | FILES_live555-mediaserver = "${bindir}/live555MediaServer" |