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