blob: 977a9e7922bfc1808701f0e6944f42dc2b06085c [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 \
Brad Bishop19323692019-04-05 15:28:33 -040010 file://0003-handle-static-shared-only-build.patch \
11 file://0004-Makefile-remove-test.patch \
12 file://0005-libucsi-optimization-removal.patch \
13 file://0006-CA_SET_PID.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050014 file://0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch \
Brad Bishop19323692019-04-05 15:28:33 -040015 "
16
17S = "${WORKDIR}/${BPN}"
18
19inherit perlnative
20
21export enable_static="no"
22
Andrew Geissler97771a32021-03-05 15:23:11 -060023export PERL_USE_UNSAFE_INC = "1"
24
Brad Bishop19323692019-04-05 15:28:33 -040025do_configure() {
26 sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh
27}
28do_install() {
29 make DESTDIR=${D} install
30 install -d ${D}/${bindir}
31 install -d ${D}/${docdir}/dvb-apps
32 install -d ${D}/${docdir}/dvb-apps/scan
33 install -d ${D}/${docdir}/dvb-apps/szap
34 chmod a+rx ${D}/${libdir}/*.so*
Brad Bishop19323692019-04-05 15:28:33 -040035 cp -R --no-dereference --preserve=mode,links ${S}/util/szap/channels-conf* ${D}/${docdir}/dvb-apps/szap/
36 cp -R --no-dereference --preserve=mode,links ${S}/util/szap/README ${D}/${docdir}/dvb-apps/szap/
37 cp -R --no-dereference --preserve=mode,links ${WORKDIR}/dvb-scan-table/* ${D}/usr/share/dvb
38}
39
40PACKAGES =+ "dvb-evtest dvb-evtest-dbg \
41 dvbapp-tests dvbapp-tests-dbg \
42 dvbdate dvbdate-dbg \
43 dvbtraffic dvbtraffic-dbg \
44 dvbnet dvbnet-dbg \
45 dvb-scan dvb-scan-dbg dvb-scan-data \
46 dvb-azap dvb-azap-dbg \
47 dvb-czap dvb-czap-dbg \
48 dvb-szap dvb-szap-dbg \
49 dvb-tzap dvb-tzap-dbg \
50 dvb-femon dvb-femon-dbg \
51 dvb-zap-data"
52PACKAGES =+ "libdvbapi libdvbcfg libdvben50221 \
53 libesg libucsi libdvbsec"
54
55RDEPENDS_dvbdate =+ "libdvbapi libucsi"
56RDEPENDS_dvbtraffic =+ "libdvbapi"
57RDEPENDS_dvb-scan =+ "libdvbapi libdvbcfg libdvbsec"
58RDEPENDS_dvb-apps =+ "libdvbapi libdvbcfg libdvbsec libdvben50221 libucsi"
59RDEPENDS_dvb-femon =+ "libdvbapi"
60RDEPENDS_dvbnet =+ "libdvbapi"
61
62RCONFLICTS_dvb-evtest = "evtest"
63
Brad Bishopc342db32019-05-15 21:57:59 -040064FILES_${PN} = "${bindir} ${datadir}/dvb"
Brad Bishop19323692019-04-05 15:28:33 -040065FILES_${PN}-doc = ""
66FILES_${PN}-dev = "${includedir}"
67FILES_dvb-evtest = "${bindir}/evtest"
68FILES_dvb-evtest-dbg = "${bindir}/.debug/evtest"
69FILES_dvbapp-tests = "${bindir}/*test* "
70FILES_dvbapp-tests-dbg = "${bindir}/.debug/*test*"
71FILES_dvbdate = "${bindir}/dvbdate"
72FILES_dvbdate-dbg = "${bindir}/.debug/dvbdate"
73FILES_dvbtraffic = "${bindir}/dvbtraffic"
74FILES_dvbtraffic-dbg = "${bindir}/.debug/dvbtraffic"
75FILES_dvbnet = "${bindir}/dvbnet"
76FILES_dvbnet-dbg = "${bindir}/.debug/dvbnet"
77FILES_dvb-scan = "${bindir}/*scan "
78FILES_dvb-scan-dbg = "${bindir}/.debug/*scan"
79FILES_dvb-scan-data = "${docdir}/dvb-apps/scan"
80FILES_dvb-azap = "${bindir}/azap"
81FILES_dvb-azap-dbg = "${bindir}/.debug/azap"
82FILES_dvb-czap = "${bindir}/czap"
83FILES_dvb-czap-dbg = "${bindir}/.debug/czap"
84FILES_dvb-szap = "${bindir}/szap"
85FILES_dvb-szap-dbg = "${bindir}/.debug/szap"
86FILES_dvb-tzap = "${bindir}/tzap"
87FILES_dvb-tzap-dbg = "${bindir}/.debug/tzap"
88FILES_dvb-femon = "${bindir}/femon"
89FILES_dvb-femon-dbg = "${bindir}/.debug/femon"
90FILES_dvb-zap-data = "${docdir}/dvb-apps/szap"
91
92python populate_packages_prepend () {
93 dvb_libdir = bb.data.expand('${libdir}', d)
94 do_split_packages(d, dvb_libdir, '^lib(.*)\.so$', 'lib%s', 'DVB %s package', extra_depends='', allow_links=True)
95 do_split_packages(d, dvb_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev')
96 do_split_packages(d, dvb_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev')
97 do_split_packages(d, dvb_libdir, '^lib(.*)\.so\.*', 'lib%s', 'DVB %s library', extra_depends='', allow_links=True)
98}
99
100INSANE_SKIP_${PN} = "ldflags"
101INSANE_SKIP_${PN}-dev = "ldflags"
102
Brad Bishop19323692019-04-05 15:28:33 -0400103TARGET_CC_ARCH += "${LDFLAGS}"