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
17 COMPONENT_NAME
= pycairo
18 COMPONENT_VERSION
= 1.8.8
20 COMPONENT_PROJECT_URL
= http
://www.cairographics.org
21 COMPONENT_SUMMARY
= Python bindings for Cairo
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_HASH
= \
25 sha256
:2f52599943ca03c8ff336a0e84b1c8b74f30e2a3de9cb6a9a42a93a848832860
26 COMPONENT_ARCHIVE_URL
= http
://cairographics.org
/releases
/$(COMPONENT_ARCHIVE
)
30 VARIANT_PYTHON27
= $(BUILD_DIR
)/python-27
32 VARIANTS
= $(VARIANT_PYTHON26
) $(VARIANT_PYTHON27
)
34 BUILD_32
= $(VARIANTS
:%=%/$(MACH32
)/.built
)
35 BUILD_64
= $(VARIANTS
:%=%/$(MACH64
)/.built
)
37 INSTALL_32
= $(VARIANTS
:%=%/$(MACH32
)/.installed
)
38 INSTALL_64
= $(VARIANTS
:%=%/$(MACH64
)/.installed
)
40 $(VARIANT_PYTHON27
)/$(MACH64
)/.configured
: BITS
=64
41 $(VARIANT_PYTHON27
)/$(MACH64
)/.configured
: PYTHON
=$(PYTHON
.2.7.64)
42 $(VARIANT_PYTHON27
)/$(MACH64
)/.configured
: am_cv_python_pyexecdir
=$(PYTHON
.2.7.VENDOR_PACKAGES
.64)
43 $(VARIANT_PYTHON27
)/$(MACH64
)/.configured
: am_cv_python_pythondir
=$(PYTHON
.2.7.VENDOR_PACKAGES
.64)
45 $(VARIANT_PYTHON27
)/$(MACH32
)/.configured
: PYTHON
=$(PYTHON
.2.7.32)
46 $(VARIANT_PYTHON27
)/$(MACH32
)/.configured
: am_cv_python_pyexecdir
=$(PYTHON
.2.7.VENDOR_PACKAGES
.32)
47 $(VARIANT_PYTHON27
)/$(MACH32
)/.configured
: am_cv_python_pythondir
=$(PYTHON
.2.7.VENDOR_PACKAGES
.32)
49 include $(WS_TOP
)/make-rules
/prep.mk
50 include $(WS_TOP
)/make-rules
/configure.mk
51 include $(WS_TOP
)/make-rules
/ips.mk
53 PATH
=/usr
/gnu
/bin
:/usr
/bin
55 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
56 CONFIGURE_ENV
+= PYTHON
=$(PYTHON
)
57 CONFIGURE_ENV
+= am_cv_python_pythondir
="$(am_cv_python_pythondir)"
58 CONFIGURE_ENV
+= am_cv_python_pyexecdir
="$(am_cv_python_pyexecdir)"
61 build
: $(BUILD_32_and_64
)
63 install: $(INSTALL_32_and_64
)
67 REQUIRED_PACKAGES
+= library
/desktop
/cairo
68 REQUIRED_PACKAGES
+= system
/library