6535N/A#
6535N/A# CDDL HEADER START
6535N/A#
6535N/A# The contents of this file are subject to the terms of the
6535N/A# Common Development and Distribution License (the "License").
6535N/A# You may not use this file except in compliance with the License.
6535N/A#
6535N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6535N/A# or http://www.opensolaris.org/os/licensing.
6535N/A# See the License for the specific language governing permissions
6535N/A# and limitations under the License.
6535N/A#
6535N/A# When distributing Covered Code, include this CDDL HEADER in each
6535N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6535N/A# If applicable, add the following below this CDDL HEADER, with the
6535N/A# fields enclosed by brackets "[]" replaced with your own identifying
6535N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6535N/A#
6535N/A# CDDL HEADER END
6535N/A#
6535N/A
6535N/A#
6535N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
6535N/A#
6535N/A
7102N/A# parfait is a bit unhappy (24796572)
7102N/Aexport PARFAIT_BUILD=no
7102N/A
6535N/ABUILD_BITS= 64
6535N/A# For now, all things built for C++11 require gcc; the cmake files for this
6535N/A# project already specify the required -std.
6535N/ACOMPILER= gcc
6535N/Ainclude ../../../make-rules/shared-macros.mk
6535N/A
6535N/ACOMPONENT_NAME= webkitgtk
6535N/ACOMPONENT_VERSION= 2.8.4
6535N/ACOMPONENT_PROJECT_URL= http://webkitgtk.org
6535N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
6535N/ACOMPONENT_ARCHIVE_HASH= \
6535N/A sha256:30bd366bd970d4bac2f9ef5bff0fb935376bf91ea2aaa2a5183fe5fdbec20fbd
6535N/ACOMPONENT_ARCHIVE_URL= http://webkitgtk.org/releases/$(COMPONENT_ARCHIVE)
6535N/ACOMPONENT_BUGDB= library/webkitgtk
6535N/A
6535N/ATPNO= 25892
6535N/A
6535N/A# Use project's own optimization flags instead.
6535N/Agcc_OPT=
6535N/A
6535N/A# Requires newer version of cairo, available in S12 but not 11.3,
6535N/A# so do not publish.
6535N/Aifeq ($(BUILD_TYPE), evaluation)
6535N/ABUILD_64=
6535N/AINSTALL_64=
6535N/APUBLISH_STAMP=
6535N/Aendif
6535N/A
6535N/ABUILD_STYLE= justmake
6535N/Ainclude $(WS_MAKE_RULES)/common.mk
6535N/A
6535N/ACOMPONENT_BUILD_ARGS += -j4
6535N/A
6535N/A# Force use of gnutls-3 pkgconfig during 2.x->3.x transition
6535N/APKG_CONFIG_PATHS.32 += $(PKG_CONFIG_PATH.32)/gnutls-3
6535N/APKG_CONFIG_PATHS.64 += $(PKG_CONFIG_PATH.64)/gnutls-3
6535N/APKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
6535N/ALD_OPTIONS.32 += -L $(USRLIB.32)/gnutls-3 -R $(USRLIB.32)/gnutls-3
6535N/ALD_OPTIONS.64 += -L $(USRLIB.64)/gnutls-3 -R $(USRLIB.64)/gnutls-3
6535N/ALD_OPTIONS += $(LD_OPTIONS.$(BITS))
6535N/A
6535N/APKG_CONFIG_PATHS.32 += $(PKG_CONFIG_PATH.32)/libnotify-4
6535N/APKG_CONFIG_PATHS.64 += $(PKG_CONFIG_PATH.64)/libnotify-4
6535N/APKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
6535N/ALD_OPTIONS.32 += -L $(USRLIB.32)/libnotify-4 -R $(USRLIB.32)/libnotify-4
6535N/ALD_OPTIONS.64 += -L $(USRLIB.64)/libnotify-4 -R $(USRLIB.64)/libnotify-4
6535N/ALD_OPTIONS += $(LD_OPTIONS.$(BITS))
6535N/A
6535N/A# Required to ensure expected defines are set; also, ensures project's
6535N/A# optimisation level set appropriately. Would prefer RelWithDebInfo, but that
6535N/A# target is curently broken.
6535N/ACMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
6535N/ACMAKE_OPTIONS += -DENABLE_MINIBROWSER=ON
6535N/ACMAKE_OPTIONS += -DPORT=GTK
6535N/A
6535N/Aifeq ($(MACH), sparc)
6535N/ACMAKE_OPTIONS += -DENABLE_JIT=OFF
6535N/Aendif
6535N/A
6535N/A# Need to figure out a way to use BUILD_STYLE = cmake and remove
6535N/A# these duplicate entries here - 24375155
6535N/A# This component uses cmake to generate Makefiles and so has no configure
6535N/ACMAKE = $(shell which cmake)
6535N/ACMAKE_OPTIONS += -DCMAKE_CXX_COMPILER="$(CXX)"
6535N/ACMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(CXXFLAGS)"
6535N/ACMAKE_OPTIONS += -DCMAKE_C_COMPILER="$(CC)"
6535N/ACMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CFLAGS)"
6535N/ACMAKE_OPTIONS += -DCMAKE_EXE_LINKER_FLAGS="$(LDFLAGS)"
6535N/A# Must start install paths with a leading '/' or files will be installed into
6535N/A# wrong location!
6535N/ACMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX="$(USRDIR)"
6535N/ACMAKE_OPTIONS += -DCMAKE_MODULE_LINKER_FLAGS="$(LDFLAGS)"
6535N/ACMAKE_OPTIONS += -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)"
6535N/ACMAKE_OPTIONS += -DGETTEXT_MSGFMT_EXECUTABLE="$(GNUBIN)/msgfmt"
6535N/ACMAKE_OPTIONS += -DEXEC_INSTALL_DIR="$(USRBIN)"
6535N/ACMAKE_OPTIONS += -DLIB_INSTALL_DIR="$(USRLIB)"
6535N/ACMAKE_OPTIONS += -DLIBEXEC_INSTALL_DIR="$(USRLIB)"
6535N/A
6535N/A# Tell g-ir-scanner not to cache results in homedir of user running the build
6535N/ACOMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
6535N/A
6535N/A# Expects GNU versions of utilities to be found in PATH (e.g. xgettext).
6535N/ACOMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)"
6535N/A
6535N/A# Ensure cmake finds the matching 32/64-bit version of dependencies.
6535N/ACOMPONENT_BUILD_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
6535N/A
6535N/ACOMPONENT_PRE_BUILD_ACTION += cd $(@D);
6535N/ACOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
6535N/ACOMPONENT_PRE_BUILD_ACTION += $(ENV) $(COMPONENT_BUILD_ENV) $(CMAKE) . $(CMAKE_OPTIONS);
6535N/A
6535N/AREQUIRED_PACKAGES += database/sqlite-3
6535N/AREQUIRED_PACKAGES += developer/build/cmake
6535N/AREQUIRED_PACKAGES += developer/build/gnu-make
6535N/AREQUIRED_PACKAGES += developer/build/pkg-config
6535N/AREQUIRED_PACKAGES += developer/gperf
6535N/AREQUIRED_PACKAGES += developer/parser/bison
6535N/AREQUIRED_PACKAGES += image/library/libjpeg
6535N/AREQUIRED_PACKAGES += image/library/libpng
6535N/AREQUIRED_PACKAGES += image/library/libwebp
6535N/AREQUIRED_PACKAGES += library/desktop/atk
6535N/AREQUIRED_PACKAGES += library/desktop/cairo
6535N/AREQUIRED_PACKAGES += library/desktop/gdk-pixbuf
6535N/AREQUIRED_PACKAGES += library/desktop/gstreamer-1
6535N/AREQUIRED_PACKAGES += library/desktop/gstreamer-1/gst-plugins-base
6535N/AREQUIRED_PACKAGES += library/desktop/gtk2
6535N/AREQUIRED_PACKAGES += library/desktop/gtk3
6535N/AREQUIRED_PACKAGES += library/desktop/harfbuzz
6535N/AREQUIRED_PACKAGES += library/desktop/pango
6535N/AREQUIRED_PACKAGES += library/gnome/libsecret
6535N/AREQUIRED_PACKAGES += library/glib2
6535N/AREQUIRED_PACKAGES += library/gnutls-3
6535N/AREQUIRED_PACKAGES += library/icu
6535N/AREQUIRED_PACKAGES += library/desktop/libnotify
6535N/AREQUIRED_PACKAGES += library/libsoup
6535N/AREQUIRED_PACKAGES += library/libxml2
6535N/AREQUIRED_PACKAGES += library/libxslt
6535N/AREQUIRED_PACKAGES += library/spell-checking/enchant
6535N/AREQUIRED_PACKAGES += library/zlib
6535N/AREQUIRED_PACKAGES += $(PERL_PKG)
6535N/AREQUIRED_PACKAGES += runtime/python-27
6535N/AREQUIRED_PACKAGES += runtime/ruby
6535N/AREQUIRED_PACKAGES += service/opengl/ogl-select
6535N/AREQUIRED_PACKAGES += system/library/fontconfig
6535N/AREQUIRED_PACKAGES += system/library/freetype-2
6535N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
6535N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6535N/AREQUIRED_PACKAGES += system/library/math
6535N/AREQUIRED_PACKAGES += x11/library/libx11
6535N/AREQUIRED_PACKAGES += x11/library/libxcomposite
6535N/AREQUIRED_PACKAGES += x11/library/libxdamage
6535N/AREQUIRED_PACKAGES += x11/library/mesa