components/unrar/Makefile
author David Hollister <david.hollister@oracle.com>
Wed, 12 Oct 2016 14:01:13 -0600
changeset 7094 61352b4e5af5
parent 5830 89957c69cf72
child 7146 894fd460ae8f
permissions -rw-r--r--
24797203 OpenStack RBAC profiles allow reading too many files 24797238 keystone RBAC and SMF should point at Apache log files 24797256 cinder RBAC and SMF should point at Apache log files 24830959 horizon RBAC and SMF should point at Apache log files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
5830
89957c69cf72 23140736 The fix for 23094105 needs some more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5794
diff changeset
    31
COMPONENT_VERSION=	5.3.11
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=	\
5830
89957c69cf72 23140736 The fix for 23094105 needs some more work
Rich Burridge <rich.burridge@oracle.com>
parents: 5794
diff changeset
    36
    sha256:77b87af4b2976ef7c6b0c79e071284c2c1b035a9543273ec925f9d92f73b8763
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