xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-multimedia/libcdio/libcdio_2.1.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "The GNU Compact Disc Input and Control library (libcdio) contains a library for CD-ROM and CD image access."
2*4882a593SmuzhiyunHOMEPAGE = "http://www.gnu.org/software/libcdio/"
3*4882a593SmuzhiyunSECTION = "libs"
4*4882a593SmuzhiyunLICENSE = "GPL-3.0-or-later"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.bz2 \
8*4882a593Smuzhiyun           file://0001-Fix-a-few-Werror-format-security-errors-with-mvprint.patch \
9*4882a593Smuzhiyun           "
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI[md5sum] = "aa7629e8f73662a762f64c444b901055"
12*4882a593SmuzhiyunSRC_URI[sha256sum] = "8550e9589dbd594bfac93b81ecf129b1dc9d0d51e90f9696f1b2f9b2af32712b"
13*4882a593Smuzhiyun
14*4882a593Smuzhiyuninherit autotools pkgconfig
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunPACKAGECONFIG ??= "cdda-player"
17*4882a593SmuzhiyunPACKAGECONFIG[cdda-player] = "--with-cdda-player,--without-cdda-player,ncurses"
18*4882a593SmuzhiyunPACKAGECONFIG[cddb] = "--enable-cddb,--disable-cddb,libcddb"
19*4882a593SmuzhiyunPACKAGECONFIG[vcd-info] = "--enable-vcd-info,--disable-vcd-info,vcdimager"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunPACKAGES += "${PN}-utils"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunFILES:${PN} = "${libdir}/${BPN}${SOLIB}"
24*4882a593SmuzhiyunFILES:${PN}-utils = "${bindir}/*"
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunpython libcdio_split_packages() {
27*4882a593Smuzhiyun    libdir = d.expand('${libdir}')
28*4882a593Smuzhiyun    do_split_packages(d, libdir, r'^lib(.*)\.so\..*', 'lib%s', 'libcdio %s library', extra_depends='', allow_links=True)
29*4882a593Smuzhiyun}
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunPACKAGESPLITFUNCS =+ "libcdio_split_packages"
32