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