Makefile revision 5828
281N/A#
281N/A# CDDL HEADER START
281N/A#
281N/A# The contents of this file are subject to the terms of the
281N/A# Common Development and Distribution License (the "License").
281N/A# You may not use this file except in compliance with the License.
281N/A#
281N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6982N/A# or http://www.opensolaris.org/os/licensing.
6982N/A# See the License for the specific language governing permissions
281N/A# and limitations under the License.
281N/A#
281N/A# When distributing Covered Code, include this CDDL HEADER in each
281N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6982N/A# If applicable, add the following below this CDDL HEADER, with the
6982N/A# fields enclosed by brackets "[]" replaced with your own identifying
6982N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6982N/A#
281N/A# CDDL HEADER END
281N/A#
281N/A
281N/A#
281N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4450N/A#
281N/ABUILD_BITS= 64
281N/Ainclude ../../make-rules/shared-macros.mk
281N/A
281N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN):$(USRSBINDIR)
281N/A
281N/ACOMPONENT_NAME= unrar
281N/ACOMPONENT_VERSION= 5.3.11
2086N/ACOMPONENT_SRC= $(COMPONENT_NAME)
281N/ACOMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm
4134N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
4134N/ACOMPONENT_ARCHIVE_HASH= \
4134N/A sha256:77b87af4b2976ef7c6b0c79e071284c2c1b035a9543273ec925f9d92f73b8763
4134N/ACOMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
281N/A
281N/ATPNO= 27800
281N/A
281N/A# We need this before the default PKG_PROTO_DIRS, so set it before we include
281N/A# common.mk, which will append the default set.
281N/APKG_PROTO_DIRS = $(BUILD_DIR_64)
2086N/A
2086N/ABUILD_STYLE= justmake
281N/AINSTALL_TARGET= build
281N/ATEST_TARGET= $(NO_TESTS)
1177N/Ainclude $(WS_MAKE_RULES)/common.mk
281N/A
281N/APATCH_LEVEL = 0
281N/A
281N/A# Needed by .../unrar/os.hpp to correctly define platform endianness.
281N/ACXXFLAGS.i386 = -DLITTLE_ENDIAN
281N/ACXXFLAGS.sparc = -DBIG_ENDIAN
1177N/ACXXFLAGS.studio += "-erroff=wvarhidemem"
281N/A
281N/ALDFLAGS += $(CC_BITS) $(studio_NORUNPATH)
1177N/A
281N/ACOMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
281N/A
281N/ACOMPONENT_BUILD_ARGS += -f makefile
281N/ACOMPONENT_BUILD_ARGS += STRIP="/bin/true"
281N/A# Override component makefile flags.
281N/ACOMPONENT_BUILD_ARGS += CXX="$(CXX)"
281N/ACOMPONENT_BUILD_ARGS += CXXFLAGS="$(CXXFLAGS)"
281N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
281N/A
1177N/AREQUIRED_PACKAGES += system/library/c++-runtime
1177N/AREQUIRED_PACKAGES += system/library/math
281N/A