perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / python / py2cairo / Makefile
blobd3e154d4fae3f83270beab8d4db967847f4e1117
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 2013-2016 Alexander Pyhalov
15 include ../../../make-rules/shared-macros.mk
18 # Warnings!
20 # - This is needed for GIMP 2 only.
21 # - This must stay forever at version 1.8.x.
22 # - GIMP 2 is 64 bit only, so we build this 64 bit only too.
25 COMPONENT_NAME= py2cairo
26 COMPONENT_VERSION= 1.8.10
27 COMPONENT_PROJECT_URL= http://www.cairographics.org
28 COMPONENT_SUMMARY= Python bindings for Cairo
29 COMPONENT_SRC= pycairo-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
31 COMPONENT_ARCHIVE_HASH= \
32 sha256:b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56
33 COMPONENT_ARCHIVE_URL= http://cairographics.org/releases/$(COMPONENT_ARCHIVE)
34 COMPONENT_FMRI= library/python/pycairo-27
35 COMPONENT_CLASSIFICATION= Development/Python
36 COMPONENT_LICENSE= LGPL-2.1-only
37 COMPONENT_LICENSE_FILE= COPYING-LGPL-2.1
39 TEST_TARGET= $(NO_TESTS)
41 include $(WS_MAKE_RULES)/common.mk
43 # Python 2.7 paths
44 PYTHON = /usr/bin/amd64/python2.7
45 PYTHON_VENDOR_PACKAGES = /usr/lib/python2.7/vendor-packages
47 # Python settings for configure
48 CONFIGURE_ENV += PYTHON=$(PYTHON)
49 CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
50 CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
52 # Move 64 bit libraries to their proper location
53 COMPONENT_POST_INSTALL_ACTION += \
54 for f in $$($(FIND) $(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES) -name '*.so') ; do \
55 $(MKDIR) $$(dirname $$f)/64 ; \
56 $(MV) $$f $$(dirname $$f)/64/$$(basename $$f) ; \
57 done ;
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES += library/desktop/cairo
61 REQUIRED_PACKAGES += system/library