xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-connectivity/libmtp/libmtp_1.1.19.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# TODO: include debian's mtp-tools man page (needs xsltproc-native and
2*4882a593Smuzhiyun# docbook-xsl-native, or we pregenerate it), add support for doxygen
3*4882a593Smuzhiyun# generation fully with -natives
4*4882a593SmuzhiyunDESCRIPTION = "libmtp is an Initiator implementation of the Media Transfer \
5*4882a593SmuzhiyunProtocol (MTP) in the form of a library suitable primarily for POSIX \
6*4882a593Smuzhiyuncompliant operating systems"
7*4882a593SmuzhiyunSUMMARY = "libmtp is an Initiator implementation of the Media Transfer Protocol (MTP)"
8*4882a593SmuzhiyunHOMEPAGE = "http://libmtp.sourceforge.net/"
9*4882a593SmuzhiyunLICENSE = "LGPL-2.1-or-later"
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=0448d3676bc0de00406af227d341a4d1 \
11*4882a593Smuzhiyun                    file://src/ptp.c;beginline=3;endline=22;md5=80fd2d5904c4c1f5455d8f4bf515292f \
12*4882a593Smuzhiyun                    file://examples/albums.c;beginline=5;endline=21;md5=84f4e55dfec49e898b7f68a828c15620 \
13*4882a593Smuzhiyun                    "
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunBBCLASSEXTEND = "native"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunDEPENDS = "libusb1 gettext-native"
18*4882a593SmuzhiyunDEPENDS:append:class-target = " ${BPN}-native"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunSRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz"
21*4882a593SmuzhiyunSRC_URI:append:class-target = " file://0001-Use-native-mtp-hotplug.patch"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunSRC_URI[sha256sum] = "deb4af6f63f5e71215cfa7fb961795262920b4ec6cb4b627f55b30b18aa33228"
24*4882a593Smuzhiyun
25*4882a593Smuzhiyuninherit autotools pkgconfig lib_package
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunEXTRA_OECONF += " \
28*4882a593Smuzhiyun    --disable-rpath \
29*4882a593Smuzhiyun    --with-udev=${nonarch_base_libdir}/udev \
30*4882a593Smuzhiyun"
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunPACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'largefile', d)}"
33*4882a593SmuzhiyunPACKAGECONFIG[doxygen] = "--enable-doxygen,--disable-doxygen,doxygen-native"
34*4882a593SmuzhiyunPACKAGECONFIG[largefile] = "--enable-largefile,--disable-largefile"
35*4882a593SmuzhiyunPACKAGECONFIG[mtpz] = "--enable-mtpz,--disable-mtpz,libgcrypt"
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunPACKAGES =+ "${BPN}-common ${BPN}-runtime"
38*4882a593Smuzhiyun
39*4882a593SmuzhiyunRDEPENDS:${BPN} += "libmtp-common"
40*4882a593SmuzhiyunRRECOMMENDS:${BPN} += "libmtp-runtime ${PN}-bin"
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunFILES:${BPN}-common = "${nonarch_base_libdir}/udev/rules.d/*"
43*4882a593SmuzhiyunSUMMARY:${BPN}-common = "The udev rules file for MTP devices"
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunFILES:${BPN}-runtime = "${nonarch_base_libdir}/udev/mtp-probe"
46*4882a593SmuzhiyunRDEPENDS:${BPN}-runtime = "libmtp-common"
47*4882a593SmuzhiyunSUMMARY:${BPN}-runtime = "mtp-probe, used for the MTP udev rules"
48*4882a593SmuzhiyunDESCRIPTION:${BPN}-runtime = "This package provides mtp-probe, a program to probe newly connected device interfaces from userspace to determine if they are MTP devices, used for udev rules."
49