Andreas Wacknitz
2022-10-26 06fda8e7c339bc8972bd60ac9e817c2114492f45
commit | author | age
e63854 1 #
MS 2 # CDDL HEADER START
3 #
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21
22 #
f00f12 23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
6b86f3 24 # Copyright (c) 2018, Michal Nowak
e63854 25 #
0d77d6 26 BUILD_STYLE=            justmake
7cf6d1 27 include ../../../make-rules/shared-macros.mk
e63854 28
0d77d6 29 PATH=$(PATH.gnu)
e63854 30
0d77d6 31 COMPONENT_NAME=            unrar
06fda8 32 COMPONENT_VERSION=        6.2.1
e63854 33 COMPONENT_SRC=        $(COMPONENT_NAME)
0d77d6 34 COMPONENT_SUMMARY=        Rar archives extractor utility
AW 35 COMPONENT_PROJECT_URL=    https://www.rarlabs.com/rar_add.htm
e63854 36 COMPONENT_ARCHIVE=    $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz
06fda8 37 COMPONENT_ARCHIVE_HASH= sha256:5cc8f7ded262d27c29d01e7a119d2fd23edda427711820454f2eb667044a8900
0d77d6 38 COMPONENT_ARCHIVE_URL=    https://www.rarlab.com/rar/$(COMPONENT_ARCHIVE)
3b567c 39 COMPONENT_FMRI=    archiver/unrar
AP 40 COMPONENT_CLASSIFICATION= Applications/System Utilities
0d77d6 41 COMPONENT_LICENSE=         UnRAR
e63854 42
2cbe8f 43 TEST_TARGET=        $(NO_TESTS)
0d77d6 44 include $(WS_MAKE_RULES)/common.mk
e63854 45
MS 46 PKG_PROTO_DIRS = $(MANGLED_DIR)
3b567c 47 PKG_PROTO_DIRS += $(BUILD_DIR_64)
e63854 48 PKG_PROTO_DIRS += $(COMPONENT_DIR)
MS 49
bd25f5 50 # Needed by .../unrar/os.hpp to correctly define platform endianness.
RB 51 CXXFLAGS.i386 = -DLITTLE_ENDIAN
52 CXXFLAGS.sparc = -DBIG_ENDIAN
53 CXXFLAGS += $(CXXFLAGS.$(MACH))
e63854 54 COMPONENT_BUILD_ENV += CXX="$(CXX)"
MS 55 COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
4814f2 56 COMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
e63854 57 COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
MS 58
b74d96 59 COMPONENT_BUILD_ARGS += STRIP="/bin/true"
17bcc5 60
6b86f3 61 # Auto-generated dependencies
969846 62 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
0d77d6 63 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
AW 64 REQUIRED_PACKAGES += system/library