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