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 |
# |
ac9a36
|
26 |
BUILD_STYLE= justmake |
7cf6d1
|
27 |
include ../../../make-rules/shared-macros.mk |
e63854
|
28 |
|
0d77d6
|
29 |
COMPONENT_NAME= unrar |
34aa1e
|
30 |
COMPONENT_VERSION= 6.2.6 |
1dd230
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME) |
0d77d6
|
32 |
COMPONENT_SUMMARY= Rar archives extractor utility |
AW |
33 |
COMPONENT_PROJECT_URL= https://www.rarlabs.com/rar_add.htm |
1dd230
|
34 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz |
34aa1e
|
35 |
COMPONENT_ARCHIVE_HASH= sha256:0c2d4cbc8b34d0e3bec7b474e0f52bbcc6c4320ec089b4141223ee355f63c318 |
0d77d6
|
36 |
COMPONENT_ARCHIVE_URL= https://www.rarlab.com/rar/$(COMPONENT_ARCHIVE) |
191e48
|
37 |
COMPONENT_FMRI= archiver/unrar |
3b567c
|
38 |
COMPONENT_CLASSIFICATION= Applications/System Utilities |
0d77d6
|
39 |
COMPONENT_LICENSE= UnRAR |
e63854
|
40 |
|
1dd230
|
41 |
TEST_TARGET= $(NO_TESTS) |
0d77d6
|
42 |
include $(WS_MAKE_RULES)/common.mk |
e63854
|
43 |
|
191e48
|
44 |
PATH= $(PATH.gnu) |
1dd230
|
45 |
|
e63854
|
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 |