mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
* Referring the current haiku version explicitly is not needed, since the RequiresUpdater takes care of setting the version of Haiku used for building a package.
108 lines
2.9 KiB
Plaintext
108 lines
2.9 KiB
Plaintext
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 <richard@wentnet.com>
|
|
Linus Walleij <triad@df.lth.se>
|
|
Mariusz Woloszyn <emsi@ipartners.pl>
|
|
Marcus Meissner <marcus@jet.franken.de>
|
|
"
|
|
LICENSE="GNU LGPL v2.1"
|
|
SRC_URI="http://prdownloads.sourceforge.net/libmtp/libmtp-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3f9e87536aa40e560d0c153a505e38096b1df5ea15fad783691e9a8ca4dd2282"
|
|
REVISION="1"
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PATCHES="libmtp-$portVersion.patchset"
|
|
|
|
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
|
|
lib:libstdc++$secondaryArchSuffix
|
|
# required by libgcrypt
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
"
|
|
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
|
|
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
|
|
}
|
|
|
|
# ----- devel package -------------------------------------------------------
|
|
|
|
PROVIDES_devel="
|
|
libmtp${secondaryArchSuffix}_devel = $portVersion compat >= 1.0
|
|
devel:libmtp$secondaryArchSuffix = 9.2.0 compat >= 9
|
|
"
|
|
REQUIRES_devel="
|
|
libmtp$secondaryArchSuffix == $portVersion base
|
|
"
|