author | Rich Burridge <rich.burridge@oracle.com> |
Tue, 14 Mar 2017 13:30:05 -0700 | |
changeset 7749 | a43ac3f5a0f5 |
parent 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
21 |
|
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7146
diff
changeset
|
23 |
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
25 |
BUILD_BITS= 64 |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
27 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
28 |
PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN):$(USRSBINDIR) |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
29 |
|
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
30 |
COMPONENT_NAME= unrar |
7749
a43ac3f5a0f5
25637680 Update unrar to version 5.4.5
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
31 |
COMPONENT_VERSION= 5.4.5 |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_SRC= $(COMPONENT_NAME) |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_PROJECT_URL= http://www.rarlabs.com/rar_add.htm |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)src-$(COMPONENT_VERSION).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
779
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
7749
a43ac3f5a0f5
25637680 Update unrar to version 5.4.5
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
36 |
sha256:e470c584332422893fb52e049f2cbd99e24dc6c6da971008b4e2ae4284f8796c |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
37 |
COMPONENT_ARCHIVE_URL= http://www.rarlab.com/rar/$(COMPONENT_ARCHIVE) |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7146
diff
changeset
|
38 |
COMPONENT_ANITYA_ID= 13306 |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
39 |
|
7749
a43ac3f5a0f5
25637680 Update unrar to version 5.4.5
Rich Burridge <rich.burridge@oracle.com>
parents:
7687
diff
changeset
|
40 |
TPNO= 33955 |
2030
bdc5bb5c4f99
19078551 libneon version 0.29.6 needs a TPNO at the appropriate juncture
Rich Burridge <rich.burridge@oracle.com>
parents:
1249
diff
changeset
|
41 |
|
4355
918f15f3f728
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
42 |
# We need this before the default PKG_PROTO_DIRS, so set it before we include |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
43 |
# common.mk, which will append the default set. |
4355
918f15f3f728
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
44 |
PKG_PROTO_DIRS = $(BUILD_DIR_64) |
918f15f3f728
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
45 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
46 |
BUILD_STYLE= justmake |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
47 |
INSTALL_TARGET= build |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
48 |
TEST_TARGET= $(NO_TESTS) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
49 |
include $(WS_MAKE_RULES)/common.mk |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
50 |
|
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
51 |
PATCH_LEVEL = 0 |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
52 |
|
1249
57ecc19cd86f
16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1191
diff
changeset
|
53 |
# Needed by .../unrar/os.hpp to correctly define platform endianness. |
57ecc19cd86f
16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1191
diff
changeset
|
54 |
CXXFLAGS.i386 = -DLITTLE_ENDIAN |
57ecc19cd86f
16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1191
diff
changeset
|
55 |
CXXFLAGS.sparc = -DBIG_ENDIAN |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
56 |
CXXFLAGS.studio += "-erroff=wvarhidemem" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
57 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
58 |
LDFLAGS += $(CC_BITS) $(studio_NORUNPATH) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
59 |
|
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
60 |
COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)" |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
61 |
|
5794
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
62 |
COMPONENT_BUILD_ARGS += -f makefile |
698
7144bcdfe7dd
7143131 hi ho, hi ho, it's off to nine we go
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
293
diff
changeset
|
63 |
COMPONENT_BUILD_ARGS += STRIP="/bin/true" |
5794
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
64 |
# Override component makefile flags. |
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
65 |
COMPONENT_BUILD_ARGS += CXX="$(CXX)" |
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
66 |
COMPONENT_BUILD_ARGS += CXXFLAGS="$(CXXFLAGS)" |
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
67 |
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)" |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
68 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2030
diff
changeset
|
69 |
REQUIRED_PACKAGES += system/library/c++-runtime |
7146
894fd460ae8f
24683708 unrar fails to package with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5830
diff
changeset
|
70 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime |
894fd460ae8f
24683708 unrar fails to package with studio 12.5
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5830
diff
changeset
|
71 |
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2030
diff
changeset
|
72 |
REQUIRED_PACKAGES += system/library/math |