Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | SUMMARY = "Linux DVB API applications and utilities" |
| 2 | HOMEPAGE = "http://www.linuxtv.org" |
| 3 | LICENSE = "GPL-2.0-only" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 5 | |
| 6 | SRC_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 | " |
| 15 | SRC_URI[sha256sum] = "f39e2f0ebed7e32bce83522062ad4d414f67fccd5df1b647618524497e15e057" |
| 16 | S = "${WORKDIR}/${BPN}-3d43b280298c" |
| 17 | |
| 18 | inherit perlnative |
| 19 | |
| 20 | export enable_static="no" |
| 21 | |
| 22 | export PERL_USE_UNSAFE_INC = "1" |
| 23 | |
| 24 | do_configure() { |
| 25 | sed -i -e s:/usr/include:${STAGING_INCDIR}:g util/av7110_loadkeys/generate-keynames.sh |
| 26 | } |
| 27 | do_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 | |
| 39 | PACKAGES =+ "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" |
| 51 | PACKAGES =+ "libdvbapi libdvbcfg libdvben50221 \ |
| 52 | libesg libucsi libdvbsec" |
| 53 | |
| 54 | RDEPENDS:dvbdate =+ "libdvbapi libucsi" |
| 55 | RDEPENDS:dvbtraffic =+ "libdvbapi" |
| 56 | RDEPENDS:dvb-scan =+ "libdvbapi libdvbcfg libdvbsec" |
| 57 | RDEPENDS:dvb-apps =+ "libdvbapi libdvbcfg libdvbsec libdvben50221 libucsi" |
| 58 | RDEPENDS:dvb-femon =+ "libdvbapi" |
| 59 | RDEPENDS:dvbnet =+ "libdvbapi" |
| 60 | |
| 61 | RCONFLICTS:dvb-evtest = "evtest" |
| 62 | |
| 63 | FILES:${PN} = "${bindir} ${datadir}/dvb" |
| 64 | FILES:${PN}-doc = "" |
| 65 | FILES:${PN}-dev = "${includedir}" |
| 66 | FILES:dvb-evtest = "${bindir}/evtest" |
| 67 | FILES:dvb-evtest-dbg = "${bindir}/.debug/evtest" |
| 68 | FILES:dvbapp-tests = "${bindir}/*test* " |
| 69 | FILES:dvbapp-tests-dbg = "${bindir}/.debug/*test*" |
| 70 | FILES:dvbdate = "${bindir}/dvbdate" |
| 71 | FILES:dvbdate-dbg = "${bindir}/.debug/dvbdate" |
| 72 | FILES:dvbtraffic = "${bindir}/dvbtraffic" |
| 73 | FILES:dvbtraffic-dbg = "${bindir}/.debug/dvbtraffic" |
| 74 | FILES:dvbnet = "${bindir}/dvbnet" |
| 75 | FILES:dvbnet-dbg = "${bindir}/.debug/dvbnet" |
| 76 | FILES:dvb-scan = "${bindir}/*scan " |
| 77 | FILES:dvb-scan-dbg = "${bindir}/.debug/*scan" |
| 78 | FILES:dvb-scan-data = "${docdir}/dvb-apps/scan" |
| 79 | FILES:dvb-azap = "${bindir}/azap" |
| 80 | FILES:dvb-azap-dbg = "${bindir}/.debug/azap" |
| 81 | FILES:dvb-czap = "${bindir}/czap" |
| 82 | FILES:dvb-czap-dbg = "${bindir}/.debug/czap" |
| 83 | FILES:dvb-szap = "${bindir}/szap" |
| 84 | FILES:dvb-szap-dbg = "${bindir}/.debug/szap" |
| 85 | FILES:dvb-tzap = "${bindir}/tzap" |
| 86 | FILES:dvb-tzap-dbg = "${bindir}/.debug/tzap" |
| 87 | FILES:dvb-femon = "${bindir}/femon" |
| 88 | FILES:dvb-femon-dbg = "${bindir}/.debug/femon" |
| 89 | FILES:dvb-zap-data = "${docdir}/dvb-apps/szap" |
| 90 | |
| 91 | python 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 | |
| 99 | INSANE_SKIP:${PN} = "ldflags" |
| 100 | INSANE_SKIP:${PN}-dev = "ldflags" |
| 101 | |
| 102 | TARGET_CC_ARCH += "${LDFLAGS}" |