Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | SUMMARY = "Linux DVB API applications and utilities" |
| 2 | HOMEPAGE = "http://www.linuxtv.org" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | SRCREV = "3d43b280298c39a67d1d889e01e173f52c12da35" |
| 6 | |
| 7 | SRC_URI = "hg://linuxtv.org/hg;module=dvb-apps;protocol=http \ |
| 8 | file://dvb-fe-xc5000c-4.1.30.7.fw \ |
| 9 | file://dvb-scan-table \ |
| 10 | file://0001-Fix-generate-keynames.patch \ |
| 11 | file://0002-Fix-compiler-warning-flags.patch \ |
| 12 | file://0003-handle-static-shared-only-build.patch \ |
| 13 | file://0004-Makefile-remove-test.patch \ |
| 14 | file://0005-libucsi-optimization-removal.patch \ |
| 15 | file://0006-CA_SET_PID.patch \ |
| 16 | " |
| 17 | |
| 18 | S = "${WORKDIR}/${BPN}" |
| 19 | |
| 20 | inherit perlnative |
| 21 | |
| 22 | export enable_static="no" |
| 23 | |
| 24 | do_configure() { |
| 25 | sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh |
| 26 | } |
| 27 | do_install() { |
| 28 | make DESTDIR=${D} install |
| 29 | install -d ${D}/${bindir} |
| 30 | install -d ${D}/${docdir}/dvb-apps |
| 31 | install -d ${D}/${docdir}/dvb-apps/scan |
| 32 | install -d ${D}/${docdir}/dvb-apps/szap |
| 33 | chmod a+rx ${D}/${libdir}/*.so* |
| 34 | if [ "${DVB_WINTV_TUNER}" = "true" ]; then |
| 35 | install -d ${D}/lib/firmware |
| 36 | install -m 0644 ${WORKDIR}/*.fw ${D}/lib/firmware/ |
| 37 | fi |
| 38 | cp -R --no-dereference --preserve=mode,links ${S}/util/szap/channels-conf* ${D}/${docdir}/dvb-apps/szap/ |
| 39 | cp -R --no-dereference --preserve=mode,links ${S}/util/szap/README ${D}/${docdir}/dvb-apps/szap/ |
| 40 | cp -R --no-dereference --preserve=mode,links ${WORKDIR}/dvb-scan-table/* ${D}/usr/share/dvb |
| 41 | } |
| 42 | |
| 43 | PACKAGES =+ "dvb-evtest dvb-evtest-dbg \ |
| 44 | dvbapp-tests dvbapp-tests-dbg \ |
| 45 | dvbdate dvbdate-dbg \ |
| 46 | dvbtraffic dvbtraffic-dbg \ |
| 47 | dvbnet dvbnet-dbg \ |
| 48 | dvb-scan dvb-scan-dbg dvb-scan-data \ |
| 49 | dvb-azap dvb-azap-dbg \ |
| 50 | dvb-czap dvb-czap-dbg \ |
| 51 | dvb-szap dvb-szap-dbg \ |
| 52 | dvb-tzap dvb-tzap-dbg \ |
| 53 | dvb-femon dvb-femon-dbg \ |
| 54 | dvb-zap-data" |
| 55 | PACKAGES =+ "libdvbapi libdvbcfg libdvben50221 \ |
| 56 | libesg libucsi libdvbsec" |
| 57 | |
| 58 | RDEPENDS_dvbdate =+ "libdvbapi libucsi" |
| 59 | RDEPENDS_dvbtraffic =+ "libdvbapi" |
| 60 | RDEPENDS_dvb-scan =+ "libdvbapi libdvbcfg libdvbsec" |
| 61 | RDEPENDS_dvb-apps =+ "libdvbapi libdvbcfg libdvbsec libdvben50221 libucsi" |
| 62 | RDEPENDS_dvb-femon =+ "libdvbapi" |
| 63 | RDEPENDS_dvbnet =+ "libdvbapi" |
| 64 | |
| 65 | RCONFLICTS_dvb-evtest = "evtest" |
| 66 | |
| 67 | FILES_${PN} = "${bindir} ${datadir}/dvb lib/firmware" |
| 68 | FILES_${PN}-doc = "" |
| 69 | FILES_${PN}-dev = "${includedir}" |
| 70 | FILES_dvb-evtest = "${bindir}/evtest" |
| 71 | FILES_dvb-evtest-dbg = "${bindir}/.debug/evtest" |
| 72 | FILES_dvbapp-tests = "${bindir}/*test* " |
| 73 | FILES_dvbapp-tests-dbg = "${bindir}/.debug/*test*" |
| 74 | FILES_dvbdate = "${bindir}/dvbdate" |
| 75 | FILES_dvbdate-dbg = "${bindir}/.debug/dvbdate" |
| 76 | FILES_dvbtraffic = "${bindir}/dvbtraffic" |
| 77 | FILES_dvbtraffic-dbg = "${bindir}/.debug/dvbtraffic" |
| 78 | FILES_dvbnet = "${bindir}/dvbnet" |
| 79 | FILES_dvbnet-dbg = "${bindir}/.debug/dvbnet" |
| 80 | FILES_dvb-scan = "${bindir}/*scan " |
| 81 | FILES_dvb-scan-dbg = "${bindir}/.debug/*scan" |
| 82 | FILES_dvb-scan-data = "${docdir}/dvb-apps/scan" |
| 83 | FILES_dvb-azap = "${bindir}/azap" |
| 84 | FILES_dvb-azap-dbg = "${bindir}/.debug/azap" |
| 85 | FILES_dvb-czap = "${bindir}/czap" |
| 86 | FILES_dvb-czap-dbg = "${bindir}/.debug/czap" |
| 87 | FILES_dvb-szap = "${bindir}/szap" |
| 88 | FILES_dvb-szap-dbg = "${bindir}/.debug/szap" |
| 89 | FILES_dvb-tzap = "${bindir}/tzap" |
| 90 | FILES_dvb-tzap-dbg = "${bindir}/.debug/tzap" |
| 91 | FILES_dvb-femon = "${bindir}/femon" |
| 92 | FILES_dvb-femon-dbg = "${bindir}/.debug/femon" |
| 93 | FILES_dvb-zap-data = "${docdir}/dvb-apps/szap" |
| 94 | |
| 95 | python populate_packages_prepend () { |
| 96 | dvb_libdir = bb.data.expand('${libdir}', d) |
| 97 | do_split_packages(d, dvb_libdir, '^lib(.*)\.so$', 'lib%s', 'DVB %s package', extra_depends='', allow_links=True) |
| 98 | do_split_packages(d, dvb_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev') |
| 99 | do_split_packages(d, dvb_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev') |
| 100 | do_split_packages(d, dvb_libdir, '^lib(.*)\.so\.*', 'lib%s', 'DVB %s library', extra_depends='', allow_links=True) |
| 101 | } |
| 102 | |
| 103 | INSANE_SKIP_${PN} = "ldflags" |
| 104 | INSANE_SKIP_${PN}-dev = "ldflags" |
| 105 | |
| 106 | DVB_WINTV_TUNER = "true" |
| 107 | TARGET_CC_ARCH += "${LDFLAGS}" |