Makefile revision 7278
52N/A#
52N/A# CDDL HEADER START
292N/A#
52N/A# The contents of this file are subject to the terms of the
52N/A# Common Development and Distribution License (the "License").
327N/A# You may not use this file except in compliance with the License.
52N/A#
52N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
52N/A# or http://www.opensolaris.org/os/licensing.
52N/A# See the License for the specific language governing permissions
292N/A# and limitations under the License.
292N/A#
292N/A# When distributing Covered Code, include this CDDL HEADER in each
292N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52N/A# If applicable, add the following below this CDDL HEADER, with the
52N/A# fields enclosed by brackets "[]" replaced with your own identifying
52N/A# information: Portions Copyright [yyyy] [name of copyright owner]
292N/A#
292N/A# CDDL HEADER END
292N/A
292N/A#
292N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
292N/A#
292N/ABUILD_BITS= 64_and_32
292N/ACOMPILER=gcc
292N/Ainclude ../../make-rules/shared-macros.mk
292N/A
292N/ACOMPONENT_NAME= libmemcached
52N/ACOMPONENT_VERSION= 1.0.18
52N/ACOMPONENT_ARCHIVE_HASH= \
52N/A sha256:e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
52N/ACOMPONENT_ARCHIVE_URL= https://launchpad.net/libmemcached/1.0/${COMPONENT_VERSION}/+download/libmemcached-${COMPONENT_VERSION}.tar.gz
52N/ACOMPONENT_PROJECT_URL= http://libmemcached.org/libMemcached.html
52N/ACOMPONENT_BUGDB= database/memcached
52N/A
52N/ATPNO= 31699
52N/A
52N/Ainclude $(WS_MAKE_RULES)/common.mk
52N/A
52N/Aifeq ($(OS_VERSION),5.11)
292N/ALDFLAGS += -lsocket -lnsl
52N/ACONFIGURE_OPTIONS += ax_cv_check_cflags__Werror__fPIE=no
52N/ACONFIGURE_OPTIONS += ax_cv_check_cflags__Werror__pie=no
6N/ACONFIGURE_OPTIONS += ax_cv_check_cxxflags__Werror__fPIE=no
6N/ACONFIGURE_OPTIONS += ax_cv_check_cxxflags__Werror__pie=no
6N/Aendif
6N/A
6N/A# Include _SOLARIS_ flag for byteorder.h.patch's ifdef to work
15N/ACFLAGS+= -D_SOLARIS_
6N/ACXXFLAGS+= -D_SOLARIS_
6N/A
325N/ACONFIGURE_ENV += MAKE=$(GMAKE)
6N/A
15N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)
302N/A
6N/A# need some files in $(SOURCE_DIR)/docs during build
6N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
6N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
6N/A
6N/A# need /usr/perl5/bin on path to access pod2man perl script, used by
6N/A# the build to create docs
6N/ACOMPONENT_BUILD_ENV += PATH=/usr/perl5/bin:$(PATH)
6N/A
6N/ACOMPONENT_BUILD_ENV += MAKE="$(GMAKE)"
6N/A
15N/A# Libmemcached's configure script sets an incorrect CFLAGS in the Makefiles
6N/A# it generates. Make sure we use the correct one by passing CFLAGS in
6N/A# as a build argument (CFLAGS in the environment won't take precedence
6N/A# over the Makefile one).
6N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
6N/A
6N/A# Similarly, set pkglibdir in the arguments to gmake; otherwise
302N/A# the Makefile sets runpath to a non-existent /usr/lib/libmemcached directory.
302N/ACOMPONENT_BUILD_ARGS += pkglibdir=$(USRLIBDIR)
6N/A
6N/ACOMPONENT_INSTALL_ENV += DESTDIR=$(PROTO_DIR)
6N/A
325N/ACOMPONENT_TEST_ARGS += -k -i
121N/ACOMPONENT_TEST_TARGETS = test
325N/ACOMPONENT_TEST_TRANSFORMS += \
6N/A '-n ' \
6N/A '-e "/SKIP/p" ' \
15N/A '-e "/PASS/p" ' \
15N/A '-e "/FAIL/p" ' \
15N/A '-e "/ERROR/p" ' \
15N/A '-e "/TOTAL/p" '
15N/A
15N/A# Master test results are the same for both 32-bit and 64-bit, so override
15N/A# here, rather than create multiple identical master files.
15N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
15N/A
15N/A# To prevent "libtool_install_magic: unbound variable"
302N/Aunexport SHELLOPTS
302N/A
302N/A# Tests fail, probably because memcached is not running.
44N/A# XFAILS are due to servers or arguments not being provided.
44N/A
44N/AREQUIRED_PACKAGES += developer/gcc
191N/AREQUIRED_PACKAGES += system/library
191N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime
191N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
191N/AREQUIRED_PACKAGES += system/library/math
191N/AREQUIRED_PACKAGES += system/library/security/libsasl2
191N/A