components/p7zip/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Fri, 29 Apr 2016 10:29:28 -0700
changeset 5923 125ce0e23ed8
parent 5682 94c0ca64c022
child 7053 6416ca905309
permissions -rw-r--r--
22288416 p7zip 15.14.1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
#
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
#
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
#
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
#
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    18
#
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    20
#
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    21
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@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: 4339
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@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: 4339
diff changeset
    25
BUILD_BITS= 64
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    26
# When building with Studio, p7zip has many warnings about extra semicolons,
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    27
# and at least one hard error due to an extra semicolon.  It also suffers from
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    28
# the pragma pack push/pop problem (15358176).
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    29
COMPILER= gcc
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    30
include ../../make-rules/shared-macros.mk
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    31
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1205
diff changeset
    32
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    33
PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    34
else
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    35
PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1205
diff changeset
    36
endif
139
5ae244456983 7016734 move pz7ip from sfw to userland (fix path)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 138
diff changeset
    37
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    38
COMPONENT_NAME=		p7zip
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    39
COMPONENT_VERSION=	15.14.1
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 421
diff changeset
    40
COMPONENT_PROJECT_URL=	http://p7zip.sourceforge.net/
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    41
COMPONENT_SRC=		$(COMPONENT_NAME)_$(COMPONENT_VERSION)
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    42
COMPONENT_ARCHIVE=	$(COMPONENT_SRC)_src_all.tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    43
COMPONENT_ARCHIVE_HASH=	\
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    44
    sha256:699db4da3621904113e040703220abb1148dfef477b55305e2f14a4f1f8f25d4
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    45
COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/p7zip/$(COMPONENT_ARCHIVE)
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    46
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    47
TPNO=			27905
2209
69f745d47612 19078624 p7zip version 9.20.1 needs a TPNO at the appropriate juncture
Danek Duvall <danek.duvall@oracle.com>
parents: 2164
diff changeset
    48
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    49
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    50
INSTALL_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    51
include $(WS_MAKE_RULES)/common.mk
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    52
2164
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2075
diff changeset
    53
COMPONENT_TEST_DIR =		$(@D)
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2075
diff changeset
    54
COMPONENT_TEST_ENV =		P7ZIP_HOME_DIR=$(BUILD_DIR)/$(MACH$(BITS))/bin
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2075
diff changeset
    55
COMPONENT_TEST_TARGETS =	test test_7z test_7zr
b580bc10e31a 19824924 Various Userland component test: Makefile targets should be standardized
Rich Burridge <rich.burridge@oracle.com>
parents: 2075
diff changeset
    56
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    57
COMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    58
COMPONENT_BUILD_TARGETS = all3
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    59
COMPONENT_INSTALL_ARGS += DEST_HOME=$(USRDIR) DEST_DIR=$(PROTO_DIR)
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    60
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    61
$(SOURCE_DIR)/DOC/copying.txt $(SOURCE_DIR)/DOC/unRarLicense.txt: prep
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    62
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    63
$(BUILD_DIR)/%: $(SOURCE_DIR)/DOC/%
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    64
	$(CP) $< $@
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    65
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    66
$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOC/copying.txt
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    67
	$(CP) $(SOURCE_DIR)/DOC/copying.txt $@
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    68
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    69
# common targets
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    70
EXTRATARGETS = \
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    71
	$(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    72
2075
17fc4867be16 19581879 p7zip 64-bit and ASLR
Michael Nestler <Michael.Nestler@Oracle.COM>
parents: 1930
diff changeset
    73
install:	build $(INSTALL_64) $(EXTRATARGETS)
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    74
1930
062897f667fa 18897274 /usr/share/man/man1/7zr.1 should be delivered by unix text format
Danek Duvall <danek.duvall@oracle.com>
parents: 1701
diff changeset
    75
# 7zr.1 is in DOS format for some reason, and geqn can't handle it.
062897f667fa 18897274 /usr/share/man/man1/7zr.1 should be delivered by unix text format
Danek Duvall <danek.duvall@oracle.com>
parents: 1701
diff changeset
    76
COMPONENT_POST_INSTALL_ACTION += $(GSED) -i -e 's/\r//' $(PROTO_DIR)/usr/man/man1/7zr.1
138
089c2065503f 7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    77
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2209
diff changeset
    78
REQUIRED_PACKAGES += shell/ksh93
5923
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    79
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
125ce0e23ed8 22288416 p7zip 15.14.1
Danek Duvall <danek.duvall@oracle.com>
parents: 5682
diff changeset
    80
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: 2209
diff changeset
    81
REQUIRED_PACKAGES += system/library/math