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