Makefile revision 844
128N/A#
128N/A# CDDL HEADER START
128N/A#
128N/A# The contents of this file are subject to the terms of the
128N/A# Common Development and Distribution License (the "License").
128N/A# You may not use this file except in compliance with the License.
128N/A#
128N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
128N/A# or http://www.opensolaris.org/os/licensing.
128N/A# See the License for the specific language governing permissions
128N/A# and limitations under the License.
128N/A#
128N/A# When distributing Covered Code, include this CDDL HEADER in each
128N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
128N/A# If applicable, add the following below this CDDL HEADER, with the
128N/A# fields enclosed by brackets "[]" replaced with your own identifying
128N/A# information: Portions Copyright [yyyy] [name of copyright owner]
128N/A#
128N/A# CDDL HEADER END
128N/A#
844N/A
128N/A#
128N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
128N/A#
1273N/A
1243N/Ainclude ../../make-rules/shared-macros.mk
618N/A
1273N/ACOMPONENT_NAME= zlib
1273N/ACOMPONENT_VERSION= 1.2.3
128N/ACOMPONENT_PROJECT_URL= http://www.zlib.net/
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1243N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
618N/ACOMPONENT_ARCHIVE_HASH= \
1273N/A sha256:1795c7d067a43174113fdf03447532f373e1c6c57c08d61d9e4e9be5e244b05e
128N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/project/libpng/zlib/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
128N/A
128N/Ainclude ../../make-rules/prep.mk
128N/Ainclude ../../make-rules/configure.mk
128N/Ainclude ../../make-rules/ips.mk
128N/Ainclude ../../make-rules/lint-libraries.mk
128N/A
128N/A# Zlib won't build without cloning. We need also to get rid of default
128N/A# Makefile and get our own version of zlib.h to avoid interactions
128N/A# between 32 and 64 bit builds.
128N/ACOMPONENT_PRE_CONFIGURE_ACTION = ( \
128N/A $(CLONEY) $(SOURCE_DIR) $(@D); \
128N/A $(RM) $(@D)/Makefile $(@D)/zconf.h; \
128N/A $(CP) $(SOURCE_DIR)/zconf.h $(@D) )
128N/A
128N/ACFLAGS += $(CC_PIC)
128N/A
128N/A# We need to reset configure options here because zlib is confused with
128N/A# CC and CFLAGS definitions as configure parameters.
128N/ACONFIGURE_OPTIONS = --shared
128N/ACONFIGURE_OPTIONS += --prefix=/usr
128N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
128N/ACONFIGURE_OPTIONS.64 += --libdir=/usr/lib/$(MACH64)
128N/A
128N/ACONFIGURE_ENV += CC="$(CC)"
128N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
128N/ACONFIGURE_ENV += LDSHARED="$(CC) $(CFLAGS) -G"
128N/A
181N/A# This LDSHARED definitions is forced to get all required options plus
128N/A# mapfile for result linking. While the one used with configure is just
181N/A# to allow Zlib detect capability of creating shared libraries.
128N/ACOMPONENT_BUILD_ARGS = LDSHARED="$(CC) $(CFLAGS) -G -h libz.so.1 $(LD_OPTIONS_SO) -M ../../mapfile -L."
181N/A
128N/ACOMPONENT_TEST_TARGETS = test
181N/A
128N/Abuild: $(BUILD_32_and_64)
128N/A
128N/Ainstall: $(INSTALL_32_and_64)
128N/A
128N/Atest: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk