mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
libmtp: added recipe for version 1.1.6
This commit is contained in:
82
media-libs/libmtp/libmtp-1.1.6.recipe
Normal file
82
media-libs/libmtp/libmtp-1.1.6.recipe
Normal file
@@ -0,0 +1,82 @@
|
||||
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/$portVersionedName.tar.gz"
|
||||
CHECKSUM_SHA256="3a1c1c83af91de4052eb54feb795c141b4c04a252e0031954ebbf6175970cb0a"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PATCHES="$portVersionedName.patchset"
|
||||
|
||||
PROVIDES="
|
||||
libmtp$secondaryArchSuffix = $portVersion compat >= 1.0
|
||||
lib:libmtp$secondaryArchSuffix = 9.1.0 compat >= 9
|
||||
"
|
||||
# add cmd provides
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libgcrypt$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libusb_1.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
devel:libgcrypt$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libusb_1.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize
|
||||
cmd:make
|
||||
cmd:gettext
|
||||
cmd:pkg_config
|
||||
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.1.0 compat >= 9
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libmtp$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
22
media-libs/libmtp/patches/libmtp-1.1.6.patchset
Normal file
22
media-libs/libmtp/patches/libmtp-1.1.6.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 42d85dd2edd255726d4a48226d7dafa2dfe964f8 Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user