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