1SUMMARY = "The GNU Compact Disc Input and Control library (libcdio) contains a library for CD-ROM and CD image access." 2HOMEPAGE = "http://www.gnu.org/software/libcdio/" 3SECTION = "libs" 4LICENSE = "GPL-3.0-or-later" 5LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" 6 7SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.bz2 \ 8 file://0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch \ 9 file://Drop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch \ 10 " 11 12SRC_URI[sha256sum] = "8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b" 13 14inherit autotools pkgconfig 15 16PACKAGECONFIG ??= "cdda-player" 17PACKAGECONFIG[cdda-player] = "--with-cdda-player,--without-cdda-player,ncurses" 18PACKAGECONFIG[cddb] = "--enable-cddb,--disable-cddb,libcddb" 19PACKAGECONFIG[vcd-info] = "--enable-vcd-info,--disable-vcd-info,vcdimager" 20 21# add -D_LARGEFILE64_SOURCE for 32bit targets 22CFLAGS += "${@['-D_LARGEFILE64_SOURCE',''][d.getVar('SITEINFO_BITS') != '32']}" 23 24PACKAGES += "${PN}-utils" 25 26FILES:${PN} = "${libdir}/${BPN}${SOLIB}" 27FILES:${PN}-utils = "${bindir}/*" 28 29python libcdio_split_packages() { 30 libdir = d.expand('${libdir}') 31 do_split_packages(d, libdir, r'^lib(.*)\.so\..*', 'lib%s', 'libcdio %s library', extra_depends='', allow_links=True) 32} 33 34PACKAGESPLITFUNCS =+ "libcdio_split_packages" 35