0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna#
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# CDDL HEADER START
55b585a80949b1740ebf8d94ad154b2a4c3a8a81nd#
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# The contents of this file are subject to the terms of the
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# Common Development and Distribution License (the "License").
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# You may not use this file except in compliance with the License.
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna#
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# or http://www.opensolaris.org/os/licensing.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# See the License for the specific language governing permissions
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# and limitations under the License.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# When distributing Covered Code, include this CDDL HEADER in each
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52fff662005b1866a3ff09bb6c902800c5cc6dedjerenkrantz# If applicable, add the following below this CDDL HEADER, with the
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# fields enclosed by brackets "[]" replaced with your own identifying
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# information: Portions Copyright [yyyy] [name of copyright owner]
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim# CDDL HEADER END
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna#
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
1c8f2418892d98febb00a06b9a4f45f8bcfd80a3nd#
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaBUILD_BITS= 64_and_32
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaexport PARFAIT_BUILD=no
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernainclude ../../make-rules/shared-macros.mk
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCOMPONENT_NAME = mysql
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCOMPONENT_VERSION = 5.5.49
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCOMPONENT_ARCHIVE_HASH= \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim sha256:cd9ca49b01a76bca635f2888b9d4d30fa6583dd198994d407cdd0dd7170e9e1f
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.5/$(COMPONENT_ARCHIVE)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCOMPONENT_PROJECT_URL = http://dev.mysql.com/
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCOMPONENT_BUGDB = database/mysql
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim#We use cp(1) instead of cloney because we use TAR to copy files and the TAR
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna#used doesn't handle long links
55b585a80949b1740ebf8d94ad154b2a4c3a8a81ndCLONEY = echo
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCOMPONENT_PRE_BUILD_ACTION += $(CP) -rp $(SOURCE_DIR)/* $(@D);
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaBUILD_STYLE= cmake
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaTEST_TARGET= $(NO_TESTS)
f7b6dbf2e1e9170838431e4f15699cc117a17d94ndinclude $(WS_MAKE_RULES)/common.mk
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
5c3c22e3324f26848c1782e711c24faf28136012jerenkrantz# This component uses cmake to generate Makefiles and thus does not
5c3c22e3324f26848c1782e711c24faf28136012jerenkrantz# run any configure script
5c3c22e3324f26848c1782e711c24faf28136012jerenkrantzCMAKE_PREFIX = $(USRDIR)/mysql/5.5
5c3c22e3324f26848c1782e711c24faf28136012jerenkrantzCONFDIR = $(ETCDIR)/mysql/5.5
5c3c22e3324f26848c1782e711c24faf28136012jerenkrantzDATA_PREFIX = $(VARDIR)/mysql/5.5
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCMAKE_BINDIR.32 = bin/$(MACH32)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_BINDIR.64 = bin
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_LIBDIR.32 = lib
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_LIBDIR.64 = lib/$(MACH64)
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_PLUGINDIR.32 = lib/plugin
9bcfc3697a91b5215893a7d0206865b13fc72148ndCMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna
5383fa753e1bcd3a04ec34ba9810d671302380f2colm# Providing component specific build options to cmake
5383fa753e1bcd3a04ec34ba9810d671302380f2colmCMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
1acae7fb634ac2b01682507175e072b168995e0dcolmCMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
1acae7fb634ac2b01682507175e072b168995e0dcolmCMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
1acae7fb634ac2b01682507175e072b168995e0dcolmCMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
5383fa753e1bcd3a04ec34ba9810d671302380f2colmCMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
b09705acacab4c960c608c71377aa3ec2bf9e8a1colmCMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
2a869ee6594f1e3e9039af332cd73f939509483acolmCMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
b09705acacab4c960c608c71377aa3ec2bf9e8a1colmCMAKE_OPTIONS += -DWITH_SSL=bundled
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DWITH_READLINE=ON
b09705acacab4c960c608c71377aa3ec2bf9e8a1colmCMAKE_OPTIONS += -DENABLE_DTRACE=1
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
b09705acacab4c960c608c71377aa3ec2bf9e8a1colmCMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
b09705acacab4c960c608c71377aa3ec2bf9e8a1colmCMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
7add1372edb1ee95a2c4d1314df4c7567bda7c62jimCMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCMAKE_OPTIONS += -DFEATURE_SET=community
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaCMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
6b797d6bd26bbf8589eb0e2b6cfa2fa808f456b1pquerna
f9616f83476fe7a18173b677f237126e6301e18fjorton# Adjust '#!/usr/bin/perl'
6b797d6bd26bbf8589eb0e2b6cfa2fa808f456b1pquerna$(INSTALL_64): PERL_SCRIPTS= \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_convert_table_format \
20189240503ef2c8f5dc6e2248b57faab4b23b5and $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_find_rows \
20189240503ef2c8f5dc6e2248b57faab4b23b5and $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_fix_extensions \
6b797d6bd26bbf8589eb0e2b6cfa2fa808f456b1pquerna $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_setpermission \
8bb7126c063c34d63966733988411f72dfcb2294maczniak $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_zap \
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqlaccess \
8bb7126c063c34d63966733988411f72dfcb2294maczniak $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqld_multi \
8bb7126c063c34d63966733988411f72dfcb2294maczniak $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqldumpslow \
8bb7126c063c34d63966733988411f72dfcb2294maczniak $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqlhotcopy
8bb7126c063c34d63966733988411f72dfcb2294maczniak
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquernaREQUIRED_PACKAGES += library/security/openssl
f9616f83476fe7a18173b677f237126e6301e18fjortonREQUIRED_PACKAGES += $(PERL_PKG)
f9616f83476fe7a18173b677f237126e6301e18fjortonREQUIRED_PACKAGES += shell/ksh93
1acae7fb634ac2b01682507175e072b168995e0dcolmREQUIRED_PACKAGES += system/core-os
1acae7fb634ac2b01682507175e072b168995e0dcolmREQUIRED_PACKAGES += system/library/c++-runtime
f9616f83476fe7a18173b677f237126e6301e18fjortonREQUIRED_PACKAGES += system/library/math
f9616f83476fe7a18173b677f237126e6301e18fjortonREQUIRED_PACKAGES += system/network
7fa75a06a4fee19e995c069ee00310455d1452e1pquerna