Makefile revision 5661
5620N/A#
5620N/A# CDDL HEADER START
5620N/A#
5620N/A# The contents of this file are subject to the terms of the
5620N/A# Common Development and Distribution License (the "License").
5620N/A# You may not use this file except in compliance with the License.
5620N/A#
5620N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5620N/A# or http://www.opensolaris.org/os/licensing.
5620N/A# See the License for the specific language governing permissions
5620N/A# and limitations under the License.
5620N/A#
5620N/A# When distributing Covered Code, include this CDDL HEADER in each
5620N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5620N/A# If applicable, add the following below this CDDL HEADER, with the
5620N/A# fields enclosed by brackets "[]" replaced with your own identifying
5620N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5620N/A#
5620N/A# CDDL HEADER END
5620N/A#
5620N/A
5620N/A#
5620N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5620N/A#
5620N/A
5620N/ACOMPILER = gcc
5620N/A
5620N/Ainclude ../../../make-rules/shared-macros.mk
5620N/A
5620N/ACOMPONENT_NAME= libpng
5661N/ACOMPONENT_VERSION= 1.4.19
5620N/ACOMPONENT_PROJECT_URL= http://www.libpng.org/
5620N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5620N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5620N/ACOMPONENT_ARCHIVE_HASH= \
5661N/A sha256:b73b7f0aec1f4d89fb6a587d4174dede493af8a3c04bb6eb87b0d10a8623bd7f
5661N/ACOMPONENT_ARCHIVE_URL= https://sourceforge.net/projects/libpng/files/libpng14/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
5620N/ACOMPONENT_BUGDB= library/libpng
5620N/A
5620N/ACOMPONENT_VERSION_1 = 1.2.49
5620N/ACOMPONENT_SRC_1 = $(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
5620N/ACOMPONENT_ARCHIVE_1 = $(COMPONENT_SRC_1).tar.gz
5620N/ACOMPONENT_ARCHIVE_HASH_1 = \
5620N/A sha256:f906778030f5dc7930844b9d67ddf4f2809f7407784c4eba7e8d6e0db9f61671
5620N/ACOMPONENT_ARCHIVE_URL_1= https://sourceforge.net/projects/libpng/files/libpng12/older-releases/1.2.49/$(COMPONENT_ARCHIVE_1)
5620N/ASOURCE_DIR_1 = $(COMPONENT_DIR)/$(COMPONENT_SRC_1)
5620N/A
5620N/A
5620N/ACOMPONENT_VERSION_2 = 1.0.59
5620N/ACOMPONENT_SRC_2 = $(COMPONENT_NAME)-$(COMPONENT_VERSION_2)
5620N/ACOMPONENT_ARCHIVE_2 = $(COMPONENT_SRC_2).tar.gz
5620N/ACOMPONENT_ARCHIVE_HASH_2 = \
5620N/A sha256:33e0d3ac3b7c48450acd298e198d243e0d5400e2436d6eec67f2a283cd82e7c4
5620N/ACOMPONENT_ARCHIVE_URL_2= https://sourceforge.net/projects/libpng/files/libpng10/older-releases/1.0.59/$(COMPONENT_ARCHIVE_2)
5620N/ASOURCE_DIR_2 = $(COMPONENT_DIR)/$(COMPONENT_SRC_2)
5620N/A
5661N/ATPNO= 27311
5620N/A
5620N/Ainclude $(WS_MAKE_RULES)/prep.mk
5620N/Ainclude $(WS_MAKE_RULES)/configure.mk
5620N/Ainclude $(WS_MAKE_RULES)/ips.mk
5620N/A
5620N/ALDFLAGS += $(CC_BITS)
5620N/A
5620N/ACONFIGURE_OPTIONS += --with-esd-prefix=$(PROTOUSRDIR)
5620N/ACONFIGURE_OPTIONS += LDFLAGS=$(LDFLAGS)
5620N/A
5620N/A# ------------------------ libpng10 ----------------------------
5620N/A
5620N/A# Macros to configure, build, and install the libpng10 files.
5620N/ABUILD_PNG10_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_2)-$(MACH32)
5620N/ABUILD_PNG10_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_2)-$(MACH64)
5620N/A
5620N/A$(BUILD_PNG10_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_2)/configure
5620N/A$(BUILD_PNG10_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_2)/configure
5620N/A$(BUILD_PNG10_DIR_32)/.configured: BITS=32
5620N/A$(BUILD_PNG10_DIR_64)/.configured: BITS=64
5620N/A
5620N/ABUILD_32 += $(BUILD_PNG10_DIR_32)/.built
5620N/ABUILD_64 += $(BUILD_PNG10_DIR_64)/.built
5620N/A
5620N/AINSTALL_32 += $(BUILD_PNG10_DIR_32)/.installed
5620N/AINSTALL_64 += $(BUILD_PNG10_DIR_64)/.installed
5620N/A
5620N/A$(BUILD_DIR_32)/.installed: $(BUILD_PNG10_DIR_32)/.installed
5620N/A$(BUILD_DIR_64)/.installed: $(BUILD_PNG10_DIR_64)/.installed
5620N/A
5620N/A# ------------------------ libpng12 ----------------------------
5620N/A
5620N/A# Macros to configure, build, and install the libpng12 files.
5620N/ABUILD_PNG12_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
5620N/ABUILD_PNG12_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
5620N/A
5620N/A$(BUILD_PNG12_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
5620N/A$(BUILD_PNG12_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
5620N/A$(BUILD_PNG12_DIR_32)/.configured: BITS=32
5620N/A$(BUILD_PNG12_DIR_64)/.configured: BITS=64
5620N/A
5620N/ABUILD_32 += $(BUILD_PNG12_DIR_32)/.built
5620N/ABUILD_64 += $(BUILD_PNG12_DIR_64)/.built
5620N/A
5620N/AINSTALL_32 += $(BUILD_PNG12_DIR_32)/.installed
5620N/AINSTALL_64 += $(BUILD_PNG12_DIR_64)/.installed
5620N/A
5620N/A$(BUILD_DIR_32)/.installed: $(BUILD_PNG12_DIR_32)/.installed
5620N/A$(BUILD_DIR_64)/.installed: $(BUILD_PNG12_DIR_64)/.installed
5620N/A
5620N/A# -----------------------------------------------------------------
5620N/A
5620N/ACLEAN_PATHS += $(SOURCE_DIR_1)
5620N/ACLEAN_PATHS += $(SOURCE_DIR_2)
5620N/A
5620N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5620N/ACOMPONENT_TEST_ARGS = -k -i
5620N/ACOMPONENT_TEST_TRANSFORMS += \
5620N/A '-n ' \
5620N/A '-e "/Pass /p" ' \
5620N/A '-e "/TOTAL:/p" ' \
5620N/A '-e "/Filter/p" ' \
5620N/A '-e "/PASS/p" ' \
5620N/A '-e "/ERROR:/p" '
5620N/A
5661N/A# for pngtest to run
5661N/ACOMPONENT_TEST_ENV += libtool_install_magic='%%%MAGIC variable%%%'
5661N/ACOMPONENT_TEST_ENV += libtool_execute_magic='%%%MAGIC variable%%%'
5620N/A
5620N/AASLR_MODE = $(ASLR_ENABLE)
5620N/A
5620N/Aconfigure: $(CONFIGURE_32_and_64)
5620N/A
5620N/Abuild: $(BUILD_32_and_64)
5620N/A
5620N/Ainstall: $(INSTALL_32_and_64)
5620N/A
5620N/Atest: $(TEST_32_and_64)
5620N/A
5620N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
5620N/A
5620N/AREQUIRED_PACKAGES += library/zlib
5620N/AREQUIRED_PACKAGES += shell/ksh93
5620N/AREQUIRED_PACKAGES += system/library
5620N/AREQUIRED_PACKAGES += system/library/math