diff --git a/media-libs/libmtp/libmtp-1.1.8.recipe b/media-libs/libmtp/libmtp-1.1.8.recipe new file mode 100644 index 000000000..a93576981 --- /dev/null +++ b/media-libs/libmtp/libmtp-1.1.8.recipe @@ -0,0 +1,107 @@ +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" +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 >= $haikuVersion + 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 >= $haikuVersion + 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 + " diff --git a/media-libs/libmtp/patches/libmtp-1.1.8.patchset b/media-libs/libmtp/patches/libmtp-1.1.8.patchset new file mode 100644 index 000000000..e7c611bae --- /dev/null +++ b/media-libs/libmtp/patches/libmtp-1.1.8.patchset @@ -0,0 +1,22 @@ +From 42d85dd2edd255726d4a48226d7dafa2dfe964f8 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Wed, 21 May 2014 21:24:57 +0000 +Subject: fix configure.ac + + +diff --git a/configure.ac b/configure.ac +index 87d7fcc..2063735 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -4,7 +4,7 @@ AC_INIT([libmtp], [1.1.6], [libmtp-discuss@lists.sourceforge.net]) + AC_CONFIG_MACRO_DIR([m4]) + AM_INIT_AUTOMAKE([foreign]) + AC_CONFIG_SRCDIR([src/libmtp.c]) +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + # Checks for programs. + AC_PROG_CC +-- +1.8.3.4 +