components/mysql-5-5/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 15 May 2014 16:58:20 -0700
changeset 1898 5c902a3c6e7e
parent 1541 b62d499c009a
child 1950 16c7750a701f
permissions -rw-r--r--
18744156 /usr/gnu/bin/chroot is killed when executed with an invalid command argument
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1541
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     1
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     3
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     7
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    12
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    18
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    20
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    22
#
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    24
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME        = mysql
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION     = 5.5.31
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC         = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE     = $(COMPONENT_SRC).tar.gz
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH= \
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    30
    sha256:9cdd650b47e3ea864ab40d4ab23fa4a9fdfabc7fd018bf5c9cce30722c0abcea
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_URL = http://downloads.mysql.com/archives/mysql-5.5/$(COMPONENT_ARCHIVE)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL = http://dev.mysql.com/ 
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB       = database/mysql
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    34
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/prep.mk
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/justmake.mk
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    37
include ../../make-rules/ips.mk
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    38
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    39
# Enable ASLR for this component
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    40
ASLR_MODE           = $(ASLR_ENABLE)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    41
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    42
# This component uses cmake to generate Makefiles and thus does not
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    43
# run any configure script
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    44
CMAKE               = $(shell which cmake)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    45
CMAKE_PREFIX        = /usr/mysql/5.5
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    46
CONFDIR             = /etc/mysql/5.5
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    47
DATA_PREFIX         = /var/mysql/5.5
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    48
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    49
CMAKE_BINDIR.32     = bin/$(MACH32)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    50
CMAKE_BINDIR.64     = bin
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    51
CMAKE_LIBDIR.32     = lib
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    52
CMAKE_LIBDIR.64     = lib/$(MACH64)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    53
CMAKE_PLUGINDIR.32  = lib/plugin
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    54
CMAKE_PLUGINDIR.64  = lib/$(MACH64)/plugin
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    55
CMAKE_CFLAGS.64     = -m64
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    56
CMAKE_CXXFLAGS.64   = -m64
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    57
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    58
# Providing component specific build options to cmake
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    59
CMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    60
CMAKE_OPTIONS += -DINSTALL_LAYOUT=STANDALONE
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    61
CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    62
CMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    63
CMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    64
CMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    65
CMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    66
CMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    67
CMAKE_OPTIONS += -DSYSCONFDIR=$(CONFDIR)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    68
CMAKE_OPTIONS += -DMYSQL_DATADIR=$(DATA_PREFIX)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    69
CMAKE_OPTIONS += -DWITH_SSL=bundled
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    70
CMAKE_OPTIONS += -DWITH_READLINE=ON
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    71
CMAKE_OPTIONS += -DENABLE_DTRACE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    72
CMAKE_OPTIONS += -DWITH_EXTRA_CHARSETS=complex
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    73
CMAKE_OPTIONS += -DENABLED_LOCAL_INFILE=ON
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    74
CMAKE_OPTIONS += -DWITH_ARCHIVE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    75
CMAKE_OPTIONS += -DWITH_BLACKHOLE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    76
CMAKE_OPTIONS += -DWITH_EXAMPLE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    77
CMAKE_OPTIONS += -DWITH_FEDERATED_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    78
CMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    79
CMAKE_OPTIONS += -DCMAKE_C_FLAGS=$(CMAKE_CFLAGS.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    80
CMAKE_OPTIONS += -DCMAKE_CXX_FLAGS=$(CMAKE_CXXFLAGS.$(BITS))
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    81
CMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    82
CMAKE_OPTIONS += -DFEATURE_SET=community
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    83
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    84
COMPONENT_PRE_BUILD_ACTION += cd $(@D);
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    85
COMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    86
COMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    87
COMPONENT_PRE_BUILD_ACTION += $(CMAKE) . $(CMAKE_OPTIONS);
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    88
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    89
build: $(BUILD_32_and_64)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    90
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    91
install: $(INSTALL_32_and_64)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    92
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    93
test: $(NO_TESTS)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    94
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    95
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    96
b62d499c009a PSARC 2013/333 Update MySQL to 5.5; EOF MySQL 5.1
Akhil Mohan <akhil.mohan@oracle.com>
parents:
diff changeset
    97
include ../../make-rules/depend.mk