components/unrar/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 29 Aug 2012 11:05:56 -0700
changeset 957 255465c5756f
parent 800 2ad056ed89ec
child 989 e18b35b042df
permissions -rw-r--r--
Close of build 04.
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
#
698
7144bcdfe7dd 7143131 hi ho, hi ho, it's off to nine we go
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 293
diff changeset
    23
# Copyright (c) 2011, 2012, 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
779
0efb89d4efa5 7161382 Update unrar to version 4.1.4
Rich Burridge <rich.burridge@oracle.com>
parents: 698
diff changeset
    31
COMPONENT_VERSION=	4.1.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=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 779
diff changeset
    36
    sha256:705d93285fcd3b9c11f68e52d96395d942bf3c20172dcee14f0d78f1fee57361
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
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    39
include ../../make-rules/prep.mk
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    40
include ../../make-rules/justmake.mk
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    41
include ../../make-rules/ips.mk
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    42
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    43
PKG_PROTO_DIRS = $(MANGLED_DIR)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    44
PKG_PROTO_DIRS += $(BUILD_DIR_32)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    45
PKG_PROTO_DIRS += $(COMPONENT_DIR)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    46
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    47
PATCH_LEVEL =	0
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    48
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
CXXFLAGS += "-erroff=wvarhidemem"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    51
COMPONENT_BUILD_ENV += CXX="$(CXX)"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    52
COMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    53
COMPONENT_BUILD_ENV += LDFLAGS="$(studio_NORUNPATH)"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_BUILD_ENV += DEFINES="$(CPP_LARGEFILES)"
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    55
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    56
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
    57
COMPONENT_BUILD_ARGS += STRIP="/bin/true"
293
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    58
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    59
# common targets
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    60
build:		$(BUILD_32)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    61
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    62
install:	$(BUILD_32)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    63
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    64
test:		$(NO_TESTS)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    65
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    66
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    67
a352bfc26435 7052460 move unrar to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff changeset
    68
include ../../make-rules/depend.mk