223N/A#
223N/A# CDDL HEADER START
223N/A#
223N/A# The contents of this file are subject to the terms of the
223N/A# Common Development and Distribution License (the "License").
223N/A# You may not use this file except in compliance with the License.
223N/A#
223N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
223N/A# or http://www.opensolaris.org/os/licensing.
223N/A# See the License for the specific language governing permissions
223N/A# and limitations under the License.
223N/A#
223N/A# When distributing Covered Code, include this CDDL HEADER in each
223N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
223N/A# If applicable, add the following below this CDDL HEADER, with the
223N/A# fields enclosed by brackets "[]" replaced with your own identifying
223N/A# information: Portions Copyright [yyyy] [name of copyright owner]
223N/A#
223N/A# CDDL HEADER END
223N/A#
223N/A
223N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
223N/A#
5680N/ABUILD_BITS= 64
223N/Ainclude ../../make-rules/shared-macros.mk
223N/A
223N/ACOMPONENT_NAME= memcached
6943N/ACOMPONENT_VERSION= 1.4.25
223N/ACOMPONENT_PROJECT_URL= http://memcached.org/
844N/ACOMPONENT_ARCHIVE_HASH= \
6943N/A sha256:f058437b3c224d321919a9a6bb4e3eedb2312ed718c0caf087ff2f04ab795dda
2318N/ACOMPONENT_ARCHIVE_URL= http://memcached.org/files/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= database/memcached
223N/A
6943N/ATPNO= 31391
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
223N/A
5680N/APATH=$(USRBINDIR):$(GNUBIN):$(USRDIR)/perl5/bin
223N/A
223N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
223N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
223N/A
223N/ACOMPONENT_TEST_TARGETS= test
223N/A
223N/Astudio_OPT = -xO5
223N/A
813N/ACFLAGS += -D__ATTRIBUTE_DISABLED
813N/A
5680N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/lib
5680N/ACONFIGURE_OPTIONS.64 += --with-libevent=$(USRLIBDIR64)
2489N/A# The below works around a bug in configure/configure.ac that sets
2489N/A# an incorrect runpath.
2489N/A# Setting ac_cv_libevent bypasses libevent checks in configure,
2489N/A# including setting the runpath (-R), which is currently ok
2489N/A# because libevent is in a default library directory.
2489N/ACONFIGURE_OPTIONS.64 += "ac_cv_libevent_dir=/usr/lib/$(MACH64)"
223N/ACONFIGURE_OPTIONS += --enable-dtrace --disable-docs --disable-coverage
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
223N/A
6943N/A# lru-maintainer.t is inconsistent and usually fails.
6943N/A
4326N/A# Transforms remove unnecessary text from results
4326N/ACOMPONENT_TEST_TRANSFORMS += \
4326N/A '-e "s|\(failed to listen on TCP port \).*|\1|" ' \
4326N/A '-e "s|\(Tests=6851\).*|\1|" '\
4326N/A '-e "/\(slab class\).*/d" ' \
4326N/A '-e "/\(<\).*/d" '
4326N/A
3817N/AREQUIRED_PACKAGES += library/libevent
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/network