Makefile revision 7243
906N/A#
906N/A# CDDL HEADER START
906N/A#
906N/A# The contents of this file are subject to the terms of the
906N/A# Common Development and Distribution License (the "License").
906N/A# You may not use this file except in compliance with the License.
906N/A#
906N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
906N/A# or http://www.opensolaris.org/os/licensing.
906N/A# See the License for the specific language governing permissions
906N/A# and limitations under the License.
906N/A#
906N/A# When distributing Covered Code, include this CDDL HEADER in each
906N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
906N/A# If applicable, add the following below this CDDL HEADER, with the
906N/A# fields enclosed by brackets "[]" replaced with your own identifying
906N/A# information: Portions Copyright [yyyy] [name of copyright owner]
906N/A#
906N/A# CDDL HEADER END
906N/A
906N/A#
5636N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
906N/A#
5680N/ABUILD_BITS= 64
5680N/ACOMPILER= gcc
906N/Ainclude ../../make-rules/shared-macros.mk
906N/A
906N/ACOMPONENT_NAME= openscap
6292N/ACOMPONENT_VERSION= 1.2.9
1799N/ACOMPONENT_PROJECT_URL= http://www.open-scap.org
1799N/ACOMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
6292N/ACOMPONENT_ARCHIVE_HASH= sha256:20ae67ffabf90865fb2033d5c5e49bfb5fb485ffa6ff37910e8d7084c2236c74
1799N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
906N/A
6292N/ATPNO = 28398
2899N/A
6009N/A# Requires newer version of system/management/rad/client/rad-c from ON,
6009N/A# available in S12 but not 11.3, so do not publish.
6009N/Aifeq ($(BUILD_TYPE), evaluation)
6009N/ABUILD_64=
6009N/AINSTALL_64=
6009N/APUBLISH_STAMP=
6009N/Aendif
6009N/A
1389N/ACFLAGS+= -std=c99
1389N/ACFLAGS+= -DNDEBUG
2410N/ACFLAGS+= -DOSCAP_THREAD_SAFE
906N/A
3936N/APYTHON_VERSIONS= $(PYTHON2_VERSIONS)
3470N/A
5795N/A# publish for only one version of perl
5636N/APERL_VERSIONS = $(PERL_VERSION)
4744N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
906N/A
3703N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
5680N/ACPPFLAGS += -I$(USRINCDIR)/openldap
5983N/ARAD_CLIENT_LIB_PATH = /usr/lib/rad/client/c/$(MACH64)
5983N/A
6120N/ALDFLAGS += -L$(RAD_CLIENT_LIB_PATH) -R$(RAD_CLIENT_LIB_PATH) -lradclient -ladr -lips_client -lzonemgr_client
5680N/A
5680N/A# XXX This shouldn't be necessary, but is; investigate why.
5680N/ACFLAGS += -D_FILE_OFFSET_BITS=64
906N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
906N/A# Perl related patch needs configure script recreation.
906N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
906N/A
3470N/A# Need to do cloney, so that the schema files can get packaged.
3470N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
3470N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
3470N/A
3470N/ACOMPONENT_POST_INSTALL_ACTION = \
3775N/A $(RM) $(PROTO_DIR)/usr/share/openscap/cpe/* && \
5983N/A $(CP) files/cpe/* $(PROTO_DIR)/usr/share/openscap/cpe; \
5983N/A $(MV) $(PROTO_DIR)/usr/lib/python2.7/vendor-packages/64/*.py* \
5983N/A $(PROTO_DIR)/usr/lib/python2.7/vendor-packages/ ;
3775N/A
3470N/A
906N/A# Needed to make "gmake test" work.
1389N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL
1389N/ACPPFLAGS += -I$(SOURCE_DIR)/src/OVAL/probes
5680N/ACPPFLAGS += -I$(USRINCDIR)/pcre
906N/A
3703N/ACONFIGURE_ENV += PERL="$(PERL)"
3703N/ACONFIGURE_ENV += PYTHON="$(PYTHON.$(BITS))"
906N/ACONFIGURE_OPTIONS += --enable-debug=no
1389N/ACONFIGURE_OPTIONS += --enable-sce=yes
1799N/ACONFIGURE_OPTIONS += --enable-perl=yes
906N/ACONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
906N/ACONFIGURE_OPTIONS += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
906N/ACONFIGURE_OPTIONS += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
4959N/AEXTRA_LIBS = -lldap_r
4959N/Aifeq ($(OS_VERSION),5.11)
4959N/AEXTRA_LIBS += -lnsl -lsocket
4959N/Aendif
6025N/AEXTRA_LIBS += -lscf -ldlpi -lsec -lv12n
5983N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) $(EXTRA_LIBS)"
906N/A
5119N/ADOCS_DIR = $(PROTO_DIR)/usr/share/doc/openscap/html/
2494N/A
5680N/ACOMPONENT_POST_INSTALL_ACTION += \
5680N/A $(MKDIR) $(DOCS_DIR); \
5680N/A $(CP) -r $(SOURCE_DIR)/docs/html/* $(DOCS_DIR);
4337N/A
3817N/AREQUIRED_PACKAGES += compress/bzip2
3817N/AREQUIRED_PACKAGES += developer/swig
3817N/AREQUIRED_PACKAGES += gnome/config/gconf
3817N/AREQUIRED_PACKAGES += library/glib2
3817N/AREQUIRED_PACKAGES += library/libxml2
3817N/AREQUIRED_PACKAGES += library/libxslt
3817N/AREQUIRED_PACKAGES += library/openldap
3817N/AREQUIRED_PACKAGES += library/pcre
5636N/AREQUIRED_PACKAGES += $(PERL_PKG)
3817N/AREQUIRED_PACKAGES += runtime/python-27
3817N/AREQUIRED_PACKAGES += security/compliance/openscap
3817N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/library/security/libgcrypt
4689N/AREQUIRED_PACKAGES += system/library/libv12n
5983N/AREQUIRED_PACKAGES += system/management/rad
5983N/AREQUIRED_PACKAGES += system/management/rad/client/rad-c
6021N/AREQUIRED_PACKAGES += system/network/ldap/openldap
3817N/AREQUIRED_PACKAGES += system/zones
3817N/AREQUIRED_PACKAGES += web/curl