2010-05-09 18:57:08 +02:00
|
|
|
# Template file for 'libmtp'
|
|
|
|
pkgname=libmtp
|
2013-09-23 10:55:23 +02:00
|
|
|
version=1.1.6
|
2014-06-16 13:36:41 +02:00
|
|
|
revision=4
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-04 17:27:02 +01:00
|
|
|
configure_args="--disable-static --with-udev=/usr/lib/udev"
|
2013-04-13 10:15:49 +02:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libusb-devel libgcrypt-devel"
|
2010-05-09 18:57:08 +02:00
|
|
|
short_desc="Library for Microsoft's Media Transfer Protocol (MTP)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-08-23 07:32:23 +02:00
|
|
|
homepage="http://libmtp.sourceforge.net"
|
|
|
|
license="LGPL-2.1"
|
2012-07-09 18:15:29 +02:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
2013-09-23 10:55:23 +02:00
|
|
|
checksum=3a1c1c83af91de4052eb54feb795c141b4c04a252e0031954ebbf6175970cb0a
|
2013-12-18 13:12:58 +01:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# XXX needs host mtp-hotplug
|
2014-06-16 13:52:15 +02:00
|
|
|
hostmakedepends+=" libmtp>=1.1.6_4"
|
2013-12-18 13:12:58 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -e "s,\(util/mtp-hotplug \),mtp-hotplug ,g" -i Makefile.in
|
|
|
|
fi
|
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2013-11-21 11:48:58 +01:00
|
|
|
post_install() {
|
|
|
|
sed -i "/^Unable to open/d" ${DESTDIR}/usr/lib/udev/rules.d/69-libmtp.rules
|
|
|
|
}
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libmtp-devel_package() {
|
2013-11-21 11:48:58 +01:00
|
|
|
depends="libusb-devel libmtp>=${version}_${revision}"
|
2013-09-23 10:55:23 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-23 10:55:23 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|