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