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