Makefile revision 3996
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/Ainclude ../../make-rules/shared-macros.mk
2N/A
2N/ACOMPONENT_NAME= mysql
26N/ACOMPONENT_VERSION= 5.1.37
26N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
26N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26N/ACOMPONENT_ARCHIVE_HASH= \
26N/A sha256:6a4596462d4447a79a0ad607ea1475ba0599651e2d82305a7f7dade038827f0c
2N/ACOMPONENT_ARCHIVE_URL= http://downloads.mysql.com/archives/mysql-5.1/$(COMPONENT_ARCHIVE)
2N/ACOMPONENT_PROJECT_URL= http://dev.mysql.com/
6N/ACOMPONENT_BUGDB= database/mysql
2N/A
2N/Ainclude $(WS_MAKE_RULES)/prep.mk
2N/Ainclude $(WS_MAKE_RULES)/configure.mk
2N/Ainclude $(WS_MAKE_RULES)/ips.mk
2N/A
2N/APATCH_LEVEL=0
2N/A
12N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2N/A ( cd $(COMPONENT_SRC) ; \
16N/A $(TOUCH) configure.in config/ac-macros/* ; sleep 5 ; \
16N/A $(TOUCH) aclocal.m4 config.h.in ; sleep 5 ; \
16N/A $(TOUCH) configure ; sleep 5 ; \
16N/A /usr/bin/find . -name Makefile.in | /usr/bin/xargs $(TOUCH) ; \
16N/A /usr/bin/find . -type d -exec $(CHMOD) 755 "{}" \; ; \
16N/A /usr/bin/find . -type f -exec $(CHMOD) ugo+r "{}" \; ; \
6N/A )
12N/A
12N/ACONFIGURE_PREFIX=/usr/mysql/5.1
12N/ACONFDIR=/etc/mysql/5.1
12N/ADATA_PREFIX=/var/mysql/5.1
12N/ACONFIGURE_MANDIR=$(CONFIGURE_PREFIX)/man
12N/A
12N/A# Although -norunpath is set in CXXFLAGS, we need to append
12N/A# the -norunpath option here, so it's picked up when building
12N/A# shared libraries (CC -G)
12N/ACXX += $(studio_NORUNPATH)
12N/A
12N/A# C common compiler flags
12N/ACFLAGS += -xstrconst -xprefetch=auto -xprefetch_level=3 -fns=no -fsimple=1 -xbuiltin=%none \
12N/A-xlibmil -xlibmopt -xnorunpath
12N/A
12N/A# C++ common compiler flags
12N/ACXXFLAGS += -DDBUG_OFF -noex -DBIG_TABLES -DHAVE_RWLOCK_T $(CC_PIC) $($(COMPILER)_opt) \
12N/A$($(COMPILER)_MT) -xprefetch=auto -xprefetch_level=3 -fns=no -fsimple=1 -xbuiltin=%none \
2N/A-xlibmil -xlibmopt
2N/A
2N/A#build environment common to both 32 & 64bit builds
2N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
2N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
2N/A
2N/A# build environment applicable to only 32bit
2N/ACOMPONENT_BUILD_ENV.32 += CXXFLAGS="$(CXXFLAGS)"
2N/A
2N/A#build environment applicable to only 64bit
2N/ACOMPONENT_BUILD_ENV.64 += CXXFLAGS="$(CXXFLAGS) -features=no%except"
2N/A
2N/A#common configure options for both 32 & 64bits
2N/ACONFIGURE_OPTIONS += ac_cv_func_stpcpy=no
2N/ACONFIGURE_OPTIONS += --localstatedir=$(DATA_PREFIX)/data
2N/ACONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
2N/ACONFIGURE_OPTIONS += --sharedstatedir=$(CONFIGURE_PREFIX)/com
2N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include
2N/ACONFIGURE_OPTIONS += --oldincludedir=$(CONFIGURE_PREFIX)/include
16N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/docs
16N/ACONFIGURE_OPTIONS += --sysconfdir=$(CONFDIR)
2N/ACONFIGURE_OPTIONS += --enable-thread-safe-client
2N/ACONFIGURE_OPTIONS += --with-mysqld-libs=-lmtmalloc
2N/ACONFIGURE_OPTIONS += --with-client-ldflags=-static
2N/ACONFIGURE_OPTIONS += --with-mysqld-ldflags=-static
2N/ACONFIGURE_OPTIONS += --with-pic
2N/ACONFIGURE_OPTIONS += --with-big-tables
2N/ACONFIGURE_OPTIONS += --with-ssl
2N/ACONFIGURE_OPTIONS += --with-readline
2N/ACONFIGURE_OPTIONS += --with-extra-charsets=complex
2N/ACONFIGURE_OPTIONS += --with-plugins=archive,blackhole,csv,myisam,example,federated,innobase,myisammrg
2N/ACONFIGURE_OPTIONS += --enable-local-infile
2N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
2N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
2N/ACONFIGURE_OPTIONS += studio_NORUNPATH="$(studio_NORUNPATH)"
2N/A
2N/ACONFIGURE_OPTIONS.32 += --libexecdir=$(CONFIGURE_PREFIX)/bin
2N/ACONFIGURE_OPTIONS.32 += --enable-dtrace DTRACEFLAGS='-32'
7N/A
16N/ACONFIGURE_OPTIONS.64 += --libexecdir=$(CONFIGURE_PREFIX)/bin/$(MACH64)
CONFIGURE_OPTIONS.64 += --enable-dtrace DTRACEFLAGS='-64'
# Do not apply the standard licence transforms for this component.
LICENSE_TRANSFORMS =
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
REQUIRED_PACKAGES += database/mysql-51
REQUIRED_PACKAGES += library/ncurses
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/perl-512
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/c++-runtime
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/linker
REQUIRED_PACKAGES += system/network