Makefile revision 5547
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER START
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# The contents of this file are subject to the terms of the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Common Development and Distribution License (the "License").
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You may not use this file except in compliance with the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
199767f8919635c4928607450d9e0abb932109ceToomas Soome# or http://www.opensolaris.org/os/licensing.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# See the License for the specific language governing permissions
199767f8919635c4928607450d9e0abb932109ceToomas Soome# and limitations under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
199767f8919635c4928607450d9e0abb932109ceToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If applicable, add the following below this CDDL HEADER, with the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
199767f8919635c4928607450d9e0abb932109ceToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER END
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../make-rules/shared-macros.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_NAME= mlocate
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_VERSION= 0.26
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_PROJECT_URL= https://fedorahosted.org/mlocate
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE_HASH= \
199767f8919635c4928607450d9e0abb932109ceToomas Soome sha256:3063df79fe198fb9618e180c54baf3105b33d88fe602ff2d8570aaf944f1263e
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE_URL= https://fedorahosted.org/releases/m/l/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_BUGDB= utility/mlocate
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeTPNO= 27159
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(WS_MAKE_RULES)/prep.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(WS_MAKE_RULES)/configure.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(WS_MAKE_RULES)/ips.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS.64 += CC="$(CC) -m64"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --localstatedir="/var/cache"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCONFIGURE_OPTIONS += --sysconfdir="/etc"
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_POST_INSTALL_ACTION= \
199767f8919635c4928607450d9e0abb932109ceToomas Soome @$(MKDIR) -p $(PROTO_DIR)/etc/; \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(CP) files/updatedb.conf $(PROTO_DIR)/etc/
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_TEST_TRANSFORMS += \
199767f8919635c4928607450d9e0abb932109ceToomas Soome '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
199767f8919635c4928607450d9e0abb932109ceToomas Soome '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
199767f8919635c4928607450d9e0abb932109ceToomas Soome '-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \
199767f8919635c4928607450d9e0abb932109ceToomas Soome '-e "s|^/usr/gnu/bin/make.*$$|XXX_REMOVE_XXX|g" ' \
199767f8919635c4928607450d9e0abb932109ceToomas Soome '-e "/^XXX_REMOVE_XXX$$/d" '
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Test 41 needs to be able to open at least 950 fds. Bump up the limit.
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_TEST_ENV_CMD = ulimit -n 1000; env
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Need /usr/gnu/bin before /usr/bin for GNU diff.
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_TEST_ENV += PATH="$(@D)/src:$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)"
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_TEST_CMD = $(SOURCE_DIR)/tests/testsuite
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_TEST_TARGETS =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SYSTEM_TEST_ENV_CMD = ulimit -n 1000; env
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SYSTEM_TEST_ENV += PATH="$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SYSTEM_TEST_CMD = $(SHELL) $(SOURCE_DIR)/tests/testsuite
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SYSTEM_TEST_ARGS = AUTOTEST_PATH=$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SYSTEM_TEST_TARGETS =
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeASLR_MODE = $(ASLR_ENABLE)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeconfigure: $(CONFIGURE_64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomebuild: $(BUILD_64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinstall: $(INSTALL_64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soometest: $(TEST_64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomesystem-test: configure $(SYSTEM_TEST_64)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeREQUIRED_PACKAGES += system/library
199767f8919635c4928607450d9e0abb932109ceToomas Soome