components/desktop/cairo/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 04 Aug 2016 10:41:57 -0700
changeset 6552 402379bc1b60
parent 6002 419817b84df0
child 7687 1093e2a9adbd
permissions -rw-r--r--
24385703 Turn on ASLR by default, even for Userland "library" components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5887
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
#
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
# Cairo uses atomic intrinsics not supported in Studio 12.4 (ER 19201298)
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
COMPILER =              gcc
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
BUILD_BITS =            64_and_32
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
include ../../../make-rules/shared-macros.mk
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_NAME=		cairo
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_VERSION=	1.14.2
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	http://cairographics.org
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_HASH= \
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
    sha256:c919d999ddb1bbbecd4bbe65299ca2abd2079c7e13d224577895afa7005ecceb
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_URL=	http://cairographics.org/releases/$(COMPONENT_ARCHIVE)
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    38
COMPONENT_BUGDB=	library/cairo
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
TPNO=			24139
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
6002
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    42
# Requires newer version of pixman from X, available in S12 but not 11.3,
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    43
# so do not publish.
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    44
ifeq ($(BUILD_TYPE), evaluation)
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    45
BUILD_32_and_64=
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    46
INSTALL_32_and_64=
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    47
PUBLISH_STAMP=
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    48
endif
419817b84df0 23293916 do not publish cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 5887
diff changeset
    49
5887
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    50
# Cairo tests currently require an X display & require more work to run properly
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
TEST_TARGET= $(NO_TESTS)
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
include $(WS_MAKE_RULES)/common.mk
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
LDFLAGS += $(CC_BITS)
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
# Needed for "gmake test" to work successfully.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
unexport SHELLOPTS
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
# Needs update to work with latest cogl; optional.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    60
CONFIGURE_OPTIONS += --disable-cogl
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
CONFIGURE_OPTIONS += --disable-static
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    62
# Requires bfd (a newer version?); optional.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
CONFIGURE_OPTIONS += --disable-symbol-lookup
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
CONFIGURE_OPTIONS += --enable-atomic
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    65
CONFIGURE_OPTIONS += --enable-ft
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
CONFIGURE_OPTIONS += --enable-gl
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
CONFIGURE_OPTIONS += --enable-glx
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
CONFIGURE_OPTIONS += --enable-gobject
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    69
CONFIGURE_OPTIONS += --enable-gtk-doc
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    70
CONFIGURE_OPTIONS += --enable-interpreter
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    71
CONFIGURE_OPTIONS += --enable-largefile
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    72
CONFIGURE_OPTIONS += --enable-pdf
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    73
CONFIGURE_OPTIONS += --enable-png
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    74
CONFIGURE_OPTIONS += --enable-ps
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    75
CONFIGURE_OPTIONS += --enable-shared
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    76
CONFIGURE_OPTIONS += --enable-svg
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    77
CONFIGURE_OPTIONS += --enable-tee
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    78
CONFIGURE_OPTIONS += --enable-xcb
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    79
CONFIGURE_OPTIONS += --enable-xcb-shm
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    80
CONFIGURE_OPTIONS += --enable-xlib
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    81
CONFIGURE_OPTIONS += --enable-xlib-xrender
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    82
CONFIGURE_OPTIONS += --with-pic
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    83
CONFIGURE_OPTIONS += --with-x
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    84
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    85
# Required due to patches.
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    86
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    87
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    88
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    89
REQUIRED_PACKAGES += image/library/libpng
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    90
REQUIRED_PACKAGES += library/glib2
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    91
# Requires pixman >= 0.30
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    92
REQUIRED_PACKAGES += library/graphics/pixman
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    93
REQUIRED_PACKAGES += library/libspectre
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    94
REQUIRED_PACKAGES += library/zlib
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    95
REQUIRED_PACKAGES += service/opengl/ogl-select
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    96
REQUIRED_PACKAGES += shell/ksh93
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    97
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    98
REQUIRED_PACKAGES += system/library/fontconfig
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    99
REQUIRED_PACKAGES += system/library/freetype-2
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   100
REQUIRED_PACKAGES += system/library/math
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   101
REQUIRED_PACKAGES += x11/library/libx11
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   102
REQUIRED_PACKAGES += x11/library/libxcb
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   103
REQUIRED_PACKAGES += x11/library/libxext
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   104
REQUIRED_PACKAGES += x11/library/libxrender
67654f7c51e7 23169079 Move cairo to Userland and update to 1.14.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
   105
REQUIRED_PACKAGES += x11/library/mesa