components/desktop/gstreamer1/gst-plugins-base/Makefile
changeset 6195 baf84532df66
child 6740 b9a930b724d2
equal deleted inserted replaced
6194:4606e5a93f16 6195:baf84532df66
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 BUILD_BITS =            32_and_64
       
    27 # All components using gobject-introspection must be built with gcc as
       
    28 # gobject-introspection does not produce correct results when using Studio.
       
    29 COMPILER =              gcc
       
    30 include ../../../../make-rules/shared-macros.mk
       
    31 
       
    32 COMPONENT_NAME=		gst-plugins-base
       
    33 COMPONENT_VERSION=	1.4.5
       
    34 COMPONENT_PROJECT_URL=	http://gstreamer.freedesktop.org/
       
    35 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
       
    36 COMPONENT_ARCHIVE_HASH= \
       
    37 	sha256:77bd8199e7a312d3d71de9b7ddf761a3b78560a2c2a80829d0815ca39cbd551d
       
    38 COMPONENT_ARCHIVE_URL=	http://gstreamer.freedesktop.org/src/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
    39 COMPONENT_BUGDB=	gnome/multimedia
       
    40 
       
    41 TPNO=			25636
       
    42 
       
    43 # Only build for 2.7 for now as we need 32-bit and 64-bit support; all of the
       
    44 # GNOME and desktop components must be built for Python 2.7 for now.
       
    45 PYTHON_VERSIONS= 2.7
       
    46 
       
    47 # The results-all.master check passes on jagrafess but fails on slitheen
       
    48 # Disabling for now 
       
    49 TEST_TARGET= $(SKIP_TEST)
       
    50 
       
    51 # Needs gobject-introspection, not available on S11.
       
    52 ifeq ($(BUILD_TYPE), evaluation)
       
    53 BUILD_32_and_64=
       
    54 INSTALL_32_and_64=
       
    55 PUBLISH_STAMP=
       
    56 endif
       
    57 
       
    58 include $(WS_MAKE_RULES)/common.mk
       
    59 
       
    60 CFLAGS += -DHAVE_FIONREAD_IN_SYS_FILIO
       
    61 
       
    62 CONFIGURE_OPTIONS += --disable-static
       
    63 CONFIGURE_OPTIONS += --enable-ogg
       
    64 CONFIGURE_OPTIONS += --enable-theora
       
    65 CONFIGURE_OPTIONS += --enable-vorbis
       
    66 CONFIGURE_OPTIONS += --with-x
       
    67 
       
    68 # The build process modifies the shebang line to use the version of Python
       
    69 # automatically found; to avoid using the current system default, one is
       
    70 # explicitly specified here.
       
    71 CONFIGURE_ENV += PYTHON="$(PYTHON.2.7)"
       
    72 
       
    73 # Ensure Python modules are installed into vendor package directories.
       
    74 CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
       
    75 CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
       
    76 
       
    77 # Required due to patches.
       
    78 COMPONENT_PREP_ACTION += ( cd $(@D) ; NOCONFIGURE=1 $(CONFIG_SHELL) autogen.sh );
       
    79 
       
    80 # for the tests
       
    81 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
       
    82 COMPONENT_TEST_ARGS =   -k -i
       
    83 COMPONENT_TEST_TRANSFORMS += \
       
    84         '-n ' \
       
    85         '-e "/TOTAL:/p" ' \
       
    86         '-e "/SKIP:/p" ' \
       
    87         '-e "/PASS:/p" ' \
       
    88         '-e "/FAIL:/p" ' \
       
    89         '-e "/ERROR:/p" '
       
    90 
       
    91 REQUIRED_PACKAGES += codec/libtheora
       
    92 REQUIRED_PACKAGES += codec/ogg-vorbis
       
    93 REQUIRED_PACKAGES += library/desktop/cairo
       
    94 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
       
    95 REQUIRED_PACKAGES += library/desktop/gstreamer-1
       
    96 REQUIRED_PACKAGES += library/desktop/libvisual
       
    97 REQUIRED_PACKAGES += library/desktop/orc
       
    98 REQUIRED_PACKAGES += library/desktop/pango
       
    99 REQUIRED_PACKAGES += library/glib2
       
   100 REQUIRED_PACKAGES += library/zlib
       
   101 REQUIRED_PACKAGES += runtime/python-27
       
   102 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
       
   103 REQUIRED_PACKAGES += system/library/math
       
   104 REQUIRED_PACKAGES += x11/library/libx11
       
   105 REQUIRED_PACKAGES += x11/library/libxext
       
   106 REQUIRED_PACKAGES += x11/library/libxv