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