Makefile revision 6732
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CDDL HEADER START
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# The contents of this file are subject to the terms of the
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Common Development and Distribution License (the "License").
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# You may not use this file except in compliance with the License.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# See the License for the specific language governing permissions
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# and limitations under the License.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# When distributing Covered Code, include this CDDL HEADER in each
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0662ed52e814f8f08ef0e09956413a792584eddffuankg# If applicable, add the following below this CDDL HEADER, with the
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# fields enclosed by brackets "[]" replaced with your own identifying
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# information: Portions Copyright [yyyy] [name of copyright owner]
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CDDL HEADER END
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# When building with Studio, p7zip has many warnings about extra semicolons,
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# and at least one hard error due to an extra semicolon. It also suffers from
4fbd71b56ec5cc48f64b6bea20154bfcce857944fuankg# the pragma pack push/pop problem (15358176).
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg sha256:699db4da3621904113e040703220abb1148dfef477b55305e2f14a4f1f8f25d4
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_INSTALL_ARGS += DEST_HOME=/usr DEST_DIR=$(PROTO_DIR)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# -Bdirect breaks x86 binaries - exceptions are not caught
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg$(SOURCE_DIR)/DOC/copying.txt $(SOURCE_DIR)/DOC/unRarLicense.txt: prep
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOC/copying.txt
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# common targets
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg $(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# When p7zip's install target is run, it creates all its directories mode 555,
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# so they're impossible to remove without adding the write bit first.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgCOMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# build does this always
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg cd $(BUILD_DIR_64) && $(MAKE) -e test P7ZIP_HOME_DIR=$(BUILD_DIR_64)/bin
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg cd $(BUILD_DIR_64) && $(MAKE) -e test_7z P7ZIP_HOME_DIR=$(BUILD_DIR_64)/bin
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg cd $(BUILD_DIR_64) && $(MAKE) -e test_7zr P7ZIP_HOME_DIR=$(BUILD_DIR_64)/bin