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