|
1 # |
|
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 # |
|
21 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../make-rules/shared-macros.mk |
|
24 |
|
25 COMPONENT_NAME = lcms2 |
|
26 COMPONENT_VERSION= 2.7 |
|
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 COMPONENT_PROJECT_URL= http://www.littlecms.com/ |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
|
31 sha256:4524234ae7de185e6b6da5d31d6875085b2198bc63b1211f7dde6e2d197d6a53 |
|
32 COMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/lcms/files/lcms/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
|
33 COMPONENT_BUGDB= utility/lcms |
|
34 |
|
35 TPNO= 25712 |
|
36 |
|
37 include $(WS_MAKE_RULES)/prep.mk |
|
38 include $(WS_MAKE_RULES)/configure.mk |
|
39 include $(WS_MAKE_RULES)/ips.mk |
|
40 include $(WS_MAKE_RULES)/lint-libraries.mk |
|
41 |
|
42 # In order to run the tests, we need to use cloney |
|
43 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
44 |
|
45 # Seems that we have no other way to designate that we want large file support. |
|
46 CFLAGS += $(CPP_LARGEFILES) |
|
47 |
|
48 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
49 |
|
50 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
51 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
|
52 |
|
53 CONFIGURE_OPTIONS += --includedir=/usr/include/lcms |
|
54 CONFIGURE_OPTIONS += --enable-shared |
|
55 CONFIGURE_OPTIONS += --disable-static |
|
56 CONFIGURE_OPTIONS += --with-jpeg |
|
57 CONFIGURE_OPTIONS += --with-tiff |
|
58 CONFIGURE_OPTIONS += --with-zlib |
|
59 CONFIGURE_OPTIONS += --with-pic |
|
60 |
|
61 COMPONENT_POST_INSTALL_ACTION += \ |
|
62 $(CP) $(SOURCE_DIR)/utils/linkicc/linkicc.1 $(PROTOUSRSHAREMAN1DIR) ; |
|
63 COMPONENT_POST_INSTALL_ACTION += \ |
|
64 $(CP) $(SOURCE_DIR)/utils/psicc/psicc.1 $(PROTOUSRSHAREMAN1DIR) ; |
|
65 COMPONENT_POST_INSTALL_ACTION += \ |
|
66 $(CP) $(SOURCE_DIR)/utils/transicc/transicc.1 $(PROTOUSRSHAREMAN1DIR) ; |
|
67 |
|
68 # Needed to get past trying to copy identical files because the top_srcdir |
|
69 # is not the same as the top_builddir. |
|
70 COMPONENT_TEST_ARGS = -k -i |
|
71 COMPONENT_TEST_DIR = $(@D)/testbed |
|
72 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
73 |
|
74 COMPONENT_TEST_TRANSFORMS += \ |
|
75 '-e "s|^.*test bed.*$$|XXX_REMOVE_XXX|g" ' \ |
|
76 '-e "s|^.*MPixel.*$$|XXX_REMOVE_XXX|g" ' \ |
|
77 '-e "s|^.*Single block hit.*$$|XXX_REMOVE_XXX|g" ' \ |
|
78 '-e "s|^.*$(CC).*$$|XXX_REMOVE_XXX|g" ' \ |
|
79 '-e "s|^.*source=.*libtool=no.*$$|XXX_REMOVE_XXX|g" ' \ |
|
80 '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \ |
|
81 '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ |
|
82 '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ |
|
83 '-e "/^XXX_REMOVE_XXX$$/d" ' |
|
84 |
|
85 ASLR_MODE = $(ASLR_ENABLE) |
|
86 |
|
87 configure: $(CONFIGURE_32_and_64) |
|
88 |
|
89 build: $(BUILD_32_and_64) |
|
90 |
|
91 install: $(INSTALL_32_and_64) |
|
92 |
|
93 test: $(TEST_32_and_64) |
|
94 |
|
95 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
96 |
|
97 REQUIRED_PACKAGES += image/library/libjpeg |
|
98 REQUIRED_PACKAGES += image/library/libtiff |
|
99 REQUIRED_PACKAGES += system/library |
|
100 REQUIRED_PACKAGES += system/library/math |