5885N/A#
5885N/A# CDDL HEADER START
5885N/A#
5885N/A# The contents of this file are subject to the terms of the
5885N/A# Common Development and Distribution License (the "License").
5885N/A# You may not use this file except in compliance with the License.
5885N/A#
5885N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5885N/A# or http://www.opensolaris.org/os/licensing.
5885N/A# See the License for the specific language governing permissions
5885N/A# and limitations under the License.
5885N/A#
5885N/A# When distributing Covered Code, include this CDDL HEADER in each
5885N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5885N/A# If applicable, add the following below this CDDL HEADER, with the
5885N/A# fields enclosed by brackets "[]" replaced with your own identifying
5885N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5885N/A#
5885N/A# CDDL HEADER END
5885N/A#
5885N/A
5885N/A#
5885N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5885N/A#
5885N/A
5885N/A# Cairo uses atomic intrinsics not supported in Studio 12.4 (ER 19201298)
5885N/ACOMPILER = gcc
5885N/ABUILD_BITS = 64_and_32
5885N/Ainclude ../../../make-rules/shared-macros.mk
5885N/A
5885N/ACOMPONENT_NAME= cairo
5885N/ACOMPONENT_VERSION= 1.14.2
5885N/ACOMPONENT_PROJECT_URL= http://cairographics.org
5885N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
5885N/ACOMPONENT_ARCHIVE_HASH= \
5885N/A sha256:c919d999ddb1bbbecd4bbe65299ca2abd2079c7e13d224577895afa7005ecceb
5885N/ACOMPONENT_ARCHIVE_URL= http://cairographics.org/releases/$(COMPONENT_ARCHIVE)
5885N/ACOMPONENT_BUGDB= library/cairo
5885N/A
5885N/ATPNO= 24139
5885N/A
6000N/A# Requires newer version of pixman from X, available in S12 but not 11.3,
6000N/A# so do not publish.
6000N/Aifeq ($(BUILD_TYPE), evaluation)
6000N/ABUILD_32_and_64=
6000N/AINSTALL_32_and_64=
6000N/APUBLISH_STAMP=
6000N/Aendif
6000N/A
5885N/A# Cairo tests currently require an X display & require more work to run properly
5885N/ATEST_TARGET= $(NO_TESTS)
5885N/Ainclude $(WS_MAKE_RULES)/common.mk
5885N/A
5885N/ALDFLAGS += $(CC_BITS)
5885N/A
5885N/A# Needed for "gmake test" to work successfully.
5885N/Aunexport SHELLOPTS
5885N/A
5885N/A# Needs update to work with latest cogl; optional.
5885N/ACONFIGURE_OPTIONS += --disable-cogl
5885N/ACONFIGURE_OPTIONS += --disable-static
5885N/A# Requires bfd (a newer version?); optional.
5885N/ACONFIGURE_OPTIONS += --disable-symbol-lookup
5885N/ACONFIGURE_OPTIONS += --enable-atomic
5885N/ACONFIGURE_OPTIONS += --enable-ft
5885N/ACONFIGURE_OPTIONS += --enable-gl
5885N/ACONFIGURE_OPTIONS += --enable-glx
5885N/ACONFIGURE_OPTIONS += --enable-gobject
5885N/ACONFIGURE_OPTIONS += --enable-gtk-doc
5885N/ACONFIGURE_OPTIONS += --enable-interpreter
5885N/ACONFIGURE_OPTIONS += --enable-largefile
5885N/ACONFIGURE_OPTIONS += --enable-pdf
5885N/ACONFIGURE_OPTIONS += --enable-png
5885N/ACONFIGURE_OPTIONS += --enable-ps
5885N/ACONFIGURE_OPTIONS += --enable-shared
5885N/ACONFIGURE_OPTIONS += --enable-svg
5885N/ACONFIGURE_OPTIONS += --enable-tee
5885N/ACONFIGURE_OPTIONS += --enable-xcb
5885N/ACONFIGURE_OPTIONS += --enable-xcb-shm
5885N/ACONFIGURE_OPTIONS += --enable-xlib
5885N/ACONFIGURE_OPTIONS += --enable-xlib-xrender
5885N/ACONFIGURE_OPTIONS += --with-pic
5885N/ACONFIGURE_OPTIONS += --with-x
5885N/A
5885N/A# Required due to patches.
5885N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
5885N/A
5885N/AREQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
5885N/AREQUIRED_PACKAGES += image/library/libpng
5885N/AREQUIRED_PACKAGES += library/glib2
5885N/A# Requires pixman >= 0.30
5885N/AREQUIRED_PACKAGES += library/graphics/pixman
5885N/AREQUIRED_PACKAGES += library/libspectre
5885N/AREQUIRED_PACKAGES += library/zlib
5885N/AREQUIRED_PACKAGES += service/opengl/ogl-select
5885N/AREQUIRED_PACKAGES += shell/ksh93
5885N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5885N/AREQUIRED_PACKAGES += system/library/fontconfig
5885N/AREQUIRED_PACKAGES += system/library/freetype-2
5885N/AREQUIRED_PACKAGES += system/library/math
5885N/AREQUIRED_PACKAGES += x11/library/libx11
5885N/AREQUIRED_PACKAGES += x11/library/libxcb
5885N/AREQUIRED_PACKAGES += x11/library/libxext
5885N/AREQUIRED_PACKAGES += x11/library/libxrender
5885N/AREQUIRED_PACKAGES += x11/library/mesa