Makefile revision 3823
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# CDDL HEADER START
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# The contents of this file are subject to the terms of the
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# Common Development and Distribution License (the "License").
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# You may not use this file except in compliance with the License.
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# When distributing Covered Code, include this CDDL HEADER in each
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# If applicable, add the following below this CDDL HEADER, with the
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# fields enclosed by brackets "[]" replaced with your own identifying
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# information: Portions Copyright [yyyy] [name of copyright owner]
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# CDDL HEADER END
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4126704c4950bfd46d32ad54e3b106ac6d868a73sf sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# It seems that we have no other way to designate that we want large file support
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "/libtool/d"' \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "/-m32/d"' \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "/-m64/d"' \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "/little cms testbed/d"' \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "s/[0-9]\{1,\} tics//g"' \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "s/[0-9]\{1,\} tics\,//g"' \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf '-e "s/\, [0-9]\{1,\}\.[0-9]\{1,\} sec\.//g"'
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# non-default C++ flags
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCXXFLAGS += -features=extensions,nestedaccess,tmplrefstatic
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# in order to run the tests, we need to use cloney
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# After we have configured, make a copy of the python bits so we
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# can build separate python 2.7 support.
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_POST_CONFIGURE_ACTION += ; (cd $(@D) ; cp -rp python python2.7 ; \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# After we have built/installed lcms, rebuild/install the python
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# support for python 2.7
4126704c4950bfd46d32ad54e3b106ac6d868a73sf (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages