Makefile revision 6120
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/ABUILD_BITS= 64
0N/A# When building with Studio, p7zip has many warnings about extra semicolons,
0N/A# and at least one hard error due to an extra semicolon. It also suffers from
0N/A# the pragma pack push/pop problem (15358176).
0N/ACOMPILER= gcc
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
0N/APATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR)
0N/Aelse
0N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
0N/Aendif
0N/A
0N/ACOMPONENT_NAME= p7zip
0N/ACOMPONENT_VERSION= 15.14.1
0N/ACOMPONENT_PROJECT_URL= http://p7zip.sourceforge.net/
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)_src_all.tar.bz2
COMPONENT_ARCHIVE_HASH= \
sha256:699db4da3621904113e040703220abb1148dfef477b55305e2f14a4f1f8f25d4
COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/p7zip/$(COMPONENT_ARCHIVE)
TPNO= 27905
BUILD_STYLE= justmake
INSTALL_TARGET=
include $(WS_MAKE_RULES)/common.mk
COMPONENT_TEST_DIR = $(@D)
COMPONENT_TEST_ENV = P7ZIP_HOME_DIR=$(BUILD_DIR)/$(MACH$(BITS))/bin
COMPONENT_TEST_TARGETS = test test_7z test_7zr
COMPONENT_PREP_ACTION = (cd $(@D); cp ../makefile.solaris makefile.machine)
COMPONENT_BUILD_TARGETS = all3
COMPONENT_INSTALL_ARGS += DEST_HOME=$(USRDIR) DEST_DIR=$(PROTO_DIR)
$(SOURCE_DIR)/DOC/copying.txt $(SOURCE_DIR)/DOC/unRarLicense.txt: prep
$(BUILD_DIR)/%: $(SOURCE_DIR)/DOC/%
$(CP) $< $@
$(BUILD_DIR)/copying.txt: $(SOURCE_DIR)/DOC/copying.txt
$(CP) $(SOURCE_DIR)/DOC/copying.txt $@
# common targets
EXTRATARGETS = \
$(BUILD_DIR)/copying.txt $(BUILD_DIR)/unRarLicense.txt
install: build $(INSTALL_64) $(EXTRATARGETS)
# 7zr.1 is in DOS format for some reason, and geqn can't handle it.
COMPONENT_POST_INSTALL_ACTION += $(GSED) -i -e 's/\r//' $(PROTO_DIR)/usr/man/man1/7zr.1
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/math