Makefile revision 6302
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You may not use this file except in compliance with the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# See the License for the specific language governing permissions
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# and limitations under the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# If applicable, add the following below this CDDL HEADER, with the
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_HASH= sha256:9ed6615a8503964290471e98ed363f3975b964a34c2d4610fb815a432aadaf59
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# The documentation is in a separate download
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_SRC_DOC= $(COMPONENT_NAME)-doc-$(COMPONENT_VERSION)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_DOC= $(COMPONENT_SRC_DOC).tar.gz
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_HASH_DOC= sha256:3462402165a3ff34ceff23db20382a14bd3727131994f140a004f4872a01c12a
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_URL_DOC= $(COMPONENT_PROJECT_URL)files/download/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_DOC)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# There are tests, but gmake test is currently broken.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# It was working in the previous version, but not sure why
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# it breaks now. Leaving it at no tests for now.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Automake fix, regenerates configure file to get rid of the
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# automake 'probably too old' error. This fixes gmake test
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# needing more than one try to run. This does not fix the
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina# fact that gmake test runs no tests.
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav KozinaCOMPONENT_PRE_CONFIGURE_ACTION= cd $(SOURCE_DIR); \
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# gmake test will generate different outputs if run multiple
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# times. This gets rid of all the unimportant output
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_TEST_TRANSFORMS += '-e "/\(make\).*/d" '
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_TEST_TRANSFORMS += '-e "/\(source\).*/d" '
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_TEST_TRANSFORMS += '-e "/\(check\).*/d" '
3b0448fdd830b8d04c6a71511e5d26a4fc3b5b80Lubos KoscoCOMPONENT_TEST_TRANSFORMS += '-e "/\(SOURCE_DIR\).*/d" '
cd348e325366620fe047edcc849e3c9424828599Peter Bray# This is needed for things to be built correctly.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# A normal 64-bit build would result in /usr/lib/$(MACH64)/rsyslog but since we
43dac746513591adbd09bc4f417feb385f4fd87eVladimir Kotal# have a self-contained eco-system, simplify things for customers and just use
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# Rsyslog sources contain __FILE__ macros which contain full path to the workspace
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# This may appear in debug output which is not nice. By specifying the source
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# path relative we force the macro to be relative path too.
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos KoscoCONFIGURE_OPTIONS += --srcdir=../../$(COMPONENT_NAME)-$(COMPONENT_VERSION)
cd348e325366620fe047edcc849e3c9424828599Peter BrayCONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/rsyslog
cd348e325366620fe047edcc849e3c9424828599Peter Bray# libgcrypt is not approved.
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosco# There are man pages in the tarball, which will require modification for
43dac746513591adbd09bc4f417feb385f4fd87eVladimir Kotal# content. Also, building them from here requires python-docutils.
43dac746513591adbd09bc4f417feb385f4fd87eVladimir KotalCONFIGURE_OPTIONS += --disable-generate-man-pages
43dac746513591adbd09bc4f417feb385f4fd87eVladimir Kotal# Make the build verbose, show executed commands
43dac746513591adbd09bc4f417feb385f4fd87eVladimir KotalCOMPONENT_BUILD_ARGS += AM_DEFAULT_VERBOSITY=1
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco# common targets
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayPROTODOCDIR= $(PROTOUSRSHAREDOCDIR)/$(COMPONENT_NAME)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# Docs to install are the tree under docs/build with some exceptions.