Makefile revision 5680
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
358N/Ainclude ../../make-rules/shared-macros.mk
358N/A
358N/ACOMPONENT_NAME= libmemcached
358N/ACOMPONENT_VERSION= 0.16
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:d4fb3a64dc592c104caa4e98bc11f209fcb97eecdeb7f506797320dea75b9459
358N/ACOMPONENT_ARCHIVE_URL= http://launchpadlibrarian.net/33299595/${COMPONENT_ARCHIVE}
358N/ACOMPONENT_PROJECT_URL= http://libmemcached.org/libMemcached.html
1258N/ACOMPONENT_BUGDB= database/memcached
358N/A
2899N/ATPNO= 5582
2899N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
358N/A
358N/ACFLAGS += -xstrconst
5680N/A
5680N/Aifeq ($(OS_VERSION),5.11)
358N/ALDFLAGS += -lsocket -lnsl
5680N/Aendif
358N/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
5052N/ACOMPONENT_TEST_DIR = $(@D)/tests
358N/ACOMPONENT_TEST_TARGETS = test
5052N/ACOMPONENT_TEST_TRANSFORMS += \
5052N/A '-e "s|\(bash: line 1:\).*|\1|" ' \
5052N/A '-e "s|\(Testing \)\(.*\)\([0-9].[0-9][0-9][0-9]\)\(.*$$\)|\1\2\4|" ' \
5052N/A '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
5052N/A '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
5052N/A '-e "/^XXX_REMOVE_XXX$$/d" '
358N/A
358N/A# Tests fail, probably because memcached is not running.