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