blob: 3f491181de0837cb30f038bc02a454d97aada810 [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 \
14 "
15
16S = "${WORKDIR}/${BPN}"
17
18inherit perlnative
19
20export enable_static="no"
21
22do_configure() {
23 sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh
24}
25do_install() {
26 make DESTDIR=${D} install
27 install -d ${D}/${bindir}
28 install -d ${D}/${docdir}/dvb-apps
29 install -d ${D}/${docdir}/dvb-apps/scan
30 install -d ${D}/${docdir}/dvb-apps/szap
31 chmod a+rx ${D}/${libdir}/*.so*
Brad Bishop19323692019-04-05 15:28:33 -040032 cp -R --no-dereference --preserve=mode,links ${S}/util/szap/channels-conf* ${D}/${docdir}/dvb-apps/szap/
33 cp -R --no-dereference --preserve=mode,links ${S}/util/szap/README ${D}/${docdir}/dvb-apps/szap/
34 cp -R --no-dereference --preserve=mode,links ${WORKDIR}/dvb-scan-table/* ${D}/usr/share/dvb
35}
36
37PACKAGES =+ "dvb-evtest dvb-evtest-dbg \
38 dvbapp-tests dvbapp-tests-dbg \
39 dvbdate dvbdate-dbg \
40 dvbtraffic dvbtraffic-dbg \
41 dvbnet dvbnet-dbg \
42 dvb-scan dvb-scan-dbg dvb-scan-data \
43 dvb-azap dvb-azap-dbg \
44 dvb-czap dvb-czap-dbg \
45 dvb-szap dvb-szap-dbg \
46 dvb-tzap dvb-tzap-dbg \
47 dvb-femon dvb-femon-dbg \
48 dvb-zap-data"
49PACKAGES =+ "libdvbapi libdvbcfg libdvben50221 \
50 libesg libucsi libdvbsec"
51
52RDEPENDS_dvbdate =+ "libdvbapi libucsi"
53RDEPENDS_dvbtraffic =+ "libdvbapi"
54RDEPENDS_dvb-scan =+ "libdvbapi libdvbcfg libdvbsec"
55RDEPENDS_dvb-apps =+ "libdvbapi libdvbcfg libdvbsec libdvben50221 libucsi"
56RDEPENDS_dvb-femon =+ "libdvbapi"
57RDEPENDS_dvbnet =+ "libdvbapi"
58
59RCONFLICTS_dvb-evtest = "evtest"
60
Brad Bishopc342db32019-05-15 21:57:59 -040061FILES_${PN} = "${bindir} ${datadir}/dvb"
Brad Bishop19323692019-04-05 15:28:33 -040062FILES_${PN}-doc = ""
63FILES_${PN}-dev = "${includedir}"
64FILES_dvb-evtest = "${bindir}/evtest"
65FILES_dvb-evtest-dbg = "${bindir}/.debug/evtest"
66FILES_dvbapp-tests = "${bindir}/*test* "
67FILES_dvbapp-tests-dbg = "${bindir}/.debug/*test*"
68FILES_dvbdate = "${bindir}/dvbdate"
69FILES_dvbdate-dbg = "${bindir}/.debug/dvbdate"
70FILES_dvbtraffic = "${bindir}/dvbtraffic"
71FILES_dvbtraffic-dbg = "${bindir}/.debug/dvbtraffic"
72FILES_dvbnet = "${bindir}/dvbnet"
73FILES_dvbnet-dbg = "${bindir}/.debug/dvbnet"
74FILES_dvb-scan = "${bindir}/*scan "
75FILES_dvb-scan-dbg = "${bindir}/.debug/*scan"
76FILES_dvb-scan-data = "${docdir}/dvb-apps/scan"
77FILES_dvb-azap = "${bindir}/azap"
78FILES_dvb-azap-dbg = "${bindir}/.debug/azap"
79FILES_dvb-czap = "${bindir}/czap"
80FILES_dvb-czap-dbg = "${bindir}/.debug/czap"
81FILES_dvb-szap = "${bindir}/szap"
82FILES_dvb-szap-dbg = "${bindir}/.debug/szap"
83FILES_dvb-tzap = "${bindir}/tzap"
84FILES_dvb-tzap-dbg = "${bindir}/.debug/tzap"
85FILES_dvb-femon = "${bindir}/femon"
86FILES_dvb-femon-dbg = "${bindir}/.debug/femon"
87FILES_dvb-zap-data = "${docdir}/dvb-apps/szap"
88
89python populate_packages_prepend () {
90 dvb_libdir = bb.data.expand('${libdir}', d)
91 do_split_packages(d, dvb_libdir, '^lib(.*)\.so$', 'lib%s', 'DVB %s package', extra_depends='', allow_links=True)
92 do_split_packages(d, dvb_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev')
93 do_split_packages(d, dvb_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev')
94 do_split_packages(d, dvb_libdir, '^lib(.*)\.so\.*', 'lib%s', 'DVB %s library', extra_depends='', allow_links=True)
95}
96
97INSANE_SKIP_${PN} = "ldflags"
98INSANE_SKIP_${PN}-dev = "ldflags"
99
Brad Bishop19323692019-04-05 15:28:33 -0400100TARGET_CC_ARCH += "${LDFLAGS}"