Makefile revision 6642
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterBUILD_BITS = 32_and_64
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# All components using gobject-introspection must be built with gcc as
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# gobject-introspection does not produce correct results when using Studio.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPILER = gcc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../../../make-rules/shared-macros.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_NAME= gst-python
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_VERSION= 1.4.0
28b3569d6248168e6c00caab951521cc8141a49dAutomatic UpdaterCOMPONENT_PROJECT_URL= http://gstreamer.freedesktop.org/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:b1e40c29ceb41b03f08d38aca6056054f0341d0706276326dceeec6ac8d53d3e
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_URL= http://gstreamer.freedesktop.org/src/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUGDB= gnome/multimedia
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTPNO= 24910
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Requires pygobject-3 which is currently only built for Python 2.7
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPYTHON_VERSIONS= 2.7
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Needs gobject-introspection, not available on S11.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq ($(BUILD_TYPE), evaluation)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsBUILD_32_and_64=
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALL_32_and_64=
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterPUBLISH_STAMP=
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsendif
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updaterinclude $(WS_MAKE_RULES)/common.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS += --disable-static
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The build process modifies the shebang line to use the version of Python
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# automatically found; to avoid using the current system default, one is
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# explicitly specified here.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV += PYTHON=$(PYTHON)
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Ensure Python modules are installed into vendor package directories.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONFIGURE_OPTIONS.64 += --with-pygi-overrides-dir=$(PYTHON_VENDOR_PACKAGES.32)/gi/overrides/64
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater# for the tests
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updaterunexport SHELLOPTS
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic UpdaterCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += library/desktop/gstreamer-1
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsREQUIRED_PACKAGES += library/glib2
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic UpdaterREQUIRED_PACKAGES += library/python/pygobject-3-27
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic UpdaterREQUIRED_PACKAGES += runtime/python-27
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews