2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libgphoto2
20 COMPONENT_VERSION
= 2.5.27
21 COMPONENT_SUMMARY
= Digital camera library
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
24 COMPONENT_ARCHIVE_HASH
= sha256
:f8b85478c44948a0b0b52c4d4dfda2de1d7bcb7b262c76bd1ae306d9c63240d7
25 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/gphoto
/files
/libgphoto
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
26 COMPONENT_PROJECT_URL
= https
://www.gphoto.org
27 COMPONENT_FMRI
= library
/libgphoto2-2
28 COMPONENT_CLASSIFICATION
=Desktop
(GNOME
)/Libraries
29 COMPONENT_LICENSE
= LGPLv2.1
30 COMPONENT_LICENSE_FILE
= COPYING
32 include $(WS_MAKE_RULES
)/common.mk
36 # Without this we get issues with unresolved references to __deregister_frame_info_bases
40 CFLAGS
.32 += -D_FILE_OFFSET_BITS
=64
41 CFLAGS
+= $(CFLAGS.
$(BITS
))
44 COMPONENT_PREP_ACTION
+= ( cd
$(@D
) && PATH
="$(PATH)" autoreconf
-fiv
)
46 CONFIGURE_OPTIONS
+= --with-doc-dir
=/usr
/share
/doc
/libgphoto2
47 CONFIGURE_OPTIONS
+= --disable-static
51 # Manually added build dependencies
52 REQUIRED_PACKAGES
+= developer
/documentation-tool
/doxygen
54 # Auto-generated dependencies
55 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
56 REQUIRED_PACKAGES
+= image
/library
/libexif
57 REQUIRED_PACKAGES
+= image
/library
/libjpeg-turbo
58 REQUIRED_PACKAGES
+= library
/gd
59 REQUIRED_PACKAGES
+= library
/libtool
/libltdl
60 REQUIRED_PACKAGES
+= library
/libusb-1
61 REQUIRED_PACKAGES
+= library
/libxml2
62 REQUIRED_PACKAGES
+= shell/ksh93
63 REQUIRED_PACKAGES
+= system
/library
64 REQUIRED_PACKAGES
+= system
/library
/math
65 REQUIRED_PACKAGES
+= web
/curl