Makefile revision 2293
3158N/A#
3158N/A# CDDL HEADER START
3158N/A#
3158N/A# The contents of this file are subject to the terms of the
3158N/A# Common Development and Distribution License (the "License").
3158N/A# You may not use this file except in compliance with the License.
3158N/A#
3158N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3158N/A# or http://www.opensolaris.org/os/licensing.
3158N/A# See the License for the specific language governing permissions
3158N/A# and limitations under the License.
3158N/A#
3158N/A# When distributing Covered Code, include this CDDL HEADER in each
3158N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3158N/A# If applicable, add the following below this CDDL HEADER, with the
3158N/A# fields enclosed by brackets "[]" replaced with your own identifying
3158N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3158N/A#
3158N/A# CDDL HEADER END
3158N/A#
3648N/A# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3158N/A#
3158N/Ainclude ../../make-rules/shared-macros.mk
3158N/A
3158N/ACOMPONENT_NAME = mysql
3737N/ACOMPONENT_VERSION = 5.5.31
3158N/ACOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3158N/ACOMPONENT_ARCHIVE = $(COMPONENT_SRC).tar.gz
3158N/ACOMPONENT_ARCHIVE_HASH= \
3158N/A sha256:9cdd650b47e3ea864ab40d4ab23fa4a9fdfabc7fd018bf5c9cce30722c0abcea
3158N/ACOMPONENT_ARCHIVE_URL = http://downloads.mysql.com/archives/mysql-5.5/$(COMPONENT_ARCHIVE)
3737N/ACOMPONENT_PROJECT_URL = http://dev.mysql.com/
3158N/ACOMPONENT_BUGDB = database/mysql
3158N/A
3158N/Ainclude ../../make-rules/prep.mk
3737N/Ainclude ../../make-rules/justmake.mk
3158N/Ainclude ../../make-rules/ips.mk
3158N/A
3158N/A# This component uses cmake to generate Makefiles and thus does not
3817N/A# run any configure script
3817N/ACMAKE = $(shell which cmake)
3817N/ACMAKE_PREFIX = /usr/mysql/5.5
3158N/ACONFDIR = /etc/mysql/5.5
3158N/ADATA_PREFIX = /var/mysql/5.5
3158N/A
3158N/ACMAKE_BINDIR.32 = bin/$(MACH32)
3158N/ACMAKE_BINDIR.64 = bin
3648N/ACMAKE_LIBDIR.32 = lib
3648N/ACMAKE_LIBDIR.64 = lib/$(MACH64)
3648N/ACMAKE_PLUGINDIR.32 = lib/plugin
3158N/ACMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
3158N/ACMAKE_CFLAGS.64 = -m64
3158N/ACMAKE_CXXFLAGS.64 = -m64
3158N/A
3158N/A# Providing component specific build options to cmake
3158N/ACMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
3158N/ACMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
3158N/ACMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
3158N/ACMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
3158N/ACMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
3158N/ACMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
3158N/ACMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
3158N/ACMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
3158N/ACMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
3158N/ACMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
3158N/ACMAKE_OPTIONS += -DWITH_SSL=bundled
3158N/ACMAKE_OPTIONS += -DWITH_READLINE=ON
3158N/ACMAKE_OPTIONS += -DENABLE_DTRACE=1
3158N/ACMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
3158N/ACMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
3158N/ACMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
3158N/ACMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
3158N/ACMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
3158N/ACMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
3158N/ACMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
3158N/ACMAKE_OPTIONS += -DCMAKE_C_FLAGS=$(CMAKE_CFLAGS.$(BITS))
3477N/ACMAKE_OPTIONS += -DCMAKE_CXX_FLAGS=$(CMAKE_CXXFLAGS.$(BITS))
3477N/ACMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
3158N/ACMAKE_OPTIONS += -DFEATURE_SET=community
3158N/A
3158N/ACOMPONENT_PRE_BUILD_ACTION += cd $(@D);
3158N/ACOMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
3158N/ACOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
3158N/ACOMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
3817N/A
3817N/Abuild: $(BUILD_32_and_64)
3817N/A
3817N/Ainstall: $(INSTALL_32_and_64)
3817N/A
3817N/Atest: $(NO_TESTS)
3817N/A
3817N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3817N/A
3817N/Ainclude ../../make-rules/depend.mk
3817N/A