5232N/A#
5232N/A# CDDL HEADER START
5232N/A#
5232N/A# The contents of this file are subject to the terms of the
5232N/A# Common Development and Distribution License (the "License").
5232N/A# You may not use this file except in compliance with the License.
5232N/A#
5232N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5232N/A# or http://www.opensolaris.org/os/licensing.
5232N/A# See the License for the specific language governing permissions
5232N/A# and limitations under the License.
5232N/A#
5232N/A# When distributing Covered Code, include this CDDL HEADER in each
5232N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5232N/A# If applicable, add the following below this CDDL HEADER, with the
5232N/A# fields enclosed by brackets "[]" replaced with your own identifying
5232N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5232N/A#
5232N/A# CDDL HEADER END
5232N/A#
5680N/A
5232N/A#
5680N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64_and_32
5232N/Ainclude ../../make-rules/shared-macros.mk
5232N/A
5232N/ACOMPONENT_NAME = lcms2
5232N/ACOMPONENT_VERSION= 2.7
5232N/ACOMPONENT_PROJECT_URL= http://www.littlecms.com/
5232N/ACOMPONENT_ARCHIVE_HASH= \
5232N/A sha256:4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53
5232N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
5232N/ACOMPONENT_BUGDB= utility/lcms
5232N/A
5232N/ATPNO= 25712
5232N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5232N/A
5232N/A# In order to run the tests, we need to use cloney
5232N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
5232N/A
5232N/A# Seems that we have no other way to designate that we want large file support.
5232N/ACFLAGS += $(CPP_LARGEFILES)
5232N/A
6656N/A# Need to ensure lcms custom chunk memory allocator aligns properly for all
6656N/A# of our platforms - see _cmsALIGNMEM macro in src/lcms2_internal.h and
6656N/A# _MAX_ALIGNMENT definition in per-platform sections of <sys/isa_defs.h>
6656N/ACPPFLAGS += -DCMS_PTR_ALIGNMENT=_MAX_ALIGNMENT
6656N/A
5680N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/lcms
5232N/ACONFIGURE_OPTIONS += --enable-shared
5232N/ACONFIGURE_OPTIONS += --disable-static
5232N/ACONFIGURE_OPTIONS += --with-jpeg
5232N/ACONFIGURE_OPTIONS += --with-tiff
5232N/ACONFIGURE_OPTIONS += --with-zlib
5232N/ACONFIGURE_OPTIONS += --with-pic
5232N/A
5232N/ACOMPONENT_POST_INSTALL_ACTION += \
5232N/A $(CP) $(SOURCE_DIR)/utils/linkicc/linkicc.1 $(PROTOUSRSHAREMAN1DIR) ;
5232N/ACOMPONENT_POST_INSTALL_ACTION += \
5232N/A $(CP) $(SOURCE_DIR)/utils/psicc/psicc.1 $(PROTOUSRSHAREMAN1DIR) ;
5232N/ACOMPONENT_POST_INSTALL_ACTION += \
5232N/A $(CP) $(SOURCE_DIR)/utils/transicc/transicc.1 $(PROTOUSRSHAREMAN1DIR) ;
5232N/A
5232N/A# Needed to get past trying to copy identical files because the top_srcdir
5232N/A# is not the same as the top_builddir.
5232N/ACOMPONENT_TEST_ARGS = -k -i
5232N/ACOMPONENT_TEST_DIR = $(@D)/testbed
5232N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5232N/A
5232N/ACOMPONENT_TEST_TRANSFORMS += \
5232N/A '-e "s|^.*test bed.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^.*MPixel.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^.*Single block hit.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^.*$(CC).*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^.*source=.*libtool=no.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
5232N/A '-e "/^XXX_REMOVE_XXX$$/d" '
5232N/A
5232N/AREQUIRED_PACKAGES += image/library/libjpeg
5232N/AREQUIRED_PACKAGES += image/library/libtiff
5232N/AREQUIRED_PACKAGES += system/library/math