61N/A#
61N/A# CDDL HEADER START
61N/A#
61N/A# The contents of this file are subject to the terms of the
61N/A# Common Development and Distribution License (the "License").
61N/A# You may not use this file except in compliance with the License.
61N/A#
61N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
61N/A# or http://www.opensolaris.org/os/licensing.
61N/A# See the License for the specific language governing permissions
61N/A# and limitations under the License.
61N/A#
61N/A# When distributing Covered Code, include this CDDL HEADER in each
61N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
61N/A# If applicable, add the following below this CDDL HEADER, with the
61N/A# fields enclosed by brackets "[]" replaced with your own identifying
61N/A# information: Portions Copyright [yyyy] [name of copyright owner]
61N/A#
61N/A# CDDL HEADER END
61N/A#
75N/A
75N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
61N/A#
5680N/ABUILD_BITS= 64_and_32
61N/Ainclude ../../make-rules/shared-macros.mk
61N/A
61N/ACOMPONENT_NAME= bzip2
61N/ACOMPONENT_VERSION= 1.0.6
618N/ACOMPONENT_PROJECT_URL= http://www.bzip.org/
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/bzip
61N/A
2899N/ATPNO= 5547
2899N/A
5680N/ABUILD_STYLE= justmake
5680N/A# build does this always
5680N/ASYSTEM_TEST_TARGET= $(SYSTEM_TEST_32_and_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
1392N/A
181N/ALINT_FLAGS += -I.
61N/A
99N/A# we need to enable large file support and build PIC for our shared libraries
322N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
61N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
61N/ACOMPONENT_BUILD_ENV += CC="$(CC)"
151N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
151N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
151N/ACOMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
61N/A
5680N/ACOMPONENT_PRE_BUILD_ACTION += \
61N/A (cd $(@D) ; \
61N/A cp ../../oldapi.c . )
61N/A
3993N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4339N/ACOMPONENT_TEST_TARGETS = test
4339N/Asystem-test: \
4339N/A COMPONENT_TEST_MASTER = \
4339N/A $(COMPONENT_TEST_RESULTS_DIR)/system-results-all.master
4339N/ACOMPONENT_SYSTEM_TEST_TARGETS= system-test
4339N/ACOMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)
4339N/A
4339N/ACOMPONENT_TEST_TRANSFORMS += \
4339N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
4339N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
4339N/A '-e "/^XXX_CC_XXX$$/d" '
3993N/A
61N/A# common targets
5680N/ACOMPONENT_POST_INSTALL_ACTION.32 += \
5680N/A ($(INSTALL) $(BUILD_DIR_32)/libbz2.so.1 $(PROTOUSRLIBDIR); \
5680N/A cd $(PROTOUSRLIBDIR); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so);
286N/A
5680N/ACOMPONENT_PRE_INSTALL_ACTION.64 += $(MKDIR) $(PROTOUSRLIBDIR64);
61N/A
5680N/ACOMPONENT_POST_INSTALL_ACTION.64 += \
5680N/A ($(INSTALL) $(BUILD_DIR_64)/libbz2.so.1 $(PROTOUSRLIBDIR64); \
5680N/A cd $(PROTOUSRLIBDIR64); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so;);
61N/A
3817N/AREQUIRED_PACKAGES += shell/ksh93