Makefile revision 6194
d844741f5516bce45f8897435342731edb2307cbMark Andrews#
d844741f5516bce45f8897435342731edb2307cbMark Andrews# CDDL HEADER START
53e8e0e27a3db745548a7989639b91d16f841c1fMark Andrews#
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#
6f691d4893bb29cd6658b75860d93797f091da0dMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6f691d4893bb29cd6658b75860d93797f091da0dMark Andrews# or http://www.opensolaris.org/os/licensing.
3d75a3aef3c26c1957f393e4626177484f53a9d4Mark Andrews# See the License for the specific language governing permissions
3d75a3aef3c26c1957f393e4626177484f53a9d4Mark Andrews# and limitations under the License.
3d75a3aef3c26c1957f393e4626177484f53a9d4Mark Andrews#
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]
e9a0e12b2b732285e00e0d9436961d0fe3655aa6Mark Andrews#
e94754428d472bdde2cba0efdd549bac2e87b98bMark Andrews# CDDL HEADER END
e94754428d472bdde2cba0efdd549bac2e87b98bMark Andrews#
23f2338819fd1a38a828b417eb05be95207e76e2Mark Andrews
a53259c4cc558f86dd008eccc60cc89b6734a03cMark Andrews#
a53259c4cc558f86dd008eccc60cc89b6734a03cMark Andrews# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
a8be540f55786eb9db43ae52bcc891529602c850Mark Andrews#
a8be540f55786eb9db43ae52bcc891529602c850Mark Andrews
a8be540f55786eb9db43ae52bcc891529602c850Mark AndrewsBUILD_BITS = 32_and_64
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.
6c52944ef2281095d1c317a45ea013b8f3cfa135Mark AndrewsCOMPILER = gcc
72379d863a3bb135e7da36e344b731a59b8c3e33Mark Andrewsinclude ../../../../make-rules/shared-macros.mk
77fad835c56b118faf77a69af618d0bca7a16aacMark Andrews
77fad835c56b118faf77a69af618d0bca7a16aacMark AndrewsCOMPONENT_NAME= gst-plugins-good
e021f388dfc2ac024a103def34818af73e7e869fMark AndrewsCOMPONENT_VERSION= 1.4.5
dd95acdbce0e2a2775391709cdfca0a9eda7e8f7Mark AndrewsCOMPONENT_PROJECT_URL= http://gstreamer.freedesktop.org/
dd95acdbce0e2a2775391709cdfca0a9eda7e8f7Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
c5eebaf6f1311662f8120a8b560e2dbbfd5c92e8Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
71e7ac828e9f4f2b124455b00c3d11560aa5d4c1Mark Andrews sha256:79b1b5f3f7bcaa8a615202eb5e176121eeb8336960f70687e536ad78dbc7e641
71e7ac828e9f4f2b124455b00c3d11560aa5d4c1Mark AndrewsCOMPONENT_ARCHIVE_URL= http://gstreamer.freedesktop.org/src/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1e6d80a391137b26e7250e72f6b28eb92c2b9952Mark AndrewsCOMPONENT_BUGDB= gnome/multimedia
892c9a8817a454fbac32b099eb55af453b19ce86Mark Andrews
892c9a8817a454fbac32b099eb55af453b19ce86Mark AndrewsTPNO= 25637
af4b677e0de9c4ce67a5187039681a58f73b86eaMark Andrews
f34970d390482ceea61bd4d5bcd6ead7828157daMark Andrews# Hook up tests after build servers are installed with dependencies
f34970d390482ceea61bd4d5bcd6ead7828157daMark AndrewsTEST_TARGET= $(SKIP_TEST)
4d86cda3d7eb31578c9088c51a26643d43799533Mark Andrews
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.
84a5b69f0029952e33c96695f0a7d26c2bb8f7ccMark AndrewsPYTHON_VERSIONS= 2.7
e9e869569a92c4b1d5339d3bfb22232e5b401db1Mark Andrews
73fb13fe97cf2f1d93d5e2ea56583fdb2f40b6f3Mark Andrews# Needs gobject-introspection, not available on S11.
73fb13fe97cf2f1d93d5e2ea56583fdb2f40b6f3Mark Andrewsifeq ($(BUILD_TYPE), evaluation)
6f1ad0fc645250c240f21a9201e8cdb0f263c218Mark AndrewsBUILD_32_and_64=
e3d982f4a8e8a974231042ff4303ed8e82dfbdf9Mark AndrewsINSTALL_32_and_64=
e3d982f4a8e8a974231042ff4303ed8e82dfbdf9Mark AndrewsPUBLISH_STAMP=
e3d982f4a8e8a974231042ff4303ed8e82dfbdf9Mark Andrewsendif
783707ee556191b974e951f04accf09f443f5fdfMark Andrews
e743a2b3b729df76956e903ac6a3dc3d6eea6df6Mark Andrewsinclude $(WS_MAKE_RULES)/common.mk
e743a2b3b729df76956e903ac6a3dc3d6eea6df6Mark Andrews
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 Andrews
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/
2651dcdf758ed1db3379d7004067fb46d308ed1cMark Andrews
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/
81e6a5849d61c2e710d628cf9a7b7282eaa88c46Mark Andrews
81e6a5849d61c2e710d628cf9a7b7282eaa88c46Mark AndrewsPKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
4181218570e915959dd203c18f8cf4a03dca5d68Mark Andrews
4181218570e915959dd203c18f8cf4a03dca5d68Mark AndrewsCPPFLAGS += -I$(GST_BASE)/usr/include/gstreamer-1.0 \
4181218570e915959dd203c18f8cf4a03dca5d68Mark Andrews -I$(PULSE_BASE)/usr/include/pulse \
cd0a7c71c0edd9540a7e917a2389a3ad0accc835Mark Andrews -I$(SOUP_BASE)/usr/include/libsoup-2.4 \
ad98a8699371c9c449982fbbd8ceda91ad745f2aMark Andrews -I$(SOUP_BASE)/usr/include/libsoup-gnome-2.4
ad98a8699371c9c449982fbbd8ceda91ad745f2aMark Andrews
c1807114ce574896694e3f449c73b098fe91730fMark AndrewsLD_OPTIONS.32 += -L $(GST_BASE)/usr/lib \
c1807114ce574896694e3f449c73b098fe91730fMark Andrews -L $(PULSE_BASE)/usr/lib \
c1807114ce574896694e3f449c73b098fe91730fMark Andrews -L $(SOUP_BASE)/usr/lib
0066165079c7d85033f4b623153e404df31b9c75Mark Andrews
276f1d9a380affd06e5fd9a29c30d0ebd433ed36Mark AndrewsLD_OPTIONS.64 += -L $(GST_BASE)/usr/lib/$(MACH64) \
276f1d9a380affd06e5fd9a29c30d0ebd433ed36Mark Andrews -L $(PULSE_BASE)/usr/lib/$(MACH64) \
276f1d9a380affd06e5fd9a29c30d0ebd433ed36Mark Andrews -L $(SOUP_BASE)/usr/lib/$(MACH64)
055597532db52233e80f617b8b015e8caadcb577Mark Andrews
61a4d5e7d86f3abcd63aa9254900a0cee3444215Mark AndrewsLD_OPTIONS += $(LD_OPTIONS.$(BITS))
61a4d5e7d86f3abcd63aa9254900a0cee3444215Mark Andrews
61a4d5e7d86f3abcd63aa9254900a0cee3444215Mark AndrewsDEPENDED += $(WS_TOP)/components/desktop/gstreamer1/gst-plugins-base/build/manifest-$(MACH)-gst-plugins-base.depend
61a4d5e7d86f3abcd63aa9254900a0cee3444215Mark Andrews
055597532db52233e80f617b8b015e8caadcb577Mark Andrews# end Delete
055597532db52233e80f617b8b015e8caadcb577Mark Andrews
055597532db52233e80f617b8b015e8caadcb577Mark AndrewsCXXFLAGS += -std=c++11
055597532db52233e80f617b8b015e8caadcb577Mark Andrews
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.
6cdae8730d5a287c30987516c6f99962d4e8e6beMark AndrewsCONFIGURE_ENV += ac_cv_prog_HAVE_CXX=yes
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrews
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrews# No need for firewire support.
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark AndrewsCONFIGURE_OPTIONS += --disable-dv1394
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark Andrews# Linux only; requires ALSA.
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark AndrewsCONFIGURE_OPTIONS += --disable-monoscope
40e7c805a8f38ad9b20dd6c688496fc09fc971c2Mark AndrewsCONFIGURE_OPTIONS += --disable-static
9076b18608d8e5cfff8fac54ef82853371fdd0d6Mark Andrews# sunaudio no longer builds; interfaces used in gstreamer are gone (mixer.h).
073bd4c4bcc2f2597521578dc6ae0f49a065626cMark AndrewsCONFIGURE_OPTIONS += --disable-sunaudio
073bd4c4bcc2f2597521578dc6ae0f49a065626cMark AndrewsCONFIGURE_OPTIONS += --enable-bz2
af5273ceab514c55ddcd7ebaed5d598150b6b8faMark AndrewsCONFIGURE_OPTIONS += --enable-cairo
073bd4c4bcc2f2597521578dc6ae0f49a065626cMark AndrewsCONFIGURE_OPTIONS += --enable-jpeg
af5273ceab514c55ddcd7ebaed5d598150b6b8faMark AndrewsCONFIGURE_OPTIONS += --enable-libpng
411c61d6fbf5a27c78650b9a1b3c69ac2640c929Mark AndrewsCONFIGURE_OPTIONS += --enable-oss
3c20ae76389dd7bd2fbbb5145f51fe7f72f97f14Mark AndrewsCONFIGURE_OPTIONS += --enable-oss4
3c20ae76389dd7bd2fbbb5145f51fe7f72f97f14Mark AndrewsCONFIGURE_OPTIONS += --enable-pulse
2d2e0fff8e168012bc34a40ee24476eddab901ecMark AndrewsCONFIGURE_OPTIONS += --enable-soup
2d2e0fff8e168012bc34a40ee24476eddab901ecMark AndrewsCONFIGURE_OPTIONS += --enable-speex
2d2e0fff8e168012bc34a40ee24476eddab901ecMark AndrewsCONFIGURE_OPTIONS += --enable-taglib
314cac23654229f5df93af0c41231fd3c2187621Mark AndrewsCONFIGURE_OPTIONS += --enable-vpx
314cac23654229f5df93af0c41231fd3c2187621Mark AndrewsCONFIGURE_OPTIONS += --enable-x
314cac23654229f5df93af0c41231fd3c2187621Mark AndrewsCONFIGURE_OPTIONS += --enable-xshm
c42ab597c433e2410473b5daef8a70f12263cfc1Mark AndrewsCONFIGURE_OPTIONS += --enable-zlib
c42ab597c433e2410473b5daef8a70f12263cfc1Mark AndrewsCONFIGURE_OPTIONS += --with-x
c42ab597c433e2410473b5daef8a70f12263cfc1Mark Andrews
2c329da87c5c886e7f4468c69a9e6323121068cbMark Andrews# Ensure system-default python is not used.
2c329da87c5c886e7f4468c69a9e6323121068cbMark AndrewsCONFIGURE_ENV += PYTHON="$(PYTHON.2.7)"
5ec95dc3cbba160d03be874941930bdf3e515bbdMark Andrews
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
43fe2897fc80bbec2115310ca79d432a252f3ea4Mark Andrews# Required due to patches.
9e50b6806e428c817bc9537457db8f0a0aeee167Mark AndrewsCOMPONENT_PREP_ACTION += ( cd $(@D) ; NOCONFIGURE=1 $(CONFIG_SHELL) autogen.sh );
43fe2897fc80bbec2115310ca79d432a252f3ea4Mark Andrews
43fe2897fc80bbec2115310ca79d432a252f3ea4Mark AndrewsREQUIRED_PACKAGES += codec/flac
9e50b6806e428c817bc9537457db8f0a0aeee167Mark AndrewsREQUIRED_PACKAGES += codec/libtheora
0553f5554f2ecfa137565b83378f566edc8fe6abMark AndrewsREQUIRED_PACKAGES += codec/libvpx
50a3801fa7845d1d345af76a379434f54fd6a84bMark AndrewsREQUIRED_PACKAGES += codec/ogg-vorbis
0553f5554f2ecfa137565b83378f566edc8fe6abMark AndrewsREQUIRED_PACKAGES += codec/speex
50a3801fa7845d1d345af76a379434f54fd6a84bMark AndrewsREQUIRED_PACKAGES += image/library/libjpeg
0553f5554f2ecfa137565b83378f566edc8fe6abMark AndrewsREQUIRED_PACKAGES += image/library/libpng
0553f5554f2ecfa137565b83378f566edc8fe6abMark AndrewsREQUIRED_PACKAGES += library/aalib
50a3801fa7845d1d345af76a379434f54fd6a84bMark AndrewsREQUIRED_PACKAGES += library/audio/pulseaudio
ca155b13211202a6195b5a0f085aff06075c4300Mark AndrewsREQUIRED_PACKAGES += library/audio/taglib
ca155b13211202a6195b5a0f085aff06075c4300Mark AndrewsREQUIRED_PACKAGES += library/desktop/cairo
31a71adf14d106260127079f6ea26bea600163e9Mark AndrewsREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
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
110fbe3a1315b38f1491546d82937a01c40f5fdbMark AndrewsREQUIRED_PACKAGES += library/desktop/libvisual
561863ed947f18c8bfcaa631ad83a6bee3b7200bMark AndrewsREQUIRED_PACKAGES += library/desktop/orc
3b9a0696f99c40222e50ddae4d0dd9611737c1daMark AndrewsREQUIRED_PACKAGES += library/desktop/pango
3b9a0696f99c40222e50ddae4d0dd9611737c1daMark AndrewsREQUIRED_PACKAGES += library/glib2
12e8e73d76f78649cb61ba161eb51faf851ddb4aMark AndrewsREQUIRED_PACKAGES += library/libsoup
12e8e73d76f78649cb61ba161eb51faf851ddb4aMark AndrewsREQUIRED_PACKAGES += library/zlib
7a1cba6262f099aa5ecf9ed4db9c0345489653ccMark AndrewsREQUIRED_PACKAGES += runtime/python-27
12e8e73d76f78649cb61ba161eb51faf851ddb4aMark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
12e8e73d76f78649cb61ba161eb51faf851ddb4aMark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
bce2d35b4879d7878e339a9c60db9364508e38fdMark AndrewsREQUIRED_PACKAGES += system/library/math
51f99a878d7449a4280b2a8db4c84acb3735f259Mark AndrewsREQUIRED_PACKAGES += x11/library/libx11
51f99a878d7449a4280b2a8db4c84acb3735f259Mark AndrewsREQUIRED_PACKAGES += x11/library/libxdamage
bff602d4acc7e3facc28b8931538b77d53681f15Mark AndrewsREQUIRED_PACKAGES += x11/library/libxext
51f99a878d7449a4280b2a8db4c84acb3735f259Mark AndrewsREQUIRED_PACKAGES += x11/library/libxfixes
51f99a878d7449a4280b2a8db4c84acb3735f259Mark AndrewsREQUIRED_PACKAGES += x11/library/libxv
bff602d4acc7e3facc28b8931538b77d53681f15Mark Andrews