2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2017 Alexander Pyhalov
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= libmtp
18 COMPONENT_VERSION
= 1.1.22
19 COMPONENT_SUMMARY
= libmtp is an Initiator implementation of the Media Transfer Protocol
20 COMPONENT_PROJECT_URL
= https
://libmtp.sourceforge.net
/
21 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
22 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
23 COMPONENT_ARCHIVE_HASH
= sha256
:c3fcf411aea9cb9643590cbc9df99fa5fe30adcac695024442973d76fa5f87bc
24 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/libmtp
/files
/libmtp
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
/
25 COMPONENT_FMRI
= library
/libmtp
26 COMPONENT_CLASSIFICATION
=System
/Libraries
27 COMPONENT_LICENSE
= LGPLv2.1
28 COMPONENT_LICENSE_FILE
= COPYING
30 TEST_TARGET
= $(NO_TESTS
)
31 include $(WS_MAKE_RULES
)/common.mk
33 COMPONENT_PREP_ACTION
= ( \
35 libtoolize
--copy
--force && \
38 automake
-c
-f
-a
&& \
41 CONFIGURE_OPTIONS
+= --enable-shared
42 CONFIGURE_OPTIONS
+= --disable-static
43 CONFIGURE_OPTIONS
+= --disable-dependency-tracking
45 # Auto-generated dependencies
46 REQUIRED_PACKAGES
+= library
/libusb-1
47 REQUIRED_PACKAGES
+= system
/library
48 REQUIRED_PACKAGES
+= system
/library
/security
/libgcrypt