#
|
# This file and its contents are supplied under the terms of the
|
# Common Development and Distribution License ("CDDL)". You may
|
# only use this file in accordance with the terms of the CDDL.
|
#
|
# A full copy of the text of the CDDL should have accompanied this
|
# source. A copy of the CDDL is also available via the Internet at
|
# http://www.illumos.org/license/CDDL.
|
#
|
|
#
|
# Copyright (c) 2016 Alexander Pyhalov
|
#
|
|
include ../../../make-rules/shared-macros.mk
|
|
COMPONENT_NAME= pygtksourceview
|
COMPONENT_VERSION= 2.10.1
|
COMPONENT_REVISION= 7
|
COMPONENT_PROJECT_URL= https://www.gnome.org
|
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
|
COMPONENT_ARCHIVE_HASH= \
|
sha256:b4b47c5aeb67a26141cb03663091dfdf5c15c8a8aae4d69c46a6a943ca4c5974
|
COMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/$(COMPONENT_NAME)/2.10/$(COMPONENT_ARCHIVE)
|
|
PYTHON_VERSIONS= 2.7
|
|
VARIANT_PYTHON27 = $(BUILD_DIR)/python-27
|
|
VARIANTS = $(VARIANT_PYTHON27)
|
|
BUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
|
|
INSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
|
|
$(VARIANT_PYTHON27)/$(MACH32)/.configured: PYTHON=$(PYTHON.2.7.32)
|
$(VARIANT_PYTHON27)/$(MACH32)/.configured: am_cv_python_pyexecdir=$(PYTHON.2.7.VENDOR_PACKAGES.32)
|
$(VARIANT_PYTHON27)/$(MACH32)/.configured: am_cv_python_pythondir=$(PYTHON.2.7.VENDOR_PACKAGES.32)
|
|
include $(WS_TOP)/make-rules/prep.mk
|
include $(WS_TOP)/make-rules/configure.mk
|
include $(WS_TOP)/make-rules/ips.mk
|
|
PATH=/usr/gnu/bin:/usr/bin
|
|
COMPONENT_PREP_ACTION = \
|
( cd $(@D) ; \
|
autoreconf -f -i )
|
|
CONFIGURE_OPTIONS+= --sysconfdir=/etc
|
CONFIGURE_ENV+= PYTHON=$(PYTHON)
|
CONFIGURE_ENV+= am_cv_python_pythondir="$(am_cv_python_pythondir)"
|
CONFIGURE_ENV+= am_cv_python_pyexecdir="$(am_cv_python_pyexecdir)"
|
|
# common targets
|
build: $(BUILD_32)
|
|
install: $(INSTALL_32)
|
|
test: $(NO_TESTS)
|
|
REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
|
REQUIRED_PACKAGES += library/desktop/gtk2
|
REQUIRED_PACKAGES += library/desktop/gtksourceview
|
REQUIRED_PACKAGES += library/glib2
|
REQUIRED_PACKAGES += runtime/python-27
|
REQUIRED_PACKAGES += system/library
|
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
|