|
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 |
|
22 # |
|
23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 # Cairo uses atomic intrinsics not supported in Studio 12.4 (ER 19201298) |
|
27 COMPILER = gcc |
|
28 BUILD_BITS = 64_and_32 |
|
29 include ../../../make-rules/shared-macros.mk |
|
30 |
|
31 COMPONENT_NAME= cairo |
|
32 COMPONENT_VERSION= 1.14.2 |
|
33 COMPONENT_PROJECT_URL= http://cairographics.org |
|
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
|
35 COMPONENT_ARCHIVE_HASH= \ |
|
36 sha256:c919d999ddb1bbbecd4bbe65299ca2abd2079c7e13d224577895afa7005ecceb |
|
37 COMPONENT_ARCHIVE_URL= http://cairographics.org/releases/$(COMPONENT_ARCHIVE) |
|
38 COMPONENT_BUGDB= library/cairo |
|
39 |
|
40 TPNO= 24139 |
|
41 |
|
42 # Cairo tests currently require an X display & require more work to run properly |
|
43 TEST_TARGET= $(NO_TESTS) |
|
44 include $(WS_MAKE_RULES)/common.mk |
|
45 |
|
46 ASLR_MODE = $(ASLR_ENABLE) |
|
47 |
|
48 LDFLAGS += $(CC_BITS) |
|
49 |
|
50 # Needed for "gmake test" to work successfully. |
|
51 unexport SHELLOPTS |
|
52 |
|
53 # Needs update to work with latest cogl; optional. |
|
54 CONFIGURE_OPTIONS += --disable-cogl |
|
55 CONFIGURE_OPTIONS += --disable-static |
|
56 # Requires bfd (a newer version?); optional. |
|
57 CONFIGURE_OPTIONS += --disable-symbol-lookup |
|
58 CONFIGURE_OPTIONS += --enable-atomic |
|
59 CONFIGURE_OPTIONS += --enable-ft |
|
60 CONFIGURE_OPTIONS += --enable-gl |
|
61 CONFIGURE_OPTIONS += --enable-glx |
|
62 CONFIGURE_OPTIONS += --enable-gobject |
|
63 CONFIGURE_OPTIONS += --enable-gtk-doc |
|
64 CONFIGURE_OPTIONS += --enable-interpreter |
|
65 CONFIGURE_OPTIONS += --enable-largefile |
|
66 CONFIGURE_OPTIONS += --enable-pdf |
|
67 CONFIGURE_OPTIONS += --enable-png |
|
68 CONFIGURE_OPTIONS += --enable-ps |
|
69 CONFIGURE_OPTIONS += --enable-shared |
|
70 CONFIGURE_OPTIONS += --enable-svg |
|
71 CONFIGURE_OPTIONS += --enable-tee |
|
72 CONFIGURE_OPTIONS += --enable-xcb |
|
73 CONFIGURE_OPTIONS += --enable-xcb-shm |
|
74 CONFIGURE_OPTIONS += --enable-xlib |
|
75 CONFIGURE_OPTIONS += --enable-xlib-xrender |
|
76 CONFIGURE_OPTIONS += --with-pic |
|
77 CONFIGURE_OPTIONS += --with-x |
|
78 |
|
79 # Required due to patches. |
|
80 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv); |
|
81 |
|
82 REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc |
|
83 REQUIRED_PACKAGES += image/library/libpng |
|
84 REQUIRED_PACKAGES += library/glib2 |
|
85 # Requires pixman >= 0.30 |
|
86 REQUIRED_PACKAGES += library/graphics/pixman |
|
87 REQUIRED_PACKAGES += library/libspectre |
|
88 REQUIRED_PACKAGES += library/zlib |
|
89 REQUIRED_PACKAGES += service/opengl/ogl-select |
|
90 REQUIRED_PACKAGES += shell/ksh93 |
|
91 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
|
92 REQUIRED_PACKAGES += system/library/fontconfig |
|
93 REQUIRED_PACKAGES += system/library/freetype-2 |
|
94 REQUIRED_PACKAGES += system/library/math |
|
95 REQUIRED_PACKAGES += x11/library/libx11 |
|
96 REQUIRED_PACKAGES += x11/library/libxcb |
|
97 REQUIRED_PACKAGES += x11/library/libxext |
|
98 REQUIRED_PACKAGES += x11/library/libxrender |
|
99 REQUIRED_PACKAGES += x11/library/mesa |