Makefile revision 6194
d844741f5516bce45f8897435342731edb2307cbMark Andrews# CDDL HEADER START
53e8e0e27a3db745548a7989639b91d16f841c1fMark Andrews# The contents of this file are subject to the terms of the
d0c827c9c6a21a0708d97314406ff34d79bed5d8Mark Andrews# Common Development and Distribution License (the "License").
d0c827c9c6a21a0708d97314406ff34d79bed5d8Mark Andrews# You may not use this file except in compliance with the License.
6f691d4893bb29cd6658b75860d93797f091da0dMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3d75a3aef3c26c1957f393e4626177484f53a9d4Mark Andrews# See the License for the specific language governing permissions
3d75a3aef3c26c1957f393e4626177484f53a9d4Mark Andrews# and limitations under the License.
4e259c5a2321e994708fb1fe04cd4da30aa3b612Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
4e259c5a2321e994708fb1fe04cd4da30aa3b612Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e259c5a2321e994708fb1fe04cd4da30aa3b612Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
fcdef14f4a82138fe835a5c3a20d5667e6f4a26cMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
fcdef14f4a82138fe835a5c3a20d5667e6f4a26cMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
e94754428d472bdde2cba0efdd549bac2e87b98bMark Andrews# CDDL HEADER END
a53259c4cc558f86dd008eccc60cc89b6734a03cMark Andrews# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4c8df3b2e8858e97debfe3fb771fe03f22b04d1eMark Andrews# All components using gobject-introspection must be built with gcc as
6c52944ef2281095d1c317a45ea013b8f3cfa135Mark Andrews# gobject-introspection does not produce correct results when using Studio.
dd95acdbce0e2a2775391709cdfca0a9eda7e8f7Mark AndrewsCOMPONENT_PROJECT_URL= http://gstreamer.freedesktop.org/
71e7ac828e9f4f2b124455b00c3d11560aa5d4c1Mark Andrews sha256:79b1b5f3f7bcaa8a615202eb5e176121eeb8336960f70687e536ad78dbc7e641
71e7ac828e9f4f2b124455b00c3d11560aa5d4c1Mark AndrewsCOMPONENT_ARCHIVE_URL= http://gstreamer.freedesktop.org/src/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
f34970d390482ceea61bd4d5bcd6ead7828157daMark Andrews# Hook up tests after build servers are installed with dependencies
cbfce73e8e020c1d08c7be7b48a849d8333eb9bfMark Andrews# Only build for 2.7 for now as we need 32-bit and 64-bit support; all of the
84a5b69f0029952e33c96695f0a7d26c2bb8f7ccMark Andrews# GNOME and desktop components must be built for Python 2.7 for now.
73fb13fe97cf2f1d93d5e2ea56583fdb2f40b6f3Mark Andrews# Needs gobject-introspection, not available on S11.
e743a2b3b729df76956e903ac6a3dc3d6eea6df6Mark Andrews# Delete this when build servers are installed with an updated versions of,
a79348a6db5eb8a5ea69c3989727418ad5a8f224Mark Andrews# gst-plugins-base, pulseaudio and libsoup
a79348a6db5eb8a5ea69c3989727418ad5a8f224Mark AndrewsGST_BASE = $(WS_COMPONENTS)/desktop/gstreamer1/gst-plugins-base/build/prototype/$(MACH)
a79348a6db5eb8a5ea69c3989727418ad5a8f224Mark AndrewsPKG_CONFIG_PATHS.32 += $(GST_BASE)/usr/lib/pkgconfig/
a79348a6db5eb8a5ea69c3989727418ad5a8f224Mark AndrewsPKG_CONFIG_PATHS.64 += $(GST_BASE)/usr/lib/$(MACH64)/pkgconfig/
fed3d5c2fc3fa8e1547e8b5c28c01f1095e17e5fMark AndrewsPULSE_BASE = $(WS_COMPONENTS)/desktop/pulseaudio/build/prototype/$(MACH)
2651dcdf758ed1db3379d7004067fb46d308ed1cMark AndrewsPKG_CONFIG_PATHS.32 += $(PULSE_BASE)/usr/lib/pkgconfig
2651dcdf758ed1db3379d7004067fb46d308ed1cMark AndrewsPKG_CONFIG_PATHS.64 += $(PULSE_BASE)/usr/lib/$(MACH64)/pkgconfig/
21094b43a2dc4e1f569a9ed894f5369470cd1a7fMark AndrewsSOUP_BASE = $(WS_COMPONENTS)/gnome/libsoup/build/prototype/$(MACH)
21094b43a2dc4e1f569a9ed894f5369470cd1a7fMark AndrewsPKG_CONFIG_PATHS.32 += $(SOUP_BASE)/usr/lib/pkgconfig
b03a31d98f1cf42414d321c742c9fc04be75b32bMark AndrewsPKG_CONFIG_PATHS.64 += $(SOUP_BASE)/usr/lib/$(MACH64)/pkgconfig/
4181218570e915959dd203c18f8cf4a03dca5d68Mark AndrewsCPPFLAGS += -I$(GST_BASE)/usr/include/gstreamer-1.0 \
276f1d9a380affd06e5fd9a29c30d0ebd433ed36Mark AndrewsLD_OPTIONS.64 += -L $(GST_BASE)/usr/lib/$(MACH64) \
61a4d5e7d86f3abcd63aa9254900a0cee3444215Mark AndrewsDEPENDED += $(WS_TOP)/components/desktop/gstreamer1/gst-plugins-base/build/manifest-$(MACH)-gst-plugins-base.depend
055597532db52233e80f617b8b015e8caadcb577Mark Andrews# configure script uses AC_CHECK_PROG erroneously; AC_CHECK_PROG looks for a
6cdae8730d5a287c30987516c6f99962d4e8e6beMark Andrews# program in $PATH by default, and fails even if you provide an absolute path
6cdae8730d5a287c30987516c6f99962d4e8e6beMark Andrews# to the command (no idea why); override the failed check.
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrews# No need for firewire support.
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrews# Linux only; requires ALSA.
9076b18608d8e5cfff8fac54ef82853371fdd0d6Mark Andrews# sunaudio no longer builds; interfaces used in gstreamer are gone (mixer.h).
2c329da87c5c886e7f4468c69a9e6323121068cbMark Andrews# Ensure system-default python is not used.
31affb2ca39c483670ba71042ce4c984ac257232Mark Andrews# Ensure Python modules are installed into vendor package directories.
31affb2ca39c483670ba71042ce4c984ac257232Mark AndrewsCONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
aeb33b58e1979b716d1eb0521df8bc3a0aa41a52Mark AndrewsCONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
43fe2897fc80bbec2115310ca79d432a252f3ea4Mark Andrews# Required due to patches.
9e50b6806e428c817bc9537457db8f0a0aeee167Mark AndrewsCOMPONENT_PREP_ACTION += ( cd $(@D) ; NOCONFIGURE=1 $(CONFIG_SHELL) autogen.sh );
31a71adf14d106260127079f6ea26bea600163e9Mark AndrewsREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
4b030f887e5e51c00dac499682d0b5b870ece45bMark AndrewsREQUIRED_PACKAGES += library/desktop/gstreamer-1
110fbe3a1315b38f1491546d82937a01c40f5fdbMark AndrewsREQUIRED_PACKAGES += library/desktop/gstreamer-1/gst-plugins-base
12e8e73d76f78649cb61ba161eb51faf851ddb4aMark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime