Makefile revision 5828
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# CDDL HEADER START
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# The contents of this file are subject to the terms of the
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# Common Development and Distribution License (the "License").
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# You may not use this file except in compliance with the License.
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# or http://www.opensolaris.org/os/licensing.
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# See the License for the specific language governing permissions
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# and limitations under the License.
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# When distributing Covered Code, include this CDDL HEADER in each
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# If applicable, add the following below this CDDL HEADER, with the
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# CDDL HEADER END
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync#
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsyncBUILD_BITS= 64
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsyncinclude ../../make-rules/shared-macros.mk
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsyncPATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN):$(USRSBINDIR)
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsync
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsyncCOMPONENT_NAME= unrar
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsyncCOMPONENT_VERSION= 5.3.11
d263a385041ddc3931b2bbef0213acf87c551ee5vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)
COMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm
COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH= \
sha256:77b87af4b2976ef7c6b0c79e071284c2c1b035a9543273ec925f9d92f73b8763
COMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
TPNO= 27800
# We need this before the default PKG_PROTO_DIRS, so set it before we include
# common.mk, which will append the default set.
PKG_PROTO_DIRS = $(BUILD_DIR_64)
BUILD_STYLE= justmake
INSTALL_TARGET= build
TEST_TARGET= $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
PATCH_LEVEL = 0
# Needed by .../unrar/os.hpp to correctly define platform endianness.
CXXFLAGS.i386 = -DLITTLE_ENDIAN
CXXFLAGS.sparc = -DBIG_ENDIAN
CXXFLAGS.studio += "-erroff=wvarhidemem"
LDFLAGS += $(CC_BITS) $(studio_NORUNPATH)
COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
COMPONENT_BUILD_ARGS += -f makefile
COMPONENT_BUILD_ARGS += STRIP="/bin/true"
# Override component makefile flags.
COMPONENT_BUILD_ARGS += CXX="$(CXX)"
COMPONENT_BUILD_ARGS += CXXFLAGS="$(CXXFLAGS)"
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/math