components/desktop/libvpx/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Thu, 13 Oct 2016 17:26:39 -0700
changeset 7104 8f45af4c27d7
parent 6552 402379bc1b60
child 7687 1093e2a9adbd
permissions -rw-r--r--
24837165 userland should move to parfait 1.9
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
7104
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6552
diff changeset
    26
# parfait is a bit unhappy (24796432)
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6552
diff changeset
    27
export PARFAIT_BUILD=no
8f45af4c27d7 24837165 userland should move to parfait 1.9
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6552
diff changeset
    28
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    29
# Prefer 32-bit over 64-bit for now.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    30
BUILD_BITS=32_and_64
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    31
# 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
    32
COMPILER= gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    33
include ../../../make-rules/shared-macros.mk
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    34
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_NAME=		libvpx
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_VERSION=	1.4.0
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_PROJECT_URL=	http://www.webmproject.org/
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_ARCHIVE= 	$(COMPONENT_SRC).tar.bz2
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    39
COMPONENT_ARCHIVE_HASH= \
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    40
	sha256:f582d9b2d60a592a4a3d8c32965ca2d2167e9ade38c6c30bac8801ff66a118e4
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    41
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
    42
COMPONENT_BUGDB=	library/libvpx
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    43
TPNO=			25516
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    44
6003
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    45
# 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
    46
# 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
    47
ifeq ($(BUILD_TYPE), evaluation)
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    48
BUILD_32_and_64=
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    49
INSTALL_32_and_64=
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    50
PUBLISH_STAMP=
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    51
endif
471c600681fd 23293944 do not publish libvpx when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5973
diff changeset
    52
 
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    53
# Required for 64-bit builds.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    54
LDFLAGS += $(CC_BITS)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    55
LDFLAGS += -Wl,-zgnu-version-script-compat
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    56
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    57
TEST_TARGET= $(NO_TESTS)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    58
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    59
include $(WS_MAKE_RULES)/common.mk
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    60
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    61
# 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
    62
CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    63
COMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    64
COMPONENT_INSTALL_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    65
COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH)
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    66
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    67
# Only deliver 64-bit binaries.
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    68
CONFIGURE_OPTIONS.32 += --disable-install-bins
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --disable-install-srcs
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --disable-static
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-pic
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-shared
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    73
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    74
# specify the targets
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    75
CONFIGURE_OPTIONS.sparc += --target=sparc-solaris-gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    76
CONFIGURE_OPTIONS.i386.32 += --target=x86-solaris-gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    77
CONFIGURE_OPTIONS.i386.64 += --target=x86_64-solaris-gcc
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    78
5973
e70390875a14 23277356 libvpx only needs yasm on intel
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5939
diff changeset
    79
ifneq ($(MACH), sparc)
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    80
REQUIRED_PACKAGES += developer/yasm
5973
e70390875a14 23277356 libvpx only needs yasm on intel
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 5939
diff changeset
    81
endif
5939
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    82
REQUIRED_PACKAGES += system/library/math
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    83
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
77fb180fb4fa 23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    84
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime