Makefile revision 5052
553f11a8f542196fd02498006338dd33c64045c3fuankg# CDDL HEADER START
553f11a8f542196fd02498006338dd33c64045c3fuankg# The contents of this file are subject to the terms of the
553f11a8f542196fd02498006338dd33c64045c3fuankg# Common Development and Distribution License (the "License").
553f11a8f542196fd02498006338dd33c64045c3fuankg# You may not use this file except in compliance with the License.
553f11a8f542196fd02498006338dd33c64045c3fuankg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
553f11a8f542196fd02498006338dd33c64045c3fuankg# See the License for the specific language governing permissions
553f11a8f542196fd02498006338dd33c64045c3fuankg# and limitations under the License.
553f11a8f542196fd02498006338dd33c64045c3fuankg# When distributing Covered Code, include this CDDL HEADER in each
553f11a8f542196fd02498006338dd33c64045c3fuankg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
553f11a8f542196fd02498006338dd33c64045c3fuankg# If applicable, add the following below this CDDL HEADER, with the
553f11a8f542196fd02498006338dd33c64045c3fuankg# fields enclosed by brackets "[]" replaced with your own identifying
553f11a8f542196fd02498006338dd33c64045c3fuankg# information: Portions Copyright [yyyy] [name of copyright owner]
553f11a8f542196fd02498006338dd33c64045c3fuankg# CDDL HEADER END
553f11a8f542196fd02498006338dd33c64045c3fuankg# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
553f11a8f542196fd02498006338dd33c64045c3fuankg sha256:d4fb3a64dc592c104caa4e98bc11f209fcb97eecdeb7f506797320dea75b9459
553f11a8f542196fd02498006338dd33c64045c3fuankgCOMPONENT_ARCHIVE_URL= http://launchpadlibrarian.net/33299595/${COMPONENT_ARCHIVE}
553f11a8f542196fd02498006338dd33c64045c3fuankgCOMPONENT_PROJECT_URL= http://libmemcached.org/libMemcached.html
553f11a8f542196fd02498006338dd33c64045c3fuankgCONFIGURE_OPTIONS += --includedir=$(CONFIGURE_INCLUDEDIR)
553f11a8f542196fd02498006338dd33c64045c3fuankg# need some files in $(SOURCE_DIR)/docs during build
553f11a8f542196fd02498006338dd33c64045c3fuankg# need /usr/perl5/bin on path to access pod2man perl script, used by
553f11a8f542196fd02498006338dd33c64045c3fuankg# the build to create docs
553f11a8f542196fd02498006338dd33c64045c3fuankg# Libmemcached's configure script sets an incorrect CFLAGS in the Makefiles
553f11a8f542196fd02498006338dd33c64045c3fuankg# it generates. Make sure we use the correct one by passing CFLAGS in
553f11a8f542196fd02498006338dd33c64045c3fuankg# as a build argument (CFLAGS in the environment won't take precedence
553f11a8f542196fd02498006338dd33c64045c3fuankg# over the Makefile one).
553f11a8f542196fd02498006338dd33c64045c3fuankg# Similarly, set pkglibdir in the arguments to gmake; otherwise
553f11a8f542196fd02498006338dd33c64045c3fuankg# the Makefile sets runpath to a non-existent /usr/lib/libmemcached directory.
553f11a8f542196fd02498006338dd33c64045c3fuankg '-e "s|\(bash: line 1:\).*|\1|" ' \
553f11a8f542196fd02498006338dd33c64045c3fuankg '-e "s|\(Testing \)\(.*\)\([0-9].[0-9][0-9][0-9]\)\(.*$$\)|\1\2\4|" ' \
553f11a8f542196fd02498006338dd33c64045c3fuankg '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
553f11a8f542196fd02498006338dd33c64045c3fuankg '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
553f11a8f542196fd02498006338dd33c64045c3fuankg '-e "/^XXX_REMOVE_XXX$$/d" '
553f11a8f542196fd02498006338dd33c64045c3fuankg# Tests fail, probably because memcached is not running.