98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
935N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A
919N/Aexport PARFAIT_BUILD=no
98N/Ainclude ../../make-rules/shared-macros.mk
98N/A
98N/ACOMPONENT_NAME = mysql
235N/ACOMPONENT_VERSION = 5.6.29
156N/ACOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
156N/ACOMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
156N/ACOMPONENT_ARCHIVE_HASH= \
156N/A sha256:6ac85b75b2dfa8c232725dda25469df37bf4e48b408cc0978d0dfc34c25a817f
98N/ACOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.6/$(COMPONENT_ARCHIVE)
98N/ACOMPONENT_PROJECT_URL = http://dev.mysql.com/
98N/ACOMPONENT_BUGDB = database/mysql
98N/A
493N/A# Using the latest SunStudio to use the GCC C++ runtime library
493N/ASPRO_VROOT = $(SPRO_ROOT)/solarisstudio12.4
98N/A
911N/A# Keeping SunStudio first in path
952N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
952N/A
911N/A#We use cp(1) instead of cloney because we use TAR to copy files and the TAR
98N/A#used doesn't handle long links
235N/ACLONEY = echo
493N/ACOMPONENT_PRE_BUILD_ACTION += $(CP) -rp $(SOURCE_DIR)/* $(@D);
98N/A
916N/Ainclude $(WS_MAKE_RULES)/prep.mk
916N/Ainclude $(WS_MAKE_RULES)/justmake.mk
916N/Ainclude $(WS_MAKE_RULES)/ips.mk
916N/A
970N/A# Enable ASLR for this component
970N/AASLR_MODE = $(ASLR_ENABLE)
970N/A
970N/A# This component uses cmake to generate Makefiles and thus does not
970N/A# run any configure script
970N/ACMAKE = /usr/bin/cmake
970N/ACMAKE_PREFIX = /usr/mysql/5.6
970N/ACONFDIR = /etc/mysql/5.6
970N/ADATA_PREFIX = /var/mysql/5.6
970N/A
970N/ACMAKE_BINDIR.32 = bin/$(MACH32)
970N/ACMAKE_BINDIR.64 = bin
970N/ACMAKE_LIBDIR.32 = lib
970N/ACMAKE_LIBDIR.64 = lib/$(MACH64)
970N/ACMAKE_PLUGINDIR.32 = lib/plugin
970N/ACMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
970N/ACMAKE_CFLAGS.32 = -m32
970N/ACMAKE_CFLAGS.64 = -m64
970N/ACMAKE_CXXFLAGS.32 = "-m32 -xnorunpath -std=c++03"
970N/ACMAKE_CXXFLAGS.64 = "-m64 -xnorunpath -std=c++03"
970N/A
970N/A# Providing component specific build options to cmake
970N/ACMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
970N/ACMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
970N/ACMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
970N/ACMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
98N/ACMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
98N/ACMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
98N/ACMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
606N/ACMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
98N/ACMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
98N/ACMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
98N/ACMAKE_OPTIONS += -DWITH_SSL=bundled
606N/ACMAKE_OPTIONS += -DWITH_READLINE=ON
606N/ACMAKE_OPTIONS += -DENABLE_DTRACE=1
98N/ACMAKE_OPTIONS += -DHAVE_REAL_DTRACE_INSTRUMENTING=ON
493N/ACMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
98N/ACMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
970N/ACMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
970N/ACMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
970N/ACMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
1026N/ACMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
970N/ACMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
970N/ACMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX)
1026N/ACMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
970N/ACMAKE_OPTIONS += -DCMAKE_C_FLAGS=$(CMAKE_CFLAGS.$(BITS))
1003N/ACMAKE_OPTIONS += -DCMAKE_CXX_FLAGS=$(CMAKE_CXXFLAGS.$(BITS))
1003N/A
1003N/ACMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
1003N/ACMAKE_OPTIONS += -DFEATURE_SET=community
98N/ACMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
98N/A
970N/ACOMPONENT_PRE_BUILD_ACTION += cd $(@D);
98N/ACOMPONENT_PRE_BUILD_ACTION += export LDFLAGS="$(CMAKE_CXXFLAGS.$(BITS))";
908N/ACOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
591N/ACOMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
493N/A
493N/Abuild: $(BUILD_32_and_64)
493N/A
493N/Ainstall: $(INSTALL_32_and_64)
493N/A
493N/Atest: $(NO_TESTS)
493N/A
493N/AREQUIRED_PACKAGES += developer/build/cmake
493N/AREQUIRED_PACKAGES += library/security/openssl
1026N/AREQUIRED_PACKAGES += runtime/perl-512
705N/AREQUIRED_PACKAGES += shell/ksh93
493N/AREQUIRED_PACKAGES += system/core-os
557N/AREQUIRED_PACKAGES += system/library/c++-runtime
557N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
493N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
493N/AREQUIRED_PACKAGES += system/library/math
965N/AREQUIRED_PACKAGES += system/network
965N/A