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#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
61N/A#
75N/A
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/
61N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
61N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/bzip
61N/A
3661N/ATPNO= 5547
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
61N/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
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
61N/ACOMPONENT_PRE_BUILD_ACTION= \
61N/A (cd $(@D) ; \
61N/A cp ../../oldapi.c . )
61N/A
61N/A# common targets
286N/Abuild: $(BUILD_32_and_64)
61N/A
286N/A# override the 64 bit install and have it make a directory for the lint lib
286N/A$(INSTALL_64):
286N/A $(MKDIR) $(PROTOUSRLIBDIR64)
286N/A touch $@
286N/A
286N/Ainstall: build $(INSTALL_32_and_64)
61N/A $(INSTALL) $(BUILD_DIR_32)/libbz2.so.1 $(PROTOUSRLIBDIR)
61N/A cd $(PROTOUSRLIBDIR); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
61N/A $(INSTALL) $(BUILD_DIR_64)/libbz2.so.1 $(PROTOUSRLIBDIR64)
61N/A cd $(PROTOUSRLIBDIR64); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
61N/A $(INSTALL) $(BUILD_DIR_64)/llib-lbz2.ln $(PROTOUSRLIBDIR64)
61N/A
61N/A# build does this always
181N/Atest: $(TEST_32_and_64)
61N/A
61N/A
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library