Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
commit | author | age
d14850 1 #
AP 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
5 # 1.0 of the CDDL.
6 #
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.
10 #
11
12 #
13 # Copyright 2017 Alexander Pyhalov
317bd3 14 # Copyright 2022 Andreas Wacknitz
d14850 15 #
317bd3 16 BUILD_BITS= 64
d14850 17 include ../../../make-rules/shared-macros.mk
AP 18
19 COMPONENT_NAME= gphoto2
317bd3 20 COMPONENT_VERSION= 2.5.28
d14850 21 COMPONENT_SUMMARY= Digital camera utility
AP 22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
317bd3 23 COMPONENT_PROJECT_URL = https://github.com/gphoto/
AW 24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_HASH= sha256:54097ee429f57a9f076a814590f777cebbc837879fe7b16e41b2615e347f6ae0
26 COMPONENT_ARCHIVE_URL=    https://sourceforge.net/projects/gphoto/files/gphoto/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
27 $(COMPONENT_PROJECT_URL)/$(COMPONENT_NAME)/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
d14850 28 COMPONENT_CLASSIFICATION = Applications/Graphics and Imaging
AP 29 COMPONENT_FMRI = desktop/gphoto2
30 COMPONENT_LICENSE = GPLv2
31 COMPONENT_LICENSE_FILE = COPYING
32
317bd3 33 include $(WS_MAKE_RULES)/common.mk
d14850 34
AP 35 PATH=$(PATH.gnu)
36
7be12d 37 CFLAGS+= -std=c99 $(CPP_XPG6MODE)
AL 38
d14850 39 # build with the distribution preferred libjpeg implementation
AP 40 CFLAGS            +=    $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
41 CXXFLAGS          +=    $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
42 LDFLAGS           +=    $(JPEG_LDFLAGS)
43
44 unexport SHELLOPTS
45
46 # test031 fails
47
317bd3 48 # Auto-generated dependencies
d14850 49 REQUIRED_PACKAGES += image/library/libexif
AP 50 REQUIRED_PACKAGES += image/library/libjpeg8-turbo
51 REQUIRED_PACKAGES += library/aalib
52 REQUIRED_PACKAGES += library/libgphoto2-2
53 REQUIRED_PACKAGES += library/popt
54 REQUIRED_PACKAGES += library/readline
55 REQUIRED_PACKAGES += system/library