2293N/A#
2293N/A# CDDL HEADER START
2293N/A#
2293N/A# The contents of this file are subject to the terms of the
2293N/A# Common Development and Distribution License (the "License").
2293N/A# You may not use this file except in compliance with the License.
2293N/A#
2293N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2293N/A# or http://www.opensolaris.org/os/licensing.
2293N/A# See the License for the specific language governing permissions
2293N/A# and limitations under the License.
2293N/A#
2293N/A# When distributing Covered Code, include this CDDL HEADER in each
2293N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2293N/A# If applicable, add the following below this CDDL HEADER, with the
2293N/A# fields enclosed by brackets "[]" replaced with your own identifying
2293N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2293N/A#
2293N/A# CDDL HEADER END
2293N/A#
5629N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
2293N/A#
2293N/Ainclude ../../make-rules/shared-macros.mk
2293N/A
2293N/ACOMPONENT_NAME = mysql
5629N/ACOMPONENT_VERSION = 5.5.48
2293N/ACOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2293N/ACOMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
2293N/ACOMPONENT_ARCHIVE_HASH= \
5629N/A sha256:cc3f8745879eee0508de1a70fc2d267a2d06b7433faa8bb07a787768dcfed781
5629N/ACOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.5/$(COMPONENT_ARCHIVE)
2293N/ACOMPONENT_PROJECT_URL = http://dev.mysql.com/
2293N/ACOMPONENT_BUGDB = database/mysql
2293N/A
5629N/A# MySQL doesn't like cloning
5629N/ACLONEY = echo
5629N/ACOMPONENT_PRE_BUILD_ACTION += \
5629N/A $(CP) -rp $(SOURCE_DIR)/* $(@D);
5629N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
2293N/A
5629N/A# Remove "-z ignore" to avoid link problem, missing C++ runtime
5629N/A# references in libmysqlclient.so
5629N/ALD_Z_IGNORE =
5629N/A
4554N/A# Enable ASLR for this component
4554N/AASLR_MODE = $(ASLR_ENABLE)
4554N/A
2293N/A# This component uses cmake to generate Makefiles and thus does not
2293N/A# run any configure script
2293N/ACMAKE = $(shell which cmake)
2293N/ACMAKE_PREFIX = /usr/mysql/5.5
2293N/ACONFDIR = /etc/mysql/5.5
2293N/ADATA_PREFIX = /var/mysql/5.5
2293N/A
2293N/ACMAKE_BINDIR.32 = bin/$(MACH32)
2293N/ACMAKE_BINDIR.64 = bin
2293N/ACMAKE_LIBDIR.32 = lib
2293N/ACMAKE_LIBDIR.64 = lib/$(MACH64)
2293N/ACMAKE_PLUGINDIR.32 = lib/plugin
2293N/ACMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
2293N/ACMAKE_CFLAGS.64 = -m64
2293N/ACMAKE_CXXFLAGS.64 = -m64
2293N/A
2293N/A# Providing component specific build options to cmake
2293N/ACMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
2293N/ACMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
2293N/ACMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
2293N/ACMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
2293N/ACMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
2293N/ACMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
2293N/ACMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
2293N/ACMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
2293N/ACMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
2293N/ACMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
2293N/ACMAKE_OPTIONS += -DWITH_SSL=bundled
2293N/ACMAKE_OPTIONS += -DWITH_READLINE=ON
2293N/ACMAKE_OPTIONS += -DENABLE_DTRACE=1
2293N/ACMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
2293N/ACMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
2293N/ACMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
2293N/ACMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
2293N/ACMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
2293N/ACMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
2293N/ACMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
2293N/ACMAKE_OPTIONS += -DCMAKE_C_FLAGS=$(CMAKE_CFLAGS.$(BITS))
2293N/ACMAKE_OPTIONS += -DCMAKE_CXX_FLAGS=$(CMAKE_CXXFLAGS.$(BITS))
2293N/ACMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
2293N/ACMAKE_OPTIONS += -DFEATURE_SET=community
2293N/A
2293N/ACOMPONENT_PRE_BUILD_ACTION += cd $(@D);
2293N/ACOMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
2293N/ACOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
2293N/ACOMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
2293N/A
2293N/Abuild: $(BUILD_32_and_64)
2293N/A
2293N/Ainstall: $(INSTALL_32_and_64)
2293N/A
2293N/Atest: $(NO_TESTS)
2293N/A
4554N/AREQUIRED_PACKAGES += developer/build/cmake
3996N/AREQUIRED_PACKAGES += library/security/openssl
3996N/AREQUIRED_PACKAGES += runtime/perl-512
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3996N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += system/network