vim: update to 9.1.0984
[oi-userland.git] / components / library / gexiv2 / Makefile
blob984ec6e3a30725168765ae2a92b06368d07d63f1
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 2020 Alexander Pyhalov
14 # Copyright 2021 Andreas Wacknitz
17 BUILD_STYLE= meson
18 USE_DEFAULT_TEST_TRANSFORMS= yes
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= gexiv2
22 COMPONENT_MJR_VERSION= 0.14
23 COMPONENT_VERSION= $(COMPONENT_MJR_VERSION).3
24 COMPONENT_REVISION= 1
25 COMPONENT_SUMMARY= GObject wrapper around the Exiv2 photo metadata library
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
28 COMPONENT_ARCHIVE_HASH= sha256:21e64d2c56e9b333d44fef3f2a4b25653d922c419acd972fa96fab695217e2c8
29 COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/gexiv2/$(COMPONENT_MJR_VERSION)/$(COMPONENT_ARCHIVE)
30 COMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/gexiv2
31 COMPONENT_FMRI= image/library/gexiv2
32 COMPONENT_CLASSIFICATION= System/Multimedia Libraries
33 COMPONENT_LICENSE= GPLv2
34 COMPONENT_LICENSE_FILE= COPYING
36 include $(WS_MAKE_RULES)/common.mk
38 PKG_MACROS += PYVER=$(PYTHON_VERSION)
40 CONFIGURE_OPTIONS += -Dtests=true
42 # gobject-introspection requires this
43 COMPONENT_BUILD_ENV += CC="$(CC)"
44 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
46 COMPONENT_POST_INSTALL_ACTION += \
47 $(MKDIR) $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages; \
48 $(MV) $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/site-packages/* $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages/; \
49 $(PYTHON) -m compileall $(PROTOUSRLIBDIR)/python$(PYTHON_VERSION)/vendor-packages;
51 # Manually added build dependencies
52 REQUIRED_PACKAGES += developer/vala
54 # Auto-generated dependencies
55 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
56 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
57 REQUIRED_PACKAGES += image/library/exiv2
58 REQUIRED_PACKAGES += library/glib2
59 REQUIRED_PACKAGES += system/library
60 REQUIRED_PACKAGES += system/library/math