Makefile revision 5776
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, 2016, Oracle and/or its affiliates. All rights reserved.
128N/A#
1244N/ABUILD_BITS= 64_and_32
1226N/Ainclude ../../make-rules/shared-macros.mk
618N/A
1244N/ACOMPONENT_NAME = lcms
1244N/ACOMPONENT_VERSION= 1.19
128N/ACOMPONENT_PROJECT_URL= http://www.littlecms.com/
844N/ACOMPONENT_ARCHIVE_HASH= \
1226N/A sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
618N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1289N/A
128N/ATPNO= 9072
128N/A
128N/Ainclude $(WS_MAKE_RULES)/common.mk
128N/A
128N/APATCH_LEVEL = 0
128N/A
128N/A# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
128N/ACXX += $(studio_NORUNPATH)
128N/A
128N/A# It seems that we have no other way to designate that we want large file support
128N/ACFLAGS += $(CPP_LARGEFILES)
128N/ACXXFLAGS += $(CPP_LARGEFILES)
128N/A
128N/ACOMPONENT_TEST_TRANSFORMS += \
128N/A '-e "/libtool/d"' \
128N/A '-e "/-m32/d"' \
128N/A '-e "/-m64/d"' \
128N/A '-e "/little cms testbed/d"' \
128N/A '-e "s/[0-9]\{1,\} tics//g"' \
128N/A '-e "s/[0-9]\{1,\} tics\,//g"' \
128N/A '-e "s/\, [0-9]\{1,\}\.[0-9]\{1,\} sec\.//g"'
128N/A
128N/A# non-default C++ flags
128N/ACXXFLAGS += -features=extensions,nestedaccess,tmplrefstatic
128N/ACXXFLAGS += -template=geninlinefuncs
128N/A
128N/ACONFIGURE_ENV += PYTHON="$(PYTHON)"
128N/ACONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
181N/A
128N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/lcms
181N/ACONFIGURE_OPTIONS += --enable-shared
128N/ACONFIGURE_OPTIONS += --disable-static
181N/ACONFIGURE_OPTIONS += --with-jpeg
128N/ACONFIGURE_OPTIONS += --with-tiff
181N/ACONFIGURE_OPTIONS += --with-zlib
128N/ACONFIGURE_OPTIONS += --with-python
128N/ACONFIGURE_OPTIONS += --with-pic
128N/A
128N/A# in order to run the tests, we need to use cloney
128N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
COMPONENT_POST_CONFIGURE_ACTION = \
( cd $(@D); \
$(CP) -p $(SOURCE_DIR)/include/lcms.h ./include/ ; \
$(RM) -f $(SOURCE_DIR)/include/icc34.h ; \
$(CP) -p include/icc34.h $(SOURCE_DIR)/include/ )
LINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
COMPONENT_POST_INSTALL_ACTION += \
$(PYTHON.2.7.32) -m compileall $(PROTOUSRLIBDIR)/python2.7/vendor-packages
REQUIRED_PACKAGES += image/library/libjpeg
REQUIRED_PACKAGES += image/library/libtiff
REQUIRED_PACKAGES += library/lcms
REQUIRED_PACKAGES += runtime/python-27
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/math