Makefile revision 2321
749N/A#
749N/A# CDDL HEADER START
749N/A#
749N/A# The contents of this file are subject to the terms of the
749N/A# Common Development and Distribution License (the "License").
749N/A# You may not use this file except in compliance with the License.
749N/A#
749N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
749N/A# or http://www.opensolaris.org/os/licensing.
749N/A# See the License for the specific language governing permissions
749N/A# and limitations under the License.
749N/A#
749N/A# When distributing Covered Code, include this CDDL HEADER in each
749N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
749N/A# If applicable, add the following below this CDDL HEADER, with the
749N/A# fields enclosed by brackets "[]" replaced with your own identifying
749N/A# information: Portions Copyright [yyyy] [name of copyright owner]
749N/A#
749N/A# CDDL HEADER END
749N/A
749N/A#
749N/A# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
749N/A#
749N/A
749N/Ainclude ../../make-rules/shared-macros.mk
749N/A
749N/ACOMPONENT_NAME= openscap
749N/ACOMPONENT_VERSION= 0.9.7
749N/ACOMPONENT_PROJECT_URL= http://www.open-scap.org
749N/ACOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
749N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
749N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
749N/ACOMPONENT_ARCHIVE_HASH= sha256:0d9ae804026d69e60d44e27cf489e65dd1c2865895cde2cb174ff90fd7868a6a
749N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
749N/ACOMPONENT_BUGDB= utility/openscap
749N/A
749N/ACOMPILER = gcc
749N/ACFLAGS+= -std=c99
749N/ACFLAGS+= -DNDEBUG
749N/A
749N/Ainclude $(WS_TOP)/make-rules/prep.mk
749N/Ainclude $(WS_TOP)/make-rules/configure.mk
749N/Ainclude $(WS_TOP)/make-rules/ips.mk
749N/A
749N/ACPPFLAGS += -I/usr/include/openldap
749N/A
749N/A#Need to do cloney, so that the schema files
749N/A#can get packaged.
749N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
749N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
749N/A
749N/A# Perl related patch needs configure script recreation.
749N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
749N/A
749N/A# Needed to make "gmake test" work.
749N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
749N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
749N/ACPPFLAGS += -I/usr/include/pcre
749N/A
749N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
749N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
749N/ACONFIGURE_OPTIONS += --enable-debug=no
749N/ACONFIGURE_OPTIONS += --enable-sce=yes
749N/ACONFIGURE_OPTIONS += --enable-perl=yes
749N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
749N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
749N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
CONFIGURE_OPTIONS += LIBS="-lldap_r -lscf -ldlpi -lsec"
CONFIGURE_OPTIONS += --with-report-branding="/usr/share/lib/xml/style/os-logo.xsl"
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk