blob: 90a69e5e239a756e287f3503505394a8a34cea27 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001SUMMARY = "Linux DVB API applications and utilities"
2HOMEPAGE = "http://www.linuxtv.org"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6SRC_URI = "https://www.linuxtv.org/hg/dvb-apps/archive/3d43b280298c.tar.bz2;downloadfilename=${BPN}-3d43b280298c.tar.bz2 \
7 file://dvb-scan-table \
8 file://0001-Fix-generate-keynames.patch \
9 file://0003-handle-static-shared-only-build.patch \
10 file://0004-Makefile-remove-test.patch \
11 file://0005-libucsi-optimization-removal.patch \
12 file://0006-CA_SET_PID.patch \
13 file://0001-dvbdate-Remove-Obsoleted-stime-API-calls.patch \
14 "
15SRC_URI[sha256sum] = "f39e2f0ebed7e32bce83522062ad4d414f67fccd5df1b647618524497e15e057"
16S = "${WORKDIR}/${BPN}-3d43b280298c"
17
18inherit perlnative
19
20export enable_static="no"
21
22export PERL_USE_UNSAFE_INC = "1"
23
24do_configure() {
25 sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh
26}
27do_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 cp -R --no-dereference --preserve=mode,links ${S}/util/szap/channels-conf* ${D}/${docdir}/dvb-apps/szap/
35 cp -R --no-dereference --preserve=mode,links ${S}/util/szap/README ${D}/${docdir}/dvb-apps/szap/
36 cp -R --no-dereference --preserve=mode,links ${WORKDIR}/dvb-scan-table/* ${D}/usr/share/dvb
37}
38
39PACKAGES =+ "dvb-evtest dvb-evtest-dbg \
40 dvbapp-tests dvbapp-tests-dbg \
41 dvbdate dvbdate-dbg \
42 dvbtraffic dvbtraffic-dbg \
43 dvbnet dvbnet-dbg \
44 dvb-scan dvb-scan-dbg dvb-scan-data \
45 dvb-azap dvb-azap-dbg \
46 dvb-czap dvb-czap-dbg \
47 dvb-szap dvb-szap-dbg \
48 dvb-tzap dvb-tzap-dbg \
49 dvb-femon dvb-femon-dbg \
50 dvb-zap-data"
51PACKAGES =+ "libdvbapi libdvbcfg libdvben50221 \
52 libesg libucsi libdvbsec"
53
54RDEPENDS:dvbdate =+ "libdvbapi libucsi"
55RDEPENDS:dvbtraffic =+ "libdvbapi"
56RDEPENDS:dvb-scan =+ "libdvbapi libdvbcfg libdvbsec"
57RDEPENDS:dvb-apps =+ "libdvbapi libdvbcfg libdvbsec libdvben50221 libucsi"
58RDEPENDS:dvb-femon =+ "libdvbapi"
59RDEPENDS:dvbnet =+ "libdvbapi"
60
61RCONFLICTS:dvb-evtest = "evtest"
62
63FILES:${PN} = "${bindir} ${datadir}/dvb"
64FILES:${PN}-doc = ""
65FILES:${PN}-dev = "${includedir}"
66FILES:dvb-evtest = "${bindir}/evtest"
67FILES:dvb-evtest-dbg = "${bindir}/.debug/evtest"
68FILES:dvbapp-tests = "${bindir}/*test* "
69FILES:dvbapp-tests-dbg = "${bindir}/.debug/*test*"
70FILES:dvbdate = "${bindir}/dvbdate"
71FILES:dvbdate-dbg = "${bindir}/.debug/dvbdate"
72FILES:dvbtraffic = "${bindir}/dvbtraffic"
73FILES:dvbtraffic-dbg = "${bindir}/.debug/dvbtraffic"
74FILES:dvbnet = "${bindir}/dvbnet"
75FILES:dvbnet-dbg = "${bindir}/.debug/dvbnet"
76FILES:dvb-scan = "${bindir}/*scan "
77FILES:dvb-scan-dbg = "${bindir}/.debug/*scan"
78FILES:dvb-scan-data = "${docdir}/dvb-apps/scan"
79FILES:dvb-azap = "${bindir}/azap"
80FILES:dvb-azap-dbg = "${bindir}/.debug/azap"
81FILES:dvb-czap = "${bindir}/czap"
82FILES:dvb-czap-dbg = "${bindir}/.debug/czap"
83FILES:dvb-szap = "${bindir}/szap"
84FILES:dvb-szap-dbg = "${bindir}/.debug/szap"
85FILES:dvb-tzap = "${bindir}/tzap"
86FILES:dvb-tzap-dbg = "${bindir}/.debug/tzap"
87FILES:dvb-femon = "${bindir}/femon"
88FILES:dvb-femon-dbg = "${bindir}/.debug/femon"
89FILES:dvb-zap-data = "${docdir}/dvb-apps/szap"
90
91python populate_packages:prepend () {
92 dvb_libdir = bb.data.expand('${libdir}', d)
93 do_split_packages(d, dvb_libdir, r'^lib(.*)\.so$', 'lib%s', 'DVB %s package', extra_depends='', allow_links=True)
94 do_split_packages(d, dvb_libdir, r'^lib(.*)\.la$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev')
95 do_split_packages(d, dvb_libdir, r'^lib(.*)\.a$', 'lib%s-dev', 'DVB %s development package', extra_depends='${PN}-dev')
96 do_split_packages(d, dvb_libdir, r'^lib(.*)\.so\.*', 'lib%s', 'DVB %s library', extra_depends='', allow_links=True)
97}
98
99INSANE_SKIP:${PN} = "ldflags"
100INSANE_SKIP:${PN}-dev = "ldflags"
101
102TARGET_CC_ARCH += "${LDFLAGS}"