mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
101 lines
2.7 KiB
Bash
101 lines
2.7 KiB
Bash
SUMMARY="MTP initiator library"
|
|
DESCRIPTION="libmtp implements an MTP initiator, which means it initiate \
|
|
MTP sessions with devices. The devices responding are known as MTP responders. \
|
|
libmtp runs on something with a USB host controller interface, using libusb \
|
|
to access the host controller."
|
|
HOMEPAGE="http://libmtp.sourceforge.net"
|
|
COPYRIGHT="Richard Low
|
|
Linus Walleij
|
|
Mariusz Woloszyn
|
|
Marcus Meissner"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="2"
|
|
SOURCE_URI="http://prdownloads.sourceforge.net/libmtp/libmtp-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3f9e87536aa40e560d0c153a505e38096b1df5ea15fad783691e9a8ca4dd2282"
|
|
PATCHES="libmtp-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libmtp$secondaryArchSuffix = $portVersion compat >= 1.0
|
|
lib:libmtp$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
cmd:mtp_albumart$secondaryArchSuffix
|
|
cmd:mtp_albums$secondaryArchSuffix
|
|
cmd:mtp_connect$secondaryArchSuffix
|
|
cmd:mtp_delfile$secondaryArchSuffix
|
|
cmd:mtp_detect$secondaryArchSuffix
|
|
cmd:mtp_emptyfolders$secondaryArchSuffix
|
|
cmd:mtp_files$secondaryArchSuffix
|
|
cmd:mtp_filetree$secondaryArchSuffix
|
|
cmd:mtp_folders$secondaryArchSuffix
|
|
cmd:mtp_format$secondaryArchSuffix
|
|
cmd:mtp_getfile$secondaryArchSuffix
|
|
cmd:mtp_getplaylist$secondaryArchSuffix
|
|
cmd:mtp_newfolder$secondaryArchSuffix
|
|
cmd:mtp_newplaylist$secondaryArchSuffix
|
|
cmd:mtp_playlists$secondaryArchSuffix
|
|
cmd:mtp_reset$secondaryArchSuffix
|
|
cmd:mtp_sendfile$secondaryArchSuffix
|
|
cmd:mtp_sendtr$secondaryArchSuffix
|
|
cmd:mtp_thumb$secondaryArchSuffix
|
|
cmd:mtp_tracks$secondaryArchSuffix
|
|
cmd:mtp_trexist$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libusb_1.0$secondaryArchSuffix
|
|
# required by libgcrypt
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libmtp${secondaryArchSuffix}_devel = $portVersion compat >= 1.0
|
|
devel:libmtp$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
"
|
|
REQUIRES_devel="
|
|
libmtp$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libusb_1.0$secondaryArchSuffix
|
|
# required by libgcrypt
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:gettext
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:doxygen
|
|
cmd:find
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure # --enable-doxygen
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libmtp
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir # $docDir
|
|
}
|