6213N/A#
6213N/A# CDDL HEADER START
6213N/A#
6213N/A# The contents of this file are subject to the terms of the
6213N/A# Common Development and Distribution License (the "License").
6213N/A# You may not use this file except in compliance with the License.
6213N/A#
6213N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6213N/A# or http://www.opensolaris.org/os/licensing.
6213N/A# See the License for the specific language governing permissions
6213N/A# and limitations under the License.
6213N/A#
6213N/A# When distributing Covered Code, include this CDDL HEADER in each
6213N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6213N/A# If applicable, add the following below this CDDL HEADER, with the
6213N/A# fields enclosed by brackets "[]" replaced with your own identifying
6213N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6213N/A#
6213N/A# CDDL HEADER END
6213N/A#
6213N/A
6213N/A#
6213N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
6213N/A#
6213N/A
6213N/ABUILD_BITS = 32_and_64
6213N/A# All components using gobject-introspection must be built with gcc as
6213N/A# gobject-introspection does not produce correct results when using Studio.
6213N/ACOMPILER = gcc
6213N/Ainclude ../../../make-rules/shared-macros.mk
6213N/A
6213N/ACOMPONENT_NAME= gtk3
6213N/ACOMPONENT_VERSION= 3.18.0
6213N/ACOMPONENT_PROJECT_URL= https://wiki.gnome.org/Projects/GTK+
6213N/ACOMPONENT_SRC= gtk+-$(COMPONENT_VERSION)
6213N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
6213N/ACOMPONENT_ARCHIVE_HASH= \
6213N/A sha256:7fb8ae257403317d3852bad28d064d35f67e978b1fed8b71d5997e87204271b9
6213N/ACOMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/gtk+/3.18/$(COMPONENT_ARCHIVE)
6213N/ACOMPONENT_BUGDB= gnome/gtk+
6213N/A
6213N/ATPNO= 24779
6213N/A
6213N/AETCDIR.64="$(ETCDIR)/$(MACH64)"
6213N/A
6213N/A# Enable tests once all dependencies are install on the build server
6213N/ATEST_TARGET = $(SKIP_TEST)
6213N/A
6213N/A# Needs gobject-introspection, not available on S11.
6213N/Aifeq ($(BUILD_TYPE), evaluation)
6213N/ABUILD_32_and_64=
6213N/AINSTALL_32_and_64=
6213N/APUBLISH_STAMP=
6213N/Aendif
6213N/A
6213N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
6213N/A
6213N/A# Uses isinf, etc. only available in c99 and newer. The GNU variant is chosen
6213N/A# due to use of M_PI, etc. dropped in C99 and newer.
6213N/ACFLAGS.gcc += -std=gnu11
6213N/A
6213N/A# 32-bit gcc builds cause segfaults in gtk3; see bug 21393975.
6213N/Agcc_OPT.i386.32 = -O2
6213N/A
6213N/ACONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
6213N/ACONFIGURE_OPTIONS += --enable-cloudprint
6213N/A# Required for other components.
6213N/ACONFIGURE_OPTIONS += --enable-introspection
6213N/ACONFIGURE_OPTIONS += --enable-libcanberra
6213N/A# Generate man pages
6213N/ACONFIGURE_OPTIONS += --enable-man
6213N/ACONFIGURE_OPTIONS += --with-x
6674N/A# disable colord for now till we get colord installed on build servers
6674N/A# at which point we can delete this and add it in REQ PKGS
6674N/ACONFIGURE_OPTIONS += --enable-colord=no
6213N/A
6213N/A# Needed due to patch to configure.ac.
6213N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
6213N/A
6966N/A# Make sure SMF manifests are valid
6966N/A$(BUILD_DIR)/.validated-smf-manifests-$(MACH): $(BUILD_DIR)
6966N/A @for f in files/*.xml ; do \
6966N/A (set -ex ; /usr/sbin/svccfg validate "$$f") ; \
6966N/A done
6966N/A $(TOUCH) $@
6966N/A
6966N/Avalidate-smf: $(BUILD_DIR)/.validated-smf-manifests-$(MACH)
6966N/Abuild: $(BUILD_DIR)/.validated-smf-manifests-$(MACH)
6966N/A
6966N/A# Generate and install architecture-specific configuration files.
6966N/APROTOGTKDIR= $(PROTO_DIR)$(USRLIB)/gtk-3.0/3.0.0
6966N/APROTOIMMCONF= $(PROTOGTKDIR)/immodules.cache
6966N/A
6966N/ACOMPONENT_POST_INSTALL_ACTION += \
6966N/A $(MKDIR) $(PROTOGTKDIR); \
6966N/A LD_LIBRARY_PATH='$(PROTO_DIR)$(USRLIB)' \
6966N/A $(PROTO_DIR)$(USRBIN)/gtk-query-immodules-3.0 \
6966N/A $(PROTOGTKDIR)/immodules/*.so | \
6966N/A $(GSED) -e 's%$(PROTO_DIR)%%' > $(PROTOIMMCONF) ;
6966N/A
6213N/AREQUIRED_PACKAGES += data/docbook/docbook-dtds
6213N/AREQUIRED_PACKAGES += data/docbook/docbook-style-dsssl
6213N/AREQUIRED_PACKAGES += data/docbook/docbook-style-xsl
6213N/AREQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
6213N/AREQUIRED_PACKAGES += developer/gnu-indent
6213N/AREQUIRED_PACKAGES += library/desktop/at-spi2-atk
6213N/AREQUIRED_PACKAGES += library/desktop/atk
6213N/AREQUIRED_PACKAGES += library/desktop/cairo
6213N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
6213N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
6213N/AREQUIRED_PACKAGES += library/desktop/librest
6213N/AREQUIRED_PACKAGES += library/desktop/pango
6213N/AREQUIRED_PACKAGES += library/desktop/xdg/libcanberra
6213N/AREQUIRED_PACKAGES += library/glib2
6213N/AREQUIRED_PACKAGES += library/json-glib
6213N/AREQUIRED_PACKAGES += library/print/cups-libs
6213N/AREQUIRED_PACKAGES += print/cups
6213N/AREQUIRED_PACKAGES += runtime/perl-522
6213N/AREQUIRED_PACKAGES += runtime/python-27
6967N/AREQUIRED_PACKAGES += service/opengl/ogl-select
6966N/AREQUIRED_PACKAGES += system/core-os
6213N/AREQUIRED_PACKAGES += system/library/fontconfig
6213N/AREQUIRED_PACKAGES += system/library/freetype-2
6213N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6213N/AREQUIRED_PACKAGES += system/library/math
6213N/AREQUIRED_PACKAGES += x11/library/libepoxy
6213N/AREQUIRED_PACKAGES += x11/library/libx11
6213N/AREQUIRED_PACKAGES += x11/library/libxcomposite
6213N/AREQUIRED_PACKAGES += x11/library/libxcursor
6213N/AREQUIRED_PACKAGES += x11/library/libxdamage
6213N/AREQUIRED_PACKAGES += x11/library/libxext
6213N/AREQUIRED_PACKAGES += x11/library/libxfixes
6213N/AREQUIRED_PACKAGES += x11/library/libxi
6213N/AREQUIRED_PACKAGES += x11/library/libxinerama
6213N/AREQUIRED_PACKAGES += x11/library/libxrandr
6213N/AREQUIRED_PACKAGES += x11/library/libxrender