setup.py.mk: update pypi url
[unleashed-userland.git] / components / python / pygobject / Makefile
blob1f594e3a582b2e1ed0b135319d345abf38be5f11
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= pygobject
18 COMPONENT_VERSION= 2.28.6
19 COMPONENT_REVISION= 4
20 COMPONENT_PROJECT_URL= http://www.gnome.org
21 COMPONENT_SUMMARY= Python bindings for GObject
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
24 COMPONENT_ARCHIVE_HASH= \
25 sha256:d464699db159f72e41a8d629ab44b7fef6cf8d746e51f576b6fbc4ce317239d3
26 COMPONENT_ARCHIVE_URL= http://ftp.gnome.org/pub/GNOME/sources/$(COMPONENT_NAME)/2.28/$(COMPONENT_ARCHIVE)
28 PYTHON_VERSIONS= 2.7
30 VARIANT_PYTHON27 = $(BUILD_DIR)/python-27
32 VARIANTS = $(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:/usr/perl5/bin
55 COMPONENT_PREP_ACTION= (cd $(@D) && autoreconf -f -i)
57 CFLAGS += $(gcc_C99_ENABLE)
59 CONFIGURE_OPTIONS+= --sysconfdir=/etc
60 CONFIGURE_OPTIONS+= --without-ffi
62 # Disable introspection modules in this package since we ship the modern ones
63 # in the ../pygobject-3 packages instead, and they'd clash if we didn't disable.
64 CONFIGURE_OPTIONS += --disable-introspection
66 CONFIGURE_ENV+= PYTHON=$(PYTHON)
68 CONFIGURE_ENV+= PYTHON=$(PYTHON)
69 CONFIGURE_ENV+= am_cv_python_pythondir="$(am_cv_python_pythondir)"
70 CONFIGURE_ENV+= am_cv_python_pyexecdir="$(am_cv_python_pyexecdir)"
72 # common targets
73 build: $(BUILD_32_and_64)
75 install: $(INSTALL_32_and_64)
77 test: $(NO_TESTS)
79 REQUIRED_PACKAGES += SUNWcs
80 REQUIRED_PACKAGES += library/desktop/cairo
81 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
82 REQUIRED_PACKAGES += library/glib2
83 REQUIRED_PACKAGES += runtime/python-27
84 REQUIRED_PACKAGES += system/library