jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / lensfun / Makefile
blob5942072a34ac72d846377848e44f5744a92cb7ce
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 Aurelien Larcher
15 BUILD_BITS= 64
16 BUILD_STYLE= cmake
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= lensfun
20 COMPONENT_VERSION= 0.3.4
21 COMPONENT_REVISION= 1
22 COMPONENT_SUMMARY= Lensfun - library rectifying defects introduced by photographic equipment
23 COMPONENT_PROJECT_URL= https://lensfun.github.io/
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_URL= https://github.com/lensfun/lensfun/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
27 COMPONENT_ARCHIVE_HASH= sha256:dafb39c08ef24a0e2abd00d05d7341b1bf1f0c38bfcd5a4c69cf5f0ecb6db112
28 COMPONENT_FMRI= image/library/lensfun
29 COMPONENT_CLASSIFICATION= System/Multimedia Libraries
30 COMPONENT_LICENSE= GPLv3,LGPLv3
32 include $(WS_MAKE_RULES)/common.mk
34 PKG_MACROS += PYVER=$(PYTHON_VERSION)
36 CMAKE_OPTIONS+= -DCMAKE_BUILD_TYPE='Release'
37 CMAKE_OPTIONS+= -DBUILD_TESTS=ON
38 CMAKE_OPTIONS+= -DBUILD_LENSTOOL=ON
39 CMAKE_OPTIONS+= -DINSTALL_HELPER_SCRIPTS=OFF
41 COMPONENT_POST_INSTALL_ACTION += \
42 if [ -d $(PROTO_DIR)/usr/lib/python3.9 ]; then \
43 $(MKDIR) -p $(PROTO_DIR)/usr/lib/python3.9/vendor-packages ; \
44 $(MV) $(PROTO_DIR)/usr/lib/python3.9/site-packages/* $(PROTO_DIR)/usr/lib/python3.9/vendor-packages ; \
45 $(PYTHON) -m compileall $(PROTO_DIR)/usr/lib/python3.9/vendor-packages ; \
46 fi ;
48 COMPONENT_TEST_TRANSFORMS += '-e "s/[0-9. ]*sec//g"'
50 # Auto-generated dependencies
51 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
52 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
53 REQUIRED_PACKAGES += image/library/libpng16
54 REQUIRED_PACKAGES += library/glib2
55 REQUIRED_PACKAGES += system/library
56 REQUIRED_PACKAGES += system/library/math