Makefile revision 3454
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PROJECT_URL= http://p7zip.sourceforge.net/
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC)_src_all.tar.bz2
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt sha256:49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_INSTALL_ARGS += DEST_HOME=/usr DEST_DIR=$(PROTO_DIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(SOURCE_DIR)/DOCS/copying.txt $(SOURCE_DIR)/DOCS/unRarLicense.txt: prep
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOCS/copying.txt
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# common targets
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User# When p7zip's install target is run, it creates all its directories mode 555,
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# so they're impossible to remove without adding the write bit first.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# build does this always
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt cd $(BUILD_DIR_32) && $(MAKE) -e test P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User cd $(BUILD_DIR_32) && $(MAKE) -e test_7z P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin