5893N/A#
5893N/A# CDDL HEADER START
5893N/A#
5893N/A# The contents of this file are subject to the terms of the
5893N/A# Common Development and Distribution License (the "License").
5893N/A# You may not use this file except in compliance with the License.
5893N/A#
5893N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5893N/A# or http://www.opensolaris.org/os/licensing.
5893N/A# See the License for the specific language governing permissions
5893N/A# and limitations under the License.
5893N/A#
5893N/A# When distributing Covered Code, include this CDDL HEADER in each
5893N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5893N/A# If applicable, add the following below this CDDL HEADER, with the
5893N/A# fields enclosed by brackets "[]" replaced with your own identifying
5893N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5893N/A#
5893N/A# CDDL HEADER END
5893N/A#
5893N/A
5893N/A#
5893N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5893N/A#
5893N/A
5893N/A# All components using gobject-introspection must be built with gcc as
5893N/A# gobject-introspection does not produce correct results when using Studio.
5893N/ACOMPILER = gcc
5893N/ABUILD_BITS = 32_and_64
5893N/Ainclude ../../../make-rules/shared-macros.mk
5893N/A
5893N/ACOMPONENT_NAME= gtk2
5893N/ACOMPONENT_VERSION= 2.24.28
5893N/ACOMPONENT_PROJECT_URL= http://www.gtk.org/
5893N/ACOMPONENT_SRC= gtk+-$(COMPONENT_VERSION)
5893N/ACOMPONENT_ARCHIVE_HASH= \
5893N/A sha256:b2c6441e98bc5232e5f9bba6965075dcf580a8726398f7374d39f90b88ed4656
5893N/ACOMPONENT_ARCHIVE_URL= https://download.gnome.org/sources/gtk+/2.24/$(COMPONENT_ARCHIVE)
5893N/ACOMPONENT_BUGDB= gnome/gtk+
5893N/A
5893N/ATPNO= 24778
5893N/A
6005N/A# Requires gdk-pixbuf, which we cannot build on 11.3, so do not publish.
6904N/Ainclude $(WS_MAKE_RULES)/no-evaluation.mk
6005N/A
5893N/AETCDIR.64="$(ETCDIR)/$(MACH64)"
5893N/A
5893N/Ainclude $(WS_MAKE_RULES)/gnome-component.mk
5893N/A
5893N/ACFLAGS += $(CPP_XPG6MODE)
5893N/A
5893N/A# Generate man pages.
5893N/ACONFIGURE_OPTIONS += --enable-man
5893N/A# Required for other components.
5893N/ACONFIGURE_OPTIONS += --enable-introspection
5893N/ACONFIGURE_OPTIONS += --with-x
5893N/A
5893N/A# Forcibly disable use of medialib since it's being removed soon in s12
5893N/ACONFIGURE_ENV += ac_cv_lib_mlib_mlib_ImageSetStruct=no
5893N/A
5893N/A# Tell g-ir-scanner which compiler to use since upstream Makefile forgot to
5893N/ACOMPONENT_BUILD_ENV += INTROSPECTION_SCANNER_ENV='CC=$(CC_FOR_BUILD)'
5893N/A
6965N/A# Generate and install architecture-specific configuration files.
6965N/APROTOGTKDIR= $(PROTO_DIR)$(USRLIB)/gtk-2.0/2.10.0
6965N/APROTOIMMCONF= $(PROTOGTKDIR)/immodules.cache
6965N/A
6965N/ACOMPONENT_POST_INSTALL_ACTION += \
6965N/A $(MKDIR) $(PROTOGTKDIR); \
6965N/A LD_LIBRARY_PATH='$(PROTO_DIR)$(USRLIB)' \
6965N/A $(PROTO_DIR)$(USRBIN)/gtk-query-immodules-2.0 \
6965N/A $(PROTOGTKDIR)/immodules/*.so | \
6965N/A $(GSED) -e 's%$(PROTO_DIR)%%' > $(PROTOIMMCONF) ;
6965N/A
5893N/A# Needed for "gmake test" to work successfully.
5893N/Aunexport SHELLOPTS
5893N/A
5893N/A# Strip pids from test output, since they're always different
5893N/ACOMPONENT_TEST_TRANSFORMS += '-e "s% (pid=[0-9]*)%%"'
5893N/A
5893N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5893N/A
5893N/AREQUIRED_PACKAGES += data/docbook/docbook-dtds
5893N/AREQUIRED_PACKAGES += data/docbook/docbook-style-dsssl
5893N/AREQUIRED_PACKAGES += data/docbook/docbook-style-xsl
5893N/AREQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
5893N/AREQUIRED_PACKAGES += developer/gnu-indent
5893N/AREQUIRED_PACKAGES += library/desktop/atk
5893N/AREQUIRED_PACKAGES += library/desktop/cairo
5893N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
5893N/AREQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
5893N/AREQUIRED_PACKAGES += library/desktop/pango
5893N/AREQUIRED_PACKAGES += library/glib2
5893N/AREQUIRED_PACKAGES += library/libxslt
5893N/AREQUIRED_PACKAGES += library/print/cups-libs
5893N/AREQUIRED_PACKAGES += print/cups
5893N/AREQUIRED_PACKAGES += $(PERL_PKG)
5893N/AREQUIRED_PACKAGES += runtime/python-27
5893N/AREQUIRED_PACKAGES += system/library/fontconfig
5893N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5893N/AREQUIRED_PACKAGES += system/library/math
5893N/AREQUIRED_PACKAGES += system/linker
5893N/AREQUIRED_PACKAGES += x11/library/libx11
5893N/AREQUIRED_PACKAGES += x11/library/libxcomposite
5893N/AREQUIRED_PACKAGES += x11/library/libxcursor
5893N/AREQUIRED_PACKAGES += x11/library/libxdamage
5893N/AREQUIRED_PACKAGES += x11/library/libxext
5893N/AREQUIRED_PACKAGES += x11/library/libxfixes
5893N/AREQUIRED_PACKAGES += x11/library/libxinerama
5893N/AREQUIRED_PACKAGES += x11/library/libxrandr
5893N/AREQUIRED_PACKAGES += x11/library/libxrender
5893N/A# Tests run against an Xvfb server
5893N/AREQUIRED_PACKAGES += x11/server/xvfb