zsh: update to 5.7.1 & native build
[unleashed-userland.git] / components / archiver / unrar / Makefile
blob7e1c4a35690bc0ba5c8541c533686a88c7320cec
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin:/usr/sbin
30 COMPONENT_NAME= unrar
31 COMPONENT_VERSION= 4.2.4
32 COMPONENT_SRC= $(COMPONENT_NAME)
33 COMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm
34 COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
35 COMPONENT_ARCHIVE_HASH= \
36 sha256:9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686
37 COMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
38 COMPONENT_BUGDB= utility/unrar
40 include $(WS_TOP)/make-rules/prep.mk
41 include $(WS_TOP)/make-rules/justmake.mk
42 include $(WS_TOP)/make-rules/ips.mk
44 PKG_PROTO_DIRS = $(MANGLED_DIR)
45 PKG_PROTO_DIRS += $(BUILD_DIR_32)
46 PKG_PROTO_DIRS += $(COMPONENT_DIR)
48 PATCH_LEVEL = 0
51 # Needed by .../unrar/os.hpp to correctly define platform endianness.
52 CXXFLAGS.i386 = -DLITTLE_ENDIAN
53 CXXFLAGS.sparc = -DBIG_ENDIAN
54 CXXFLAGS += $(CXXFLAGS.$(MACH))
55 CXXFLAGS += "-erroff=wvarhidemem"
56 COMPONENT_BUILD_ENV += CXX="$(CXX)"
57 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
58 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
59 COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
61 COMPONENT_BUILD_ARGS += -f makefile.unix
62 COMPONENT_BUILD_ARGS += STRIP="/bin/true"
64 ASLR_MODE = $(ASLR_ENABLE)
66 # common targets
67 build: $(BUILD_32)
69 install: $(BUILD_32)
71 test: $(NO_TESTS)
73 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
75 include $(WS_TOP)/make-rules/depend.mk
77 REQUIRED_PACKAGES += system/library
78 REQUIRED_PACKAGES += system/library/g++-4-runtime
79 REQUIRED_PACKAGES += system/library/gcc-4-runtime