Makefile revision 1923
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# CDDL HEADER START
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# The contents of this file are subject to the terms of the
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# Common Development and Distribution License (the "License").
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# You may not use this file except in compliance with the License.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# or http://www.opensolaris.org/os/licensing.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# See the License for the specific language governing permissions
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# and limitations under the License.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# CDDL HEADER END
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen#
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Siraineninclude ../../make-rules/shared-macros.mk
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin:/usr/sbin
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_NAME= unrar
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_VERSION= 4.2.4
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_ARCHIVE_HASH= \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen sha256:9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUGDB= utility/unrar
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Siraineninclude ../../make-rules/prep.mk
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Siraineninclude ../../make-rules/justmake.mk
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Siraineninclude ../../make-rules/ips.mk
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenPKG_PROTO_DIRS = $(MANGLED_DIR)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenPKG_PROTO_DIRS += $(BUILD_DIR_32)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenPKG_PROTO_DIRS += $(COMPONENT_DIR)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenPATCH_LEVEL = 0
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCXXFLAGS += "-erroff=wvarhidemem"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUILD_ENV += CXX="$(CXX)"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH)"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUILD_ARGS += -f makefile.unix
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenCOMPONENT_BUILD_ARGS += STRIP="/bin/true"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen# common targets
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenbuild: $(BUILD_32)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Siraineninstall: $(BUILD_32)
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainentest: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk