Makefile revision 6213
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/A# Generate and install architecture-specific configuration files.
6213N/APROTOETCGTKDIR.32= $(PROTO_DIR)/$(ETCDIR.32)/gtk-3.0
6213N/APROTOETCGTKDIR.64= $(PROTO_DIR)/$(ETCDIR.64)/gtk-3.0
6213N/APROTOETCIMMCONF.32= $(PROTOETCGTKDIR.32)/gtk.immodules
6213N/APROTOETCIMMCONF.64= $(PROTOETCGTKDIR.64)/gtk.immodules
6213N/A
6213N/A$(PROTOETCIMMCONF.32):
6213N/A $(MKDIR) $(PROTOETCGTKDIR.32); \
6213N/A LD_LIBRARY_PATH=$(PROTO_DIR)/$(USRLIB.32) \
6213N/A $(PROTOUSRBINDIR)/gtk-query-immodules-3.0 \
6213N/A $(PROTOUSRLIBDIR)/gtk-3.0/*/immodules/*.so | \
6213N/A $(GSED) -e "s#$(PROTO_DIR)/##" > $(PROTOETCIMMCONF.32)
6213N/A
6213N/A$(PROTOETCIMMCONF.64):
6213N/A $(MKDIR) $(PROTOETCGTKDIR.64); \
6213N/A LD_LIBRARY_PATH=$(PROTO_DIR)/$(USRLIB.64) \
6213N/A $(PROTOUSRBINDIR64)/gtk-query-immodules-3.0 \
6213N/A $(PROTOUSRLIBDIR64)/gtk-3.0/*/immodules/*.so | \
6213N/A $(GSED) -e "s#$(PROTO_DIR)/##" > $(PROTOETCIMMCONF.64)
6213N/A
6213N/Ainstall: $(PROTOETCIMMCONF.32) $(PROTOETCIMMCONF.64)
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
6213N/A
6213N/A# Delete this when build servers are installed with an updated at-spi2-atk
6213N/AATK_BASE = $(WS_COMPONENTS)/gnome/at-spi2-atk/build/prototype/$(MACH)
6213N/APKG_CONFIG_PATHS.32 += $(ATK_BASE)/usr/lib/pkgconfig/
6213N/APKG_CONFIG_PATHS.64 += $(ATK_BASE)/usr/lib/$(MACH64)/pkgconfig/
6213N/APKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
6213N/A
6213N/ALD_OPTIONS.32 += -L $(ATK_BASE)/usr/lib
6213N/ALD_OPTIONS.64 += -L $(ATK_BASE)/usr/lib/$(MACH64)
6213N/ALD_OPTIONS += $(LD_OPTIONS.$(BITS))
6213N/A
6213N/ACPPFLAGS += -I$(ATK_BASE)/usr/include/at-spi2-atk/2.0
6213N/A
6213N/AREST_BASE = $(WS_COMPONENTS)/gnome/rest/build/prototype/$(MACH)
6213N/APKG_CONFIG_PATHS.32 += $(REST_BASE)/usr/lib/pkgconfig/
6213N/APKG_CONFIG_PATHS.64 += $(REST_BASE)/usr/lib/$(MACH64)/pkgconfig/
6213N/APKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
6213N/A
6213N/ALD_OPTIONS.32 += -L $(REST_BASE)/usr/lib
6213N/ALD_OPTIONS.64 += -L $(REST_BASE)/usr/lib/$(MACH64)
6213N/ALD_OPTIONS += $(LD_OPTIONS.$(BITS))
6213N/A
6213N/ACPPFLAGS += -I$(REST_BASE)/usr/include/rest-0.7
6213N/A
6213N/A# Work around pkgdepend bug which doesn't resolve dependencies from
6213N/A# the local workspace repo.
6213N/ADEPENDED += $(WS_TOP)/components/gnome/rest/build/manifest-$(MACH)-rest.depend
6213N/ADEPENDED += $(WS_TOP)/components/gnome/at-spi2-atk/build/manifest-$(MACH)-at-spi2-atk.depend
6213N/A
6213N/A# Temporary until dependencies are all on build machines
6213N/AREQUIRED_PACKAGES += $(shell $(GSED) -n 's/REQUIRED_PACKAGES +=//p' ../at-spi2-atk/Makefile)
6213N/AREQUIRED_PACKAGES += $(shell $(GSED) -n 's/REQUIRED_PACKAGES +=//p' ../rest/Makefile)
6213N/A#end Delete
6213N/A
6213N/A# Needed due to patch to configure.ac.
6213N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv);
6213N/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
6213N/AREQUIRED_PACKAGES += service/image/colord
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