Makefile revision 3985
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# CDDL HEADER START
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# The contents of this file are subject to the terms of the
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Common Development and Distribution License (the "License").
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# You may not use this file except in compliance with the License.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# or http://www.opensolaris.org/os/licensing.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# See the License for the specific language governing permissions
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# and limitations under the License.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# When distributing Covered Code, include this CDDL HEADER in each
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# If applicable, add the following below this CDDL HEADER, with the
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# CDDL HEADER END
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync#
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncinclude ../../make-rules/shared-macros.mk
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_NAME = lcms
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_VERSION= 1.19
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_PROJECT_URL= http://www.littlecms.com/
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_ARCHIVE_HASH= \
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCOMPONENT_BUGDB= utility/lcms
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncTPNO= 9072
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncinclude ../../make-rules/prep.mk
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncinclude ../../make-rules/configure.mk
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncinclude ../../make-rules/ips.mk
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncinclude ../../make-rules/lint-libraries.mk
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncPATCH_LEVEL = 0
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCXX += $(studio_NORUNPATH)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# It seems that we have no other way to designate that we want large file support
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCFLAGS += $(CPP_LARGEFILES)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCXXFLAGS += $(CPP_LARGEFILES)
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync# non-default C++ flags
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCXXFLAGS += -features=extensions,nestedaccess,tmplrefstatic
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncCXXFLAGS += -template=geninlinefuncs
# When 2.6 goes away, we can remove the version line below, as well as the
# COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
PYTHON_VERSION=2.6
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_ENV += PYTHON="$(PYTHON)"
CONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
CONFIGURE_OPTIONS += --includedir=/usr/include/lcms
CONFIGURE_OPTIONS += --enable-shared
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-jpeg
CONFIGURE_OPTIONS += --with-tiff
CONFIGURE_OPTIONS += --with-zlib
CONFIGURE_OPTIONS += --with-python
CONFIGURE_OPTIONS += --with-pic
PKG_PROTO_DIRS += $(COMPONENT_SRC)
# in order to run the tests, we need to use cloney
COMPONENT_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/ )
# After we have configured, make a copy of the python bits so we
# can build separate python 2.7 support.
COMPONENT_POST_CONFIGURE_ACTION += ; (cd $(@D) ; cp -rp python python2.7 ; \
$(GSED) -i -e 's/2[.]6/2.7/g' python2.7/Makefile)
# After we have built/installed lcms, rebuild/install the python
# support for python 2.7
COMPONENT_POST_INSTALL_ACTION = \
(cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
LINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk