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