author | Niveditha Rau <Niveditha.Rau@Oracle.COM> |
Thu, 12 May 2016 11:26:45 -0700 | |
changeset 5973 | e70390875a14 |
parent 5939 | 77fb180fb4fa |
child 6003 | 471c600681fd |
permissions | -rw-r--r-- |
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 |
|
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
42 |
# Required for 64-bit builds. |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
43 |
LDFLAGS += $(CC_BITS) |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
44 |
LDFLAGS += -Wl,-zgnu-version-script-compat |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
45 |
|
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
46 |
ASLR_MODE = $(ASLR_ENABLE) |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
47 |
|
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
48 |
TEST_TARGET= $(NO_TESTS) |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
49 |
|
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
50 |
include $(WS_MAKE_RULES)/common.mk |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
51 |
|
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
52 |
# 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
|
53 |
CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH) |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
54 |
COMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH) |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
55 |
COMPONENT_INSTALL_ENV += PATH=$(GNUBIN):$(PATH) |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
56 |
COMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH) |
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 |
# Only deliver 64-bit binaries. |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
59 |
CONFIGURE_OPTIONS.32 += --disable-install-bins |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
60 |
CONFIGURE_OPTIONS += --disable-install-srcs |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
61 |
CONFIGURE_OPTIONS += --disable-static |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --enable-pic |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
63 |
CONFIGURE_OPTIONS += --enable-shared |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
64 |
|
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
65 |
# specify the targets |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
66 |
CONFIGURE_OPTIONS.sparc += --target=sparc-solaris-gcc |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
67 |
CONFIGURE_OPTIONS.i386.32 += --target=x86-solaris-gcc |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
68 |
CONFIGURE_OPTIONS.i386.64 += --target=x86_64-solaris-gcc |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
69 |
|
5973
e70390875a14
23277356 libvpx only needs yasm on intel
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
5939
diff
changeset
|
70 |
ifneq ($(MACH), sparc) |
5939
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
71 |
REQUIRED_PACKAGES += developer/yasm |
5973
e70390875a14
23277356 libvpx only needs yasm on intel
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
5939
diff
changeset
|
72 |
endif |
5939
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
73 |
REQUIRED_PACKAGES += system/library/math |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
74 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
77fb180fb4fa
23215099 Deliver libvpx in Solaris
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff
changeset
|
75 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |