Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | HOMEPAGE = "http://www.linuxtv.org" |
| 2 | SUMMARY = "Linux DVB API applications and utilities" |
| 3 | |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 6 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 7 | DEPENDS = "v4l-utils-native" |
| 8 | |
| 9 | SRC_URI = " \ |
| 10 | hg://linuxtv.org/hg;module=dvb-apps;protocol=http;name=apps \ |
| 11 | git://linuxtv.org/git/dtv-scan-tables.git;protocol=http;destsuffix=dvb-apps/initial-scan-tables;name=scantables \ |
| 12 | " |
| 13 | SRCREV_apps = "3d43b280298c" |
| 14 | SRCREV_scantables = "ceb11833b35f05813b1f0397a60e0f3b99430aab" |
| 15 | SRCREV_FORMAT = "apps_scantables" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | |
| 17 | S = "${WORKDIR}/${BPN}" |
| 18 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 19 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 20 | EXTRA_OEMAKE = "VERSION_FILE='${STAGING_INCDIR}/linux/dvb/version.h'" |
| 21 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | do_configure() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 23 | sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh |
| 24 | } |
| 25 | |
| 26 | do_compile_append() { |
| 27 | # dvb-apps only support DVBAPI v3, so generate them from the DVBAPI v5 downloaded files |
| 28 | make -C initial-scan-tables clean |
| 29 | make -C initial-scan-tables dvbv3 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | do_install() { |
| 33 | make DESTDIR=${D} install |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 34 | # dvb-apps only support DVBAPI v3, so only install the generated DVBAPI v3 files |
| 35 | make -C initial-scan-tables DATADIR=${D}/${datadir} DVBV3DIR=dvb install_v3 |
| 36 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 37 | install -d ${D}/${bindir} |
| 38 | install -d ${D}/${docdir}/dvb-apps |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 39 | install -d ${D}/${docdir}/dvb-apps/szap |
| 40 | chmod a+rx ${D}/${libdir}/*.so* |
| 41 | |
| 42 | # Install tests |
| 43 | install -m 0755 ${S}/test/setvoltage ${D}${bindir}/test_setvoltage |
| 44 | install -m 0755 ${S}/test/set22k ${D}${bindir}/test_set22k |
| 45 | install -m 0755 ${S}/test/sendburst ${D}${bindir}/test_sendburst |
| 46 | install -m 0755 ${S}/test/diseqc ${D}${bindir}/test_diseqc |
| 47 | install -m 0755 ${S}/test/test_sections ${D}${bindir}/ |
| 48 | install -m 0755 ${S}/test/test_av_play ${D}${bindir}/ |
| 49 | install -m 0755 ${S}/test/test_stillimage ${D}${bindir}/ |
| 50 | install -m 0755 ${S}/test/test_dvr_play ${D}${bindir}/ |
| 51 | install -m 0755 ${S}/test/test_tt ${D}${bindir}/ |
| 52 | install -m 0755 ${S}/test/test_sec_ne ${D}${bindir}/ |
| 53 | install -m 0755 ${S}/test/test_stc ${D}${bindir}/ |
| 54 | install -m 0755 ${S}/test/test_av ${D}${bindir}/ |
| 55 | install -m 0755 ${S}/test/test_vevent ${D}${bindir}/ |
| 56 | install -m 0755 ${S}/test/test_pes ${D}${bindir}/ |
| 57 | install -m 0755 ${S}/test/test_dvr ${D}${bindir}/ |
| 58 | |
| 59 | cp -pPR ${S}/util/szap/channels-conf* ${D}/${docdir}/dvb-apps/szap/ |
| 60 | cp -pPR ${S}/util/szap/README ${D}/${docdir}/dvb-apps/szap/ |
| 61 | } |
| 62 | |
| 63 | python populate_packages_prepend () { |
| 64 | dvb_libdir = bb.data.expand('${libdir}', d) |
| 65 | do_split_packages(d, dvb_libdir, '^lib(.*)\.so$', 'lib%s', 'DVB %s package', extra_depends='', allow_links=True) |
| 66 | do_split_packages(d, dvb_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev') |
| 67 | do_split_packages(d, dvb_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev') |
| 68 | do_split_packages(d, dvb_libdir, '^lib(.*)\.so\.*', 'lib%s', 'DVB %s library', extra_depends='', allow_links=True) |
| 69 | } |
| 70 | |
| 71 | PACKAGES =+ "dvb-evtest dvb-evtest-dbg \ |
| 72 | dvbapp-tests dvbapp-tests-dbg \ |
| 73 | dvbdate dvbdate-dbg \ |
| 74 | dvbtraffic dvbtraffic-dbg \ |
| 75 | dvbnet dvbnet-dbg \ |
| 76 | dvb-scan dvb-scan-dbg dvb-scan-data \ |
| 77 | dvb-azap dvb-azap-dbg \ |
| 78 | dvb-czap dvb-czap-dbg \ |
| 79 | dvb-szap dvb-szap-dbg \ |
| 80 | dvb-tzap dvb-tzap-dbg \ |
| 81 | dvb-femon dvb-femon-dbg \ |
| 82 | dvb-zap-data" |
| 83 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 84 | # Expose the packages from the above spitting |
| 85 | PACKAGES =+ "libdvbapi libdvbcfg libdvben50221 \ |
| 86 | libesg libucsi libdvbsec" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 87 | |
| 88 | FILES_${PN} = "${bindir} ${datadir}/dvb" |
| 89 | FILES_${PN}-doc = "" |
| 90 | FILES_${PN}-dev = "${includedir}" |
| 91 | |
| 92 | FILES_dvb-evtest = "${bindir}/evtest" |
| 93 | FILES_dvb-evtest-dbg = "${bindir}/.debug/evtest" |
| 94 | RCONFLICTS_dvb-evtest = "evtest" |
| 95 | |
| 96 | FILES_dvbapp-tests = "${bindir}/*test* " |
| 97 | FILES_dvbapp-tests-dbg = "${bindir}/.debug/*test*" |
| 98 | |
| 99 | FILES_dvbdate = "${bindir}/dvbdate" |
| 100 | FILES_dvbdate-dbg = "${bindir}/.debug/dvbdate" |
| 101 | |
| 102 | FILES_dvbtraffic = "${bindir}/dvbtraffic" |
| 103 | FILES_dvbtraffic-dbg = "${bindir}/.debug/dvbtraffic" |
| 104 | |
| 105 | FILES_dvbnet = "${bindir}/dvbnet" |
| 106 | FILES_dvbnet-dbg = "${bindir}/.debug/dvbnet" |
| 107 | |
| 108 | FILES_dvb-scan = "${bindir}/*scan " |
| 109 | FILES_dvb-scan-dbg = "${bindir}/.debug/*scan" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 110 | FILES_dvb-scan-data = "${datadir}/dvb" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 111 | |
| 112 | FILES_dvb-azap = "${bindir}/azap" |
| 113 | FILES_dvb-azap-dbg = "${bindir}/.debug/azap" |
| 114 | |
| 115 | FILES_dvb-czap = "${bindir}/czap" |
| 116 | FILES_dvb-czap-dbg = "${bindir}/.debug/czap" |
| 117 | |
| 118 | FILES_dvb-szap = "${bindir}/szap" |
| 119 | FILES_dvb-szap-dbg = "${bindir}/.debug/szap" |
| 120 | |
| 121 | FILES_dvb-tzap = "${bindir}/tzap" |
| 122 | FILES_dvb-tzap-dbg = "${bindir}/.debug/tzap" |
| 123 | |
| 124 | FILES_dvb-femon = "${bindir}/femon" |
| 125 | FILES_dvb-femon-dbg = "${bindir}/.debug/femon" |
| 126 | |
| 127 | FILES_dvb-zap-data = "${docdir}/dvb-apps/szap" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 128 | |
| 129 | RDEPENDS_dvbdate =+ "libdvbapi libucsi" |
| 130 | RDEPENDS_dvbtraffic =+ "libdvbapi" |
| 131 | RDEPENDS_dvb-scan =+ "libdvbapi libdvbcfg libdvbsec" |
| 132 | RDEPENDS_dvb-apps =+ "libdvbapi libdvbcfg libdvbsec libdvben50221 libucsi" |
| 133 | RDEPENDS_dvb-femon =+ "libdvbapi" |
| 134 | RDEPENDS_dvbnet =+ "libdvbapi" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 135 | |
| 136 | PNBLACKLIST[dvb-apps] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130603/ - the recipe will be removed on 2017-09-01 unless the issue is fixed" |