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