components/desktop/libtheora/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 12 Oct 2016 05:02:11 -0700
changeset 7099 58b579e0ff32
parent 7078 0130c788777b
child 7293 a449e2e641be
permissions -rw-r--r--
24836953 firefox/thunderbird js test failures
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6741
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     1
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     3
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     7
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    12
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    18
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    20
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    22
#
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    23
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    24
BUILD_BITS=            	32_and_64
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    25
COMPILER=		gcc
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    27
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		libtheora
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_VERSION=	1.1.1
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://downloads.xiph.org/releases/theora/
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH= \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    33
	sha256:b6ae1ee2fa3d42ac489287d3ec34c5885730b1296f0801ae577a35193d3affbc
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_BUGDB=	gnome/multimedia
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    36
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    37
TPNO=			9578
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    38
7078
0130c788777b 24818266 do not publish libtheora when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6741
diff changeset
    39
# Depends on libogg which is on the do-not-publish list.
0130c788777b 24818266 do not publish libtheora when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6741
diff changeset
    40
include $(WS_MAKE_RULES)/no-evaluation.mk
0130c788777b 24818266 do not publish libtheora when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6741
diff changeset
    41
6741
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    43
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    44
# Assumes GNU versions of utilities in PATH (e.g. tail).
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    45
COMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)"
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    46
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    47
CONFIGURE_OPTIONS += --disable-static
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    48
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    49
# for the tests
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    50
unexport SHELLOPTS
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    51
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    52
COMPONENT_TEST_ARGS =   -k -i
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    53
COMPONENT_TEST_TRANSFORMS += \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    54
        '-n ' \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    55
        '-e "/TOTAL:/p" ' \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    56
        '-e "/SKIP:/p" ' \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    57
        '-e "/PASS:/p" ' \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    58
        '-e "/FAIL:/p" ' \
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    59
        '-e "/ERROR:/p" '
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    60
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    61
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    62
# Replace the following with REQUIRED_PACKAGES += codec/libogg when
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    63
# the build server is updated
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    64
# The dependency isn't installed, so add it manually since pkgdepend
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    65
# can't resolve them yet: 15708323
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    66
DEPENDED += $(WS_TOP)/components/desktop/libogg/build/manifest-$(MACH)-libogg.depend
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    67
REQUIRED_PACKAGES += $(shell $(GSED) -n 's/REQUIRED_PACKAGES +=//p' ../libogg/Makefile)
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    68
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    69
REQUIRED_PACKAGES += developer/documentation-tool/doxygen
2aff74abb0f1 23245480 Move libtheora 1.1.1 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents:
diff changeset
    70
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime