Makefile revision 5835
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# CDDL HEADER START
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# The contents of this file are subject to the terms of the
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# Common Development and Distribution License (the "License").
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You may not use this file except in compliance with the License.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# or http://www.opensolaris.org/os/licensing.
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# See the License for the specific language governing permissions
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# CDDL HEADER END
f202f2587b9ba4753afba49b796f599cc12b4d0fAndreas Gustafsson# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:6ac85b75b2dfa8c232725dda25469df37bf4e48b408cc0978d0dfc34c25a817f
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_ARCHIVE_URL = http://cdn.mysql.com/Downloads/MySQL-5.6/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#We use cp(1) instead of cloney because we use TAR to copy files and the TAR
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#used doesn't handle long links
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsCOMPONENT_PRE_BUILD_ACTION += $(CP) -rp $(SOURCE_DIR)/* $(@D);
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Enable ASLR for this component
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# MySQL being one of Oracle's own product doesn't require to have a
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# TPNO License number.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This component uses cmake to generate Makefiles and thus does not
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# run any configure script
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Providing component specific build options to cmake
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DHAVE_REAL_DTRACE_INSTRUMENTING=ON
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DCMAKE_C_FLAGS="$(CMAKE_CFLAGS.$(BITS))"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DCMAKE_CXX_FLAGS="$(CMAKE_CXXFLAGS.$(BITS))"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Adjust '#!/usr/bin/perl'
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_convert_table_format \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_find_rows \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_fix_extensions \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_install_db \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_secure_installation \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysql_setpermission \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein $(PROTO_DIR)/$(CMAKE_PREFIX)/bin/mysqldumpslow \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime