author | Rich Burridge <rich.burridge@oracle.com> |
Fri, 15 Apr 2016 18:45:53 -0700 | |
changeset 5794 | b6c18cf8ca81 |
parent 5682 | 94c0ca64c022 |
child 5830 | 89957c69cf72 |
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 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
23 |
# Copyright (c) 2011, 2016, 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 |
5794
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
31 |
COMPONENT_VERSION= 5.3.1 |
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= \ |
5794
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
36 |
sha256:81303fdadb4e1322a4ff2dd4b2d5c28439dd077b982bf4d142aa1ce2a21966b2 |
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) |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
38 |
|
5794
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
39 |
TPNO= 27800 |
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
|
40 |
|
4355
918f15f3f728
21137686 grails & unrar Makefiles break when PKG_PROTO_DIRS is extended
John Beck <John.Beck@Oracle.COM>
parents:
4339
diff
changeset
|
41 |
# 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
|
42 |
# 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
|
43 |
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
|
44 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
45 |
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
|
46 |
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
|
47 |
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
|
48 |
include $(WS_MAKE_RULES)/common.mk |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
49 |
|
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
50 |
PATCH_LEVEL = 0 |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
51 |
|
1249
57ecc19cd86f
16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1191
diff
changeset
|
52 |
# 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
|
53 |
CXXFLAGS.i386 = -DLITTLE_ENDIAN |
57ecc19cd86f
16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents:
1191
diff
changeset
|
54 |
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
|
55 |
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
|
56 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4355
diff
changeset
|
57 |
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
|
58 |
|
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
59 |
COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)" |
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
60 |
|
5794
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
61 |
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
|
62 |
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
|
63 |
# Override component makefile flags. |
b6c18cf8ca81
23094105 Upgrade unrar to 5.3.1 or newer
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
64 |
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
|
65 |
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
|
66 |
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)" |
293
a352bfc26435
7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
67 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2030
diff
changeset
|
68 |
REQUIRED_PACKAGES += system/library/c++-runtime |
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/math |