Makefile revision 421
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive#
013e1ddd21f2142a369c9a9a0eeb6c6a0bc3fcf3patrikj# CDDL HEADER START
e942c741056732f50da2074b36fe59805d370650slive#
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd# The contents of this file are subject to the terms of the
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# Common Development and Distribution License (the "License").
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# You may not use this file except in compliance with the License.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding#
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# or http://www.opensolaris.org/os/licensing.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# See the License for the specific language governing permissions
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# and limitations under the License.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# When distributing Covered Code, include this CDDL HEADER in each
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# If applicable, add the following below this CDDL HEADER, with the
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# fields enclosed by brackets "[]" replaced with your own identifying
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# information: Portions Copyright [yyyy] [name of copyright owner]
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# CDDL HEADER END
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
7db9f691a00ead175b03335457ca296a33ddf31bnd# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive#
5f18f92c1354462df6dc2ba38277a953fa700b13gryzor
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveinclude ../../make-rules/shared-macros.mk
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslivePATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_NAME= p7zip
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_VERSION= 9.20.1
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_ARCHIVE= $(COMPONENT_SRC)_src_all.tar.bz2
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_ARCHIVE_HASH= sha1:1cd567e043ee054bf08244ce15f32cb3258306b7
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirininclude ../../make-rules/prep.mk
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirininclude ../../make-rules/justmake.mk
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirininclude ../../make-rules/ips.mk
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirinCOMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirinCOMPONENT_BUILD_TARGETS = all3
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirinCOMPONENT_INSTALL_ARGS += DEST_HOME=/usr DEST_DIR=$(PROTO_DIR)
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin$(SOURCE_DIR)/DOCS/copying.txt $(SOURCE_DIR)/DOCS/unRarLicense.txt: prep
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin$(BUILD_DIR)/%: $(SOURCE_DIR)/DOCS/%
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin $(CP) $< $@
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOCS/copying.txt gpl_disclaimer
f6445f3ad1c82f9398dc8edd77093cd3e20b806cnoirin $(CP) gpl_disclaimer $@
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive echo "================================================================================" >> $@
f0a393c5c2d7de58f447855369ad2fbfa254e544rbowen cat $(SOURCE_DIR)/DOCS/copying.txt >> $@
f0a393c5c2d7de58f447855369ad2fbfa254e544rbowen
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive# common targets
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslivebuild: $(BUILD_32)
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveEXTRATARGETS = \
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive $(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
013e1ddd21f2142a369c9a9a0eeb6c6a0bc3fcf3patrikj
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveinstall: build $(INSTALL_32) $(EXTRATARGETS)
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive# When p7zip's install target is run, it creates all its directories mode 555,
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive# so they're impossible to remove without adding the write bit first.
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveCOMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR)
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
5f18f92c1354462df6dc2ba38277a953fa700b13gryzor# build does this always
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslivetest: $(BUILD_32)
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive cd $(BUILD_DIR_32) && $(MAKE) -e test P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive cd $(BUILD_DIR_32) && $(MAKE) -e test_7z P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive cd $(BUILD_DIR_32) && $(MAKE) -e test_7zr P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfsliveinclude ../../make-rules/depend.mk
1c47b0c72c991a6f0ad172c74df0936fe13d6fbfslive