2128N/A#
2128N/A# CDDL HEADER START
2128N/A#
2128N/A# The contents of this file are subject to the terms of the
2128N/A# Common Development and Distribution License (the "License").
2128N/A# You may not use this file except in compliance with the License.
2128N/A#
2128N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2128N/A# or http://www.opensolaris.org/os/licensing.
2128N/A# See the License for the specific language governing permissions
2128N/A# and limitations under the License.
2128N/A#
2128N/A# When distributing Covered Code, include this CDDL HEADER in each
2128N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2128N/A# If applicable, add the following below this CDDL HEADER, with the
2128N/A# fields enclosed by brackets "[]" replaced with your own identifying
2128N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2128N/A#
2128N/A# CDDL HEADER END
2128N/A#
5680N/A
5680N/A#
5591N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2128N/A#
5680N/ABUILD_BITS= 64_and_32
2923N/Aexport PARFAIT_BUILD=no
2128N/Ainclude ../../make-rules/shared-macros.mk
2128N/A
2128N/ACOMPONENT_NAME = mysql
6031N/ACOMPONENT_VERSION = 5.5.49
2128N/ACOMPONENT_ARCHIVE_HASH= \
6031N/A sha256:cd9ca49b01a76bca635f2888b9d4d30fa6583dd198994d407cdd0dd7170e9e1f
5591N/ACOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.5/$(COMPONENT_ARCHIVE)
2128N/ACOMPONENT_PROJECT_URL = http://dev.mysql.com/
2128N/ACOMPONENT_BUGDB = database/mysql
2128N/A
6031N/A#We use cp(1) instead of cloney because we use TAR to copy files and the TAR
6031N/A#used doesn't handle long links
5591N/ACLONEY = echo
6031N/ACOMPONENT_PRE_BUILD_ACTION += $(CP) -rp $(SOURCE_DIR)/* $(@D);
5591N/A
5680N/ABUILD_STYLE= cmake
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5680N/A
2128N/A# This component uses cmake to generate Makefiles and thus does not
2128N/A# run any configure script
5680N/ACMAKE_PREFIX = $(USRDIR)/mysql/5.5
5680N/ACONFDIR = $(ETCDIR)/mysql/5.5
5680N/ADATA_PREFIX = $(VARDIR)/mysql/5.5
2128N/A
2128N/ACMAKE_BINDIR.32 = bin/$(MACH32)
2128N/ACMAKE_BINDIR.64 = bin
2128N/ACMAKE_LIBDIR.32 = lib
2128N/ACMAKE_LIBDIR.64 = lib/$(MACH64)
2128N/ACMAKE_PLUGINDIR.32 = lib/plugin
2128N/ACMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
2128N/A
2128N/A# Providing component specific build options to cmake
2128N/ACMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
2128N/ACMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
2128N/ACMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
2128N/ACMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
2128N/ACMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
2128N/ACMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
2128N/ACMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
2128N/ACMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
2128N/ACMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
2128N/ACMAKE_OPTIONS += -DWITH_SSL=bundled
2128N/ACMAKE_OPTIONS += -DWITH_READLINE=ON
2128N/ACMAKE_OPTIONS += -DENABLE_DTRACE=1
2128N/ACMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
2128N/ACMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
2128N/ACMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
2128N/ACMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
2128N/ACMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
2128N/ACMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
2128N/ACMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
2128N/ACMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
2128N/ACMAKE_OPTIONS += -DFEATURE_SET=community
6031N/ACMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
2128N/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_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
3817N/AREQUIRED_PACKAGES += library/security/openssl
5795N/AREQUIRED_PACKAGES += $(PERL_PKG)
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library/c++-runtime
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/network