components/desktop/gstreamer1/gstreamer/Makefile
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Wed, 01 Jun 2016 14:45:54 -0700
changeset 6114 b4ecb55aa3ca
child 6138 d8695ce2d97f
permissions -rw-r--r--
23480413 Deliver gstreamer 1.4.5 in Solaris PSARC/2016/338 GStreamer-1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6114
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    21
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    24
#
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    25
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    26
BUILD_BITS =            32_and_64
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
# All components using gobject-introspection must be built with gcc as
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
# gobject-introspection does not produce correct results when using Studio.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
COMPILER=gcc
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
include ../../../../make-rules/shared-macros.mk
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
# gstreamer has an ancient 0.10 version supported by many applications and the
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
# newest version which has no backwards API compatibility and we likely need to
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
# ship both, hence the odd name.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_NAME=		gstreamer
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_VERSION=	1.4.5
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_PROJECT_URL=	http://gstreamer.freedesktop.org/
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
COMPONENT_ARCHIVE_HASH= \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
	sha256:40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    42
COMPONENT_ARCHIVE_URL=	http://gstreamer.freedesktop.org/src/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
COMPONENT_BUGDB=	gnome/multimedia
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    45
TPNO=			25634
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    46
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    47
# Supports Python 2.x only.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    48
PYTHON_VERSIONS= 2.7
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    49
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    50
# The results-all.master check passes on jagrafess but fails on slitheen
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    51
# Disabling for now
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
TEST_TARGET= $(SKIP_TEST)
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
include $(WS_MAKE_RULES)/common.mk
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
CONFIGURE_OPTIONS += --disable-static
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
# Build documentation (man pages). 
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
CONFIGURE_OPTIONS += --enable-docbook
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
# Required for other components.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
CONFIGURE_OPTIONS += --enable-introspection
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    62
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
# The build process modifies the shebang line to use the version of Python
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    64
# automatically found; to avoid using the current system default, one is
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    65
# explicitly specified here.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    66
CONFIGURE_ENV += PYTHON="$(PYTHON.2.7)"
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    67
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    68
# Required due to patches.
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    69
COMPONENT_PREP_ACTION += ( cd $(@D) ; NOCONFIGURE=1 $(CONFIG_SHELL) autogen.sh );
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    71
# for the tests
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    72
unexport SHELLOPTS
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    74
COMPONENT_TEST_ARGS =   -k -i
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    75
COMPONENT_TEST_TRANSFORMS += \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    76
        '-n ' \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    77
        '-e "/TOTAL:/p" ' \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    78
        '-e "/SKIP:/p" ' \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    79
        '-e "/PASS:/p" ' \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    80
        '-e "/FAIL:/p" ' \
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    81
        '-e "/ERROR:/p" '
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    82
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    83
REQUIRED_PACKAGES += data/docbook/docbook-dtds
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    84
REQUIRED_PACKAGES += data/docbook/docbook-style-dsssl
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    85
REQUIRED_PACKAGES += data/docbook/docbook-style-xsl
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    86
REQUIRED_PACKAGES += library/glib2
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    87
REQUIRED_PACKAGES += library/libxslt
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    88
REQUIRED_PACKAGES += runtime/python-27
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    89
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
b4ecb55aa3ca 23480413 Deliver gstreamer 1.4.5 in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    90
REQUIRED_PACKAGES += system/library/math