Makefile revision 3996
906N/A#
906N/A# CDDL HEADER START
906N/A#
906N/A# The contents of this file are subject to the terms of the
906N/A# Common Development and Distribution License (the "License").
906N/A# You may not use this file except in compliance with the License.
906N/A#
906N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
906N/A# or http://www.opensolaris.org/os/licensing.
906N/A# See the License for the specific language governing permissions
906N/A# and limitations under the License.
906N/A#
906N/A# When distributing Covered Code, include this CDDL HEADER in each
906N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
906N/A# If applicable, add the following below this CDDL HEADER, with the
906N/A# fields enclosed by brackets "[]" replaced with your own identifying
906N/A# information: Portions Copyright [yyyy] [name of copyright owner]
906N/A#
906N/A# CDDL HEADER END
906N/A#
906N/A
5636N/A#
906N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/A
906N/Ainclude ../../make-rules/shared-macros.mk
906N/A
906N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
6292N/A
1799N/ACOMPONENT_NAME= p7zip
1799N/ACOMPONENT_VERSION= 9.20.1
6292N/ACOMPONENT_PROJECT_URL= http://p7zip.sourceforge.net/
1799N/ACOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
906N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)_src_all.tar.bz2
6292N/ACOMPONENT_ARCHIVE_HASH= \
2899N/A sha256:49557e7ffca08100f9fc687f4dfc5aea703ca207640c76d9dee7b66f03cb4782
6009N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/p7zip/p7zip/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
6009N/ACOMPONENT_BUGDB= utility/p7zip
6009N/A
6009N/ATPNO= 20368
6009N/A
6009N/Ainclude $(WS_MAKE_RULES)/prep.mk
6009N/Ainclude $(WS_MAKE_RULES)/justmake.mk
6009N/Ainclude $(WS_MAKE_RULES)/ips.mk
1389N/A
1389N/ACOMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
2410N/ACOMPONENT_BUILD_TARGETS = all3
7341N/ACOMPONENT_INSTALL_ARGS += DEST_HOME=/usr DEST_DIR=$(PROTO_DIR)
906N/A
3936N/A$(SOURCE_DIR)/DOCS/copying.txt $(SOURCE_DIR)/DOCS/unRarLicense.txt: prep
3470N/A
5795N/A$(BUILD_DIR)/%: $(SOURCE_DIR)/DOCS/%
5636N/A $(CP) $< $@
4744N/A
5680N/A$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOCS/copying.txt
906N/A $(CP) $(SOURCE_DIR)/DOCS/copying.txt $@
3703N/A
5680N/A# common targets
5983N/Abuild: $(BUILD_32)
5983N/A
6120N/AEXTRATARGETS = \
5680N/A $(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
5680N/A
5680N/Ainstall: build $(INSTALL_32) $(EXTRATARGETS)
906N/A
7243N/A# When p7zip's install target is run, it creates all its directories mode 555,
7243N/A# so they're impossible to remove without adding the write bit first.
7243N/ACOMPONENT_POST_INSTALL_ACTION += $(CHMOD) -R u+w $(PROTO_DIR)
7243N/A
906N/A# build does this always
906N/Atest: $(BUILD_32)
906N/A cd $(BUILD_DIR_32) && $(MAKE) -e test P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
3470N/A cd $(BUILD_DIR_32) && $(MAKE) -e test_7z P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
3470N/A cd $(BUILD_DIR_32) && $(MAKE) -e test_7zr P7ZIP_HOME_DIR=$(BUILD_DIR_32)/bin
3470N/A
3470N/A
3470N/A
3775N/AREQUIRED_PACKAGES += shell/ksh93
5983N/AREQUIRED_PACKAGES += system/library
5983N/AREQUIRED_PACKAGES += system/library/c++-runtime
5983N/AREQUIRED_PACKAGES += system/library/math
3775N/A