components/desktop/libvpx/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 16 May 2016 16:56:53 -0700
changeset 6003 471c600681fd
parent 5973 e70390875a14
child 6552 402379bc1b60
permissions -rw-r--r--
23293944 do not publish libvpx when BUILD_TYPE=evaluation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
#
77fb180fb4fa 23215099 Deliver libvpx 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
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    20
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    21
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    22
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    24
#
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    25
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    26
# Prefer 32-bit over 64-bit for now.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    27
BUILD_BITS=32_and_64
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    28
# For now, all things built for C++11 require gcc.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
COMPILER= gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
include ../../../make-rules/shared-macros.mk
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_NAME=		libvpx
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_VERSION=	1.4.0
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.webmproject.org/
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE= 	$(COMPONENT_SRC).tar.bz2
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_HASH= \
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
	sha256:f582d9b2d60a592a4a3d8c32965ca2d2167e9ade38c6c30bac8801ff66a118e4
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	http://downloads.webmproject.org/releases/webm/$(COMPONENT_ARCHIVE)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
COMPONENT_BUGDB=	library/libvpx
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
TPNO=			25516
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
6003
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    42
# Requires newer version of system/linker from ON, available in S12 but not
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    43
# 11.3, so do not publish.
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    44
ifeq ($(BUILD_TYPE), evaluation)
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    45
BUILD_32_and_64=
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    46
INSTALL_32_and_64=
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    47
PUBLISH_STAMP=
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    48
endif
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    49
 
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    50
# Required for 64-bit builds.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    51
LDFLAGS += $(CC_BITS)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    52
LDFLAGS += -Wl,-zgnu-version-script-compat
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
ASLR_MODE = $(ASLR_ENABLE)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
TEST_TARGET= $(NO_TESTS)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
include $(WS_MAKE_RULES)/common.mk
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
# Assumes GNU versions of tools such as awk and grep.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    62
COMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
COMPONENT_INSTALL_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    64
COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    65
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    66
# Only deliver 64-bit binaries.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    67
CONFIGURE_OPTIONS.32 += --disable-install-bins
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --disable-install-srcs
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --disable-static
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --enable-pic
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-shared
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    72
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
# specify the targets
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    74
CONFIGURE_OPTIONS.sparc += --target=sparc-solaris-gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    75
CONFIGURE_OPTIONS.i386.32 += --target=x86-solaris-gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    76
CONFIGURE_OPTIONS.i386.64 += --target=x86_64-solaris-gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    77
5973
e70390875a14 23277356 libvpx only needs yasm on intel
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5939
diff changeset
    78
ifneq ($(MACH), sparc)
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    79
REQUIRED_PACKAGES += developer/yasm
5973
e70390875a14 23277356 libvpx only needs yasm on intel
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5939
diff changeset
    80
endif
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    81
REQUIRED_PACKAGES += system/library/math
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    82
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    83
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime