shared-macros.mk: simplify java settings
[oi-userland.git] / components / desktop / gphoto2 / Makefile
blob20a6658cc073c4e2f9824f4e614483c597452e92
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.
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 2017 Alexander Pyhalov
14 # Copyright 2022 Andreas Wacknitz
16 BUILD_BITS= 64
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= gphoto2
20 COMPONENT_VERSION= 2.5.28
21 COMPONENT_SUMMARY= Digital camera utility
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_PROJECT_URL = https://github.com/gphoto/
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
28 COMPONENT_CLASSIFICATION = Applications/Graphics and Imaging
29 COMPONENT_FMRI = desktop/gphoto2
30 COMPONENT_LICENSE = GPLv2
31 COMPONENT_LICENSE_FILE = COPYING
33 include $(WS_MAKE_RULES)/common.mk
35 PATH=$(PATH.gnu)
37 CFLAGS+= -std=c99 $(CPP_XPG6MODE)
39 # build with the distribution preferred libjpeg implementation
40 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
41 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
42 LDFLAGS += $(JPEG_LDFLAGS)
44 unexport SHELLOPTS
46 # test031 fails
48 # Auto-generated dependencies
49 REQUIRED_PACKAGES += image/library/libexif
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