6569N/A#
6569N/A# CDDL HEADER START
6569N/A#
6569N/A# The contents of this file are subject to the terms of the
6569N/A# Common Development and Distribution License (the "License").
6569N/A# You may not use this file except in compliance with the License.
6569N/A#
6569N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6569N/A# or http://www.opensolaris.org/os/licensing.
6569N/A# See the License for the specific language governing permissions
6569N/A# and limitations under the License.
6569N/A#
6569N/A# When distributing Covered Code, include this CDDL HEADER in each
6569N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6569N/A# If applicable, add the following below this CDDL HEADER, with the
6569N/A# fields enclosed by brackets "[]" replaced with your own identifying
6569N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6569N/A#
6569N/A# CDDL HEADER END
6569N/A#
6569N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6569N/A#
6569N/A
6569N/A# MySQL 5.7 is compiled using GCC. Note that the MySQL Server 5.7 for
6569N/A# Solaris dowloaded from http://dev.mysql.com/downloads/mysql/ is a
6569N/A# hybrid, the server part is compiled using GCC and the client library
6569N/A# is compiled using SunStudio and the "stlport4" C++ runtime
6569N/A# library. In this build both server and client is compiled using GCC.
6569N/ACOMPILER = gcc
6569N/A
6569N/Ainclude ../../make-rules/shared-macros.mk
6569N/A
6569N/ACOMPONENT_NAME = mysql
6569N/ACOMPONENT_VERSION = 5.7.11
6569N/ACOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6569N/ACOMPONENT_ARCHIVE = $(COMPONENT_NAME)-boost-$(COMPONENT_VERSION).tar.gz
6569N/ACOMPONENT_ARCHIVE_HASH= \
6569N/A sha256:ab21347ba004a5aa349b911d829a14e79b1e36e4bcd007d39d75212071414e28
6569N/ACOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.7/$(COMPONENT_ARCHIVE)
6569N/ACOMPONENT_PROJECT_URL = http://dev.mysql.com/
6569N/ACOMPONENT_BUGDB = database/mysql
6569N/A
6569N/A#We use cp(1) instead of cloney because we use TAR to copy files and the TAR
6569N/A#used doesn't handle long links
6569N/ACLONEY = echo
6569N/ACOMPONENT_PRE_BUILD_ACTION += $(CP) -rp $(SOURCE_DIR)/* $(@D);
6569N/A
6569N/Ainclude $(WS_MAKE_RULES)/prep.mk
6569N/Ainclude $(WS_MAKE_RULES)/justmake.mk
6569N/Ainclude $(WS_MAKE_RULES)/ips.mk
6569N/A
6569N/A# Enable ASLR for this component
6569N/AASLR_MODE = $(ASLR_ENABLE)
6569N/A
6569N/A# MySQL being one of Oracle's own product doesn't require to have a TPNO
6569N/A# License number, but it uses Boost, which does have such a requirement.
6569N/ATPNO=24164
6569N/A
6569N/A# This component uses cmake to generate Makefiles and thus does not
6569N/A# run any configure script
6569N/ACMAKE = $(shell which cmake)
6569N/ACMAKE_PREFIX = $(USRDIR)/mysql/5.7
6569N/ACONFDIR = $(ETCDIR)/mysql/5.7
6569N/ADATA_PREFIX = $(VARDIR)/mysql/5.7
6569N/A
6569N/A# The install layout differs from "INSTALL_LAYOUT=STANDALONE" in that
6569N/A# we put scripts into the "bin" directory and the "lib" directory has
6569N/A# an architecture subdirectory. We also use a simplified CFLAGS/CXXFLAGS
6569N/A# setting and let the MySQL CMake setup add the other flags.
6569N/A# For "lib", 64-bit uses subdir but 32-bit does not
6569N/ACMAKE_BINDIR.64 = bin
6569N/ACMAKE_LIBDIR.64 = lib/$(MACH64)
6569N/ACMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
6569N/A
6569N/A# Providing component specific build options to cmake
6569N/ACMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
6569N/ACMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
6569N/ACMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
6569N/ACMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
6569N/ACMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
6569N/ACMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
6569N/ACMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
6569N/ACMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
6569N/ACMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
6569N/ACMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
6569N/ACMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
6569N/ACMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX)
6569N/ACMAKE_OPTIONS += -DCMAKE_C_COMPILER=$(CC)
6569N/A
6569N/ACMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
6569N/ACMAKE_OPTIONS += -DFEATURE_SET=community
6569N/A
6569N/ACMAKE_OPTIONS += -DWITH_SSL=bundled
6569N/ACMAKE_OPTIONS += -DENABLE_DTRACE=1
6569N/ACMAKE_OPTIONS += -DWITH_INNODB_MEMCACHED=1
6569N/ACMAKE_OPTIONS += -DWITH_BOOST=boost
6569N/ACMAKE_OPTIONS += -DWITH_EMBEDDED_SERVER=1
6569N/ACMAKE_OPTIONS += -DWITH_EMBEDDED_SHARED_LIBRARY=1
6569N/ACMAKE_OPTIONS += -DDISABLE_STATIC=ON
6569N/ACMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
6569N/A
6569N/ACOMPONENT_PRE_BUILD_ACTION += cd $(@D);
6569N/ACOMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
6569N/ACOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
6569N/ACOMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
6569N/A
6569N/Abuild: $(BUILD_64)
6569N/A
6569N/Ainstall: $(INSTALL_64)
6569N/A
6569N/Atest: $(NO_TESTS)
6569N/A
6569N/AREQUIRED_PACKAGES += database/mysql-57/client
6569N/AREQUIRED_PACKAGES += runtime/perl-512
6569N/AREQUIRED_PACKAGES += shell/bash
6569N/AREQUIRED_PACKAGES += shell/ksh93
6569N/AREQUIRED_PACKAGES += system/core-os
6569N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
6569N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6569N/AREQUIRED_PACKAGES += system/library/math
6569N/AREQUIRED_PACKAGES += system/network