Makefile revision 5971
5937N/A#
5937N/A# CDDL HEADER START
5937N/A#
5937N/A# The contents of this file are subject to the terms of the
5937N/A# Common Development and Distribution License (the "License").
5937N/A# You may not use this file except in compliance with the License.
5937N/A#
5937N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5937N/A# or http://www.opensolaris.org/os/licensing.
5937N/A# See the License for the specific language governing permissions
5937N/A# and limitations under the License.
5937N/A#
5937N/A# When distributing Covered Code, include this CDDL HEADER in each
5937N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5937N/A# If applicable, add the following below this CDDL HEADER, with the
5937N/A# fields enclosed by brackets "[]" replaced with your own identifying
5937N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5937N/A#
5937N/A# CDDL HEADER END
5937N/A#
5937N/A
5937N/A#
5937N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5937N/A#
5937N/A
5937N/A# Prefer 32-bit over 64-bit for now.
5937N/ABUILD_BITS=32_and_64
5937N/A# For now, all things built for C++11 require gcc.
5937N/ACOMPILER= gcc
5937N/Ainclude ../../../make-rules/shared-macros.mk
5937N/A
5937N/ACOMPONENT_NAME= libvpx
5937N/ACOMPONENT_VERSION= 1.4.0
5937N/ACOMPONENT_PROJECT_URL= http://www.webmproject.org/
5937N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
5937N/ACOMPONENT_ARCHIVE_HASH= \
5937N/A sha256:f582d9b2d60a592a4a3d8c32965ca2d2167e9ade38c6c30bac8801ff66a118e4
5937N/ACOMPONENT_ARCHIVE_URL= http://downloads.webmproject.org/releases/webm/$(COMPONENT_ARCHIVE)
5937N/ACOMPONENT_BUGDB= library/libvpx
5937N/ATPNO= 25516
5937N/A
5937N/A# Required for 64-bit builds.
5937N/ALDFLAGS += $(CC_BITS)
5937N/ALDFLAGS += -Wl,-zgnu-version-script-compat
5937N/A
5937N/AASLR_MODE = $(ASLR_ENABLE)
5937N/A
5937N/ATEST_TARGET= $(NO_TESTS)
5937N/A
5937N/Ainclude $(WS_MAKE_RULES)/common.mk
5937N/A
5937N/A# Assumes GNU versions of tools such as awk and grep.
5937N/ACONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
5937N/ACOMPONENT_BUILD_ENV += PATH=$(GNUBIN):$(PATH)
5937N/ACOMPONENT_INSTALL_ENV += PATH=$(GNUBIN):$(PATH)
5937N/ACOMPONENT_TEST_ENV += PATH=$(GNUBIN):$(PATH)
5937N/A
5937N/A# Only deliver 64-bit binaries.
5937N/ACONFIGURE_OPTIONS.32 += --disable-install-bins
5937N/ACONFIGURE_OPTIONS += --disable-install-srcs
5937N/ACONFIGURE_OPTIONS += --disable-static
5937N/ACONFIGURE_OPTIONS += --enable-pic
5937N/ACONFIGURE_OPTIONS += --enable-shared
5937N/A
5937N/A# specify the targets
5937N/ACONFIGURE_OPTIONS.sparc += --target=sparc-solaris-gcc
5937N/ACONFIGURE_OPTIONS.i386.32 += --target=x86-solaris-gcc
5937N/ACONFIGURE_OPTIONS.i386.64 += --target=x86_64-solaris-gcc
5937N/A
5971N/Aifneq ($(MACH), sparc)
5937N/AREQUIRED_PACKAGES += developer/yasm
5971N/Aendif
5937N/AREQUIRED_PACKAGES += system/library/math
5937N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5937N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime