Makefile revision 5680
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
5591N/ACOMPONENT_VERSION = 5.5.48
2128N/ACOMPONENT_ARCHIVE_HASH= \
5591N/A sha256:cc3f8745879eee0508de1a70fc2d267a2d06b7433faa8bb07a787768dcfed781
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
5591N/A# MySQL doesn't like cloning
5591N/ACLONEY = echo
5591N/ACOMPONENT_PRE_BUILD_ACTION += \
5591N/A $(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
5591N/A
5591N/A# Remove "-z ignore" to avoid link problem, missing C++ runtime
5591N/A# references in libmysqlclient.so
5591N/ALD_Z_IGNORE =
2128N/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
2128N/A
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += runtime/perl-512
4744N/AREQUIRED_PACKAGES += runtime/perl-520
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