17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 |
20 |
21 # |
21 # |
22 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
22 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
23 # |
23 # |
24 |
24 |
25 include ../../make-rules/shared-macros.mk |
25 include ../../make-rules/shared-macros.mk |
26 |
26 |
27 COMPONENT_NAME= openscap |
27 COMPONENT_NAME= openscap |
32 COMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc |
32 COMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc |
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
33 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE) |
34 COMPONENT_BUGDB= utility/openscap |
34 COMPONENT_BUGDB= utility/openscap |
35 |
35 |
36 COMPILER= gcc |
36 COMPILER= gcc |
37 CFLAGS+= -std=c99 -DNDEBUG |
37 CFLAGS+= -std=c99 |
|
38 CFLAGS+= -DNDEBUG |
38 |
39 |
39 include $(WS_TOP)/make-rules/prep.mk |
40 include $(WS_TOP)/make-rules/prep.mk |
40 include $(WS_TOP)/make-rules/configure.mk |
41 include $(WS_TOP)/make-rules/configure.mk |
41 include $(WS_TOP)/make-rules/ips.mk |
42 include $(WS_TOP)/make-rules/ips.mk |
42 |
43 |
43 CPPFLAGS += "-I/usr/include/openldap" |
44 CPPFLAGS += -I/usr/include/openldap |
44 |
45 |
45 # Perl related patch needs configure script recreation. |
46 # Perl related patch needs configure script recreation. |
46 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf); |
47 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf); |
47 |
48 |
48 # Needed to make "gmake test" work. |
49 # Needed to make "gmake test" work. |
49 CPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL" |
50 CPPFLAGS += -I$(SOURCE_DIR)/src/OVAL |
50 CPPFLAGS += "-I$(SOURCE_DIR)/src/OVAL/probes" |
51 CPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes |
51 CPPFLAGS += "-I/usr/include/pcre" |
52 CPPFLAGS += -I/usr/include/pcre |
52 |
53 |
|
54 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
53 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
55 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
54 CONFIGURE_OPTIONS += --enable-debug=no |
56 CONFIGURE_OPTIONS += --enable-debug=no |
|
57 CONFIGURE_OPTIONS += --enable-sce=yes |
55 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS)) |
58 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS)) |
56 CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES) |
59 CONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES) |
57 CONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES) |
60 CONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES) |
58 CONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r" |
61 CONFIGURE_OPTIONS += LIBS="-lsocket -lnsl -lldap_r -lscf" |
59 |
62 |
60 # common targets |
63 # common targets |
61 build: $(BUILD_32) |
64 build: $(BUILD_32) |
62 |
65 |
63 install: $(INSTALL_32) |
66 install: $(INSTALL_32) |