components/openscap/Makefile
changeset 848 0c3d865471c8
child 1058 34d7aaa03423
equal deleted inserted replaced
847:4ae04177ffa1 848:0c3d865471c8
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 
       
    21 #
       
    22 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
       
    23 #
       
    24 
       
    25 include ../../make-rules/shared-macros.mk
       
    26 
       
    27 COMPONENT_NAME=		openscap
       
    28 COMPONENT_VERSION=	0.8.1
       
    29 COMPONENT_PROJECT_URL=  http://www.open-scap.org/
       
    30 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc
       
    33 COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
       
    34 
       
    35 COMPILER=		gcc
       
    36 CFLAGS+=		-std=c99 -DNDEBUG
       
    37 
       
    38 include $(WS_TOP)/make-rules/prep.mk
       
    39 include $(WS_TOP)/make-rules/configure.mk
       
    40 include $(WS_TOP)/make-rules/ips.mk
       
    41 
       
    42 CPPFLAGS +=	"-I/usr/include/openldap"
       
    43 
       
    44 # Perl related patch needs configure script recreation.
       
    45 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
       
    46 
       
    47 # Needed to make "gmake test" work.
       
    48 CPPFLAGS +=	"-I$(SOURCE_DIR)/src/OVAL"
       
    49 CPPFLAGS +=	"-I$(SOURCE_DIR)/src/OVAL/probes"
       
    50 CPPFLAGS +=	"-I/usr/include/pcre"
       
    51 
       
    52 CONFIGURE_OPTIONS +=	CPPFLAGS="$(CPPFLAGS)"
       
    53 CONFIGURE_OPTIONS +=	--enable-debug=no
       
    54 CONFIGURE_OPTIONS +=	--libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
       
    55 CONFIGURE_OPTIONS +=	am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
       
    56 CONFIGURE_OPTIONS +=	am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
       
    57 CONFIGURE_OPTIONS +=	LIBS="-lsocket -lnsl -lldap_r"
       
    58 
       
    59 # common targets
       
    60 build:		$(BUILD_32)
       
    61 
       
    62 install:	$(INSTALL_32)
       
    63 
       
    64 test:		$(TEST_32)
       
    65 
       
    66 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    67 
       
    68 include $(WS_TOP)/make-rules/depend.mk