Aurelien Larcher
2018-05-22 96984659a921be0d38c0212b02eabaa84808206a
commit | author | age
7e5460 1 #
ST 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
fa74c0 21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7e5460 22 #
f870df 23 include ../../../make-rules/shared-macros.mk
7e5460 24
ST 25 COMPONENT_NAME =        lcms
26 COMPONENT_VERSION=      1.19
0de239 27 COMPONENT_REVISION=    2
7e5460 28 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ST 29 COMPONENT_PROJECT_URL=  http://www.littlecms.com/
30 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
35e110 31 COMPONENT_ARCHIVE_HASH= \
MS 32     sha256:80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9
7e5460 33 COMPONENT_ARCHIVE_URL=  http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
3b89c9 34 COMPONENT_BUGDB=    utility/lcms
7e5460 35
0de239 36 CONFIGURE_FIX_LIBTOOL_RPATH = no
AP 37
f870df 38 include $(WS_MAKE_RULES)/prep.mk
AP 39 include $(WS_MAKE_RULES)/configure.mk
40 include $(WS_MAKE_RULES)/ips.mk
7e5460 41
0de239 42 COMPONENT_PREP_ACTION = (cd $(@D) && libtoolize -f && autoreconf -fi)
AP 43
44 # build with the distribution preferred libjpeg implementation
45 CFLAGS   += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
46 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
47 LDFLAGS  += $(JPEG_LDFLAGS)
7e5460 48
3cec7d 49 # It seems that we have no other way to designate that we want large file support
NJ 50 CFLAGS += $(CPP_LARGEFILES)
51 CXXFLAGS += $(CPP_LARGEFILES)
0de239 52
AP 53 # Find issues with undefined symbols in build time
54 LD_OPTIONS += $(LD_Z_DEFS)
4158c0 55
7e5460 56 CONFIGURE_ENV += PYTHON="$(PYTHON)"
3cec7d 57 CONFIGURE_ENV += PYTHONMODULEDIR="$(PYTHON_VENDOR_PACKAGES)"
7e5460 58
ST 59 CONFIGURE_OPTIONS  +=           --includedir=/usr/include/lcms
60 CONFIGURE_OPTIONS  +=           --enable-shared
61 CONFIGURE_OPTIONS  +=           --disable-static
62 CONFIGURE_OPTIONS  +=           --with-jpeg
63 CONFIGURE_OPTIONS  +=           --with-tiff
64 CONFIGURE_OPTIONS  +=           --with-zlib
65 CONFIGURE_OPTIONS  +=           --with-python
66 CONFIGURE_OPTIONS  +=           --with-pic
0de239 67
AP 68 CONFIGURE_OPTIONS += --disable-rpath
69 CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
7e5460 70
ST 71 PKG_PROTO_DIRS +=    $(COMPONENT_SRC)
72
3cec7d 73 # in order to run the tests, we need to use cloney
NJ 74 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
75
7e5460 76 COMPONENT_POST_CONFIGURE_ACTION = \
ST 77     ( cd $(@D); \
78     $(CP) -p $(SOURCE_DIR)/include/lcms.h ./include/ ; \
79     $(RM) -f $(SOURCE_DIR)/include/icc34.h ; \
80     $(CP) -p include/icc34.h $(SOURCE_DIR)/include/ )
81
4158c0 82 LINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
7e5460 83
ST 84 build: $(BUILD_32_and_64)
85
86 install: $(INSTALL_32_and_64)
fa74c0 87     $(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
NJ 88
7e5460 89
4158c0 90 test: $(TEST_32_and_64)
0de239 91
c4c90d 92 # Auto-generated dependencies
0de239 93 REQUIRED_PACKAGES += image/library/libjpeg8-turbo
AP 94 REQUIRED_PACKAGES += image/library/libtiff
95 REQUIRED_PACKAGES += library/lcms
96 REQUIRED_PACKAGES += runtime/python-27
97 REQUIRED_PACKAGES += system/library
c4c90d 98 REQUIRED_PACKAGES += system/library/g++-6-runtime
969846 99 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
0de239 100 REQUIRED_PACKAGES += system/library/math