Makefile revision 5795
4133N/A#
4133N/A# CDDL HEADER START
4133N/A#
4133N/A# The contents of this file are subject to the terms of the
4133N/A# Common Development and Distribution License (the "License").
4133N/A# You may not use this file except in compliance with the License.
4133N/A#
4133N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4133N/A# or http://www.opensolaris.org/os/licensing.
4133N/A# See the License for the specific language governing permissions
4133N/A# and limitations under the License.
4133N/A#
4133N/A# When distributing Covered Code, include this CDDL HEADER in each
4133N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4133N/A# If applicable, add the following below this CDDL HEADER, with the
4133N/A# fields enclosed by brackets "[]" replaced with your own identifying
4133N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4133N/A#
4133N/A# CDDL HEADER END
4133N/A#
5680N/A
4133N/A#
5680N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= 64_and_32
4724N/Aexport PARFAIT_BUILD=no
4133N/Ainclude ../../make-rules/shared-macros.mk
4133N/A
4133N/ACOMPONENT_NAME = mysql
4723N/ACOMPONENT_VERSION = 5.6.25
4133N/ACOMPONENT_ARCHIVE_HASH= \
4723N/A sha256:15079c0b83d33a092649cbdf402c9225bcd3f33e87388407be5cdbf1432c7fbd
4723N/ACOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.6/$(COMPONENT_ARCHIVE)
4133N/ACOMPONENT_PROJECT_URL = http://dev.mysql.com/
4133N/ACOMPONENT_BUGDB = database/mysql
4133N/A
5680N/ABUILD_STYLE= justmake
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
4133N/A
4723N/A# MySQL being one of Oracle's own product doesn't require to have a
4723N/A# TPNO License number.
4723N/A
4133N/A# This component uses cmake to generate Makefiles and thus does not
4133N/A# run any configure script
5680N/ACMAKE = $(shell which cmake)
5680N/ACMAKE_PREFIX = $(USRDIR)/mysql/5.6
5680N/ACONFDIR = $(ETCDIR)/mysql/5.6
5680N/ADATA_PREFIX = $(VARDIR)/mysql/5.6
4133N/A
4133N/ACMAKE_BINDIR.32 = bin/$(MACH32)
4133N/ACMAKE_BINDIR.64 = bin
4133N/ACMAKE_LIBDIR.32 = lib
4133N/ACMAKE_LIBDIR.64 = lib/$(MACH64)
4133N/ACMAKE_PLUGINDIR.32 = lib/plugin
4133N/ACMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
4723N/ACMAKE_CFLAGS.32 = -D__MATHERR_RENAME_EXCEPTION
4723N/ACMAKE_CFLAGS.64 = -m64 -D__MATHERR_RENAME_EXCEPTION
4723N/ACMAKE_CXXFLAGS.32 = -D__MATHERR_RENAME_EXCEPTION -template=extdef -xnorunpath
4723N/ACMAKE_CXXFLAGS.64 = -m64 -D__MATHERR_RENAME_EXCEPTION -template=extdef -xnorunpath
4133N/A
4133N/A# Providing component specific build options to cmake
4133N/ACMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
4133N/ACMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
4133N/ACMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
4133N/ACMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
4133N/ACMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
4133N/ACMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
4133N/ACMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
4133N/ACMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
4133N/ACMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
4133N/ACMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
4133N/ACMAKE_OPTIONS += -DWITH_SSL=bundled
4133N/ACMAKE_OPTIONS += -DWITH_READLINE=ON
4133N/ACMAKE_OPTIONS += -DENABLE_DTRACE=1
4133N/ACMAKE_OPTIONS += -DHAVE_REAL_DTRACE_INSTRUMENTING=ON
4133N/ACMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
4133N/ACMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
4133N/ACMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
4133N/ACMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
4133N/ACMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
4133N/ACMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
4133N/ACMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
4133N/ACMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX)
4133N/ACMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
4723N/ACMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CMAKE_CFLAGS.$(BITS))"
4723N/ACMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(CMAKE_CXXFLAGS.$(BITS))"
4133N/ACMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
4133N/ACMAKE_OPTIONS += -DFEATURE_SET=community
4723N/ACMAKE_OPTIONS += -DSUNPRO_CXX_LIBRARY=stdcxx4
4133N/A
4133N/ACOMPONENT_PRE_BUILD_ACTION += cd $(@D);
4133N/ACOMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
4133N/ACOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
4133N/ACOMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
4133N/A
5795N/A# Adjust '#!/usr/bin/perl'
5795N/A$(INSTALL_64): PERL_SCRIPTS= \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_convert_table_format \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_find_rows \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_fix_extensions \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_install_db \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_secure_installation \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_setpermission \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_zap \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqlaccess \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqld_multi \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqldumpslow \
5795N/A $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqlhotcopy
5795N/A
4723N/AREQUIRED_PACKAGES += database/mysql-56/client
4133N/AREQUIRED_PACKAGES += developer/build/cmake
4133N/AREQUIRED_PACKAGES += library/security/openssl
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
4133N/AREQUIRED_PACKAGES += shell/ksh93
4133N/AREQUIRED_PACKAGES += system/core-os
4723N/AREQUIRED_PACKAGES += system/library/c++-runtime
4133N/AREQUIRED_PACKAGES += system/library/math
4133N/AREQUIRED_PACKAGES += system/network
4723N/AREQUIRED_PACKAGES += library/c++/stdcxx