Makefile revision 3823
4126704c4950bfd46d32ad54e3b106ac6d868a73sf#
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# CDDL HEADER START
4126704c4950bfd46d32ad54e3b106ac6d868a73sf#
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#
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# or http://www.opensolaris.org/os/licensing.
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# See the License for the specific language governing permissions
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# and limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen#
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]
d229f940abfb2490dee17979e9a5ff31b7012eb5rbowen#
3f08db06526d6901aa08c110b5bc7dde6bc39905nd# CDDL HEADER END
4126704c4950bfd46d32ad54e3b106ac6d868a73sf#
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4126704c4950bfd46d32ad54e3b106ac6d868a73sf#
3f08db06526d6901aa08c110b5bc7dde6bc39905ndinclude ../../make-rules/shared-macros.mk
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_NAME = lcms
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_VERSION= 1.19
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjungCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_PROJECT_URL= http://www.littlecms.com/
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_ARCHIVE_HASH= \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_BUGDB= utility/lcms
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfTPNO= 9072
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfinclude $(WS_MAKE_RULES)/prep.mk
4126704c4950bfd46d32ad54e3b106ac6d868a73sfinclude $(WS_MAKE_RULES)/configure.mk
4126704c4950bfd46d32ad54e3b106ac6d868a73sfinclude $(WS_MAKE_RULES)/ips.mk
4126704c4950bfd46d32ad54e3b106ac6d868a73sfinclude $(WS_MAKE_RULES)/lint-libraries.mk
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfPATCH_LEVEL = 0
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCXX += $(studio_NORUNPATH)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# It seems that we have no other way to designate that we want large file support
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCFLAGS += $(CPP_LARGEFILES)
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCXXFLAGS += $(CPP_LARGEFILES)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_TEST_TRANSFORMS += \
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"'
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# non-default C++ flags
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCXXFLAGS += -features=extensions,nestedaccess,tmplrefstatic
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCXXFLAGS += -template=geninlinefuncs
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_ENV += PYTHON="$(PYTHON)"
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --includedir=/usr/include/lcms
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --enable-shared
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --disable-static
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --with-jpeg
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --with-tiff
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --with-zlib
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --with-python
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCONFIGURE_OPTIONS += --with-pic
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfPKG_PROTO_DIRS += $(COMPONENT_SRC)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# in order to run the tests, we need to use cloney
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_POST_CONFIGURE_ACTION = \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf ( cd $(@D); \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf $(CP) -p $(SOURCE_DIR)/include/lcms.h ./include/ ; \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf $(RM) -f $(SOURCE_DIR)/include/icc34.h ; \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf $(CP) -p include/icc34.h $(SOURCE_DIR)/include/ )
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
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 $(GSED) -i -e 's/2[.]6/2.7/g' python2.7/Makefile)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# After we have built/installed lcms, rebuild/install the python
4126704c4950bfd46d32ad54e3b106ac6d868a73sf# support for python 2.7
4126704c4950bfd46d32ad54e3b106ac6d868a73sfCOMPONENT_POST_INSTALL_ACTION = \
4126704c4950bfd46d32ad54e3b106ac6d868a73sf (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfLINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfconfigure: $(CONFIGURE_32_and_64)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfbuild: $(BUILD_32_and_64)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfinstall: $(INSTALL_32_and_64)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf $(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
4126704c4950bfd46d32ad54e3b106ac6d868a73sf $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sftest: $(TEST_32_and_64)
4126704c4950bfd46d32ad54e3b106ac6d868a73sf
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += image/library/libjpeg
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += image/library/libtiff
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += library/lcms
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += runtime/python-26
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += runtime/python-27
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += system/library
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += system/library/c++-runtime
4126704c4950bfd46d32ad54e3b106ac6d868a73sfREQUIRED_PACKAGES += system/library/math
4126704c4950bfd46d32ad54e3b106ac6d868a73sf