components/unrar/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 3817 30b42c38bbc4
child 4355 918f15f3f728
permissions -rw-r--r--
21116842 add system-test targets to each component Makefile and to top-level Makefiles
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
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2030
diff changeset
    23
# Copyright (c) 2011, 2015, 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
#
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    25
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
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    28
PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin:/usr/sbin
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
989
e18b35b042df 7183531 Update unrar to version 4.2.4
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    31
COMPONENT_VERSION=	4.2.4
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=	\
989
e18b35b042df 7183531 Update unrar to version 4.2.4
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    36
    sha256:9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686
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)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 989
diff changeset
    38
COMPONENT_BUGDB=	utility/unrar
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    39
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
TPNO=			18537
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
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2030
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2030
diff changeset
    43
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2030
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    45
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    46
PKG_PROTO_DIRS = $(MANGLED_DIR)
1249
57ecc19cd86f 16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    47
PKG_PROTO_DIRS += $(BUILD_DIR_64)
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    48
PKG_PROTO_DIRS += $(COMPONENT_DIR)
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
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
57ecc19cd86f 16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    56
CXXFLAGS += $(CXXFLAGS.$(MACH))
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    57
CXXFLAGS += "-erroff=wvarhidemem"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
COMPONENT_BUILD_ENV += CXX="$(CXX)"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    59
COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
1249
57ecc19cd86f 16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    60
COMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH) -m64"
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    61
COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    63
COMPONENT_BUILD_ARGS += -f makefile.unix
698
7144bcdfe7dd 7143131 hi ho, hi ho, it's off to nine we go
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 293
diff changeset
    64
COMPONENT_BUILD_ARGS += STRIP="/bin/true"
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    65
1191
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    66
ASLR_MODE = $(ASLR_ENABLE)
3bdf33525a13 16426977 Numerous components in Userland need to have ASLR enabled.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    67
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    68
# common targets
1249
57ecc19cd86f 16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    69
build:		$(BUILD_64)
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    70
1249
57ecc19cd86f 16578947 unrar should be 64-bit
Rich Burridge <rich.burridge@oracle.com>
parents: 1191
diff changeset
    71
install:	$(BUILD_64)
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    72
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    73
test:		$(NO_TESTS)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    74
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    75
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    76
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    77
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2030
diff changeset
    78
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2030
diff changeset
    79
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
    80
REQUIRED_PACKAGES += system/library/math