Makefile revision 3996
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# CDDL HEADER START
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# The contents of this file are subject to the terms of the
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# Common Development and Distribution License (the "License").
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# You may not use this file except in compliance with the License.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# or http://www.opensolaris.org/os/licensing.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# See the License for the specific language governing permissions
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# and limitations under the License.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff#
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# When distributing Covered Code, include this CDDL HEADER in each
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# If applicable, add the following below this CDDL HEADER, with the
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# fields enclosed by brackets "[]" replaced with your own identifying
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff# CDDL HEADER END
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
c803787146cadcb2d7e10cbf4491f3be513dfa1aMichael Graff#
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graffinclude ../../../make-rules/shared-macros.mk
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCOMPONENT_NAME= mod_security2
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCOMPONENT_VERSION= 2.7.5
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCOMPONENT_PROJECT_URL= http://www.modsecurity.org/
66bd3b3c6b171271c705b897823dcdcf29464698Michael GraffCOMPONENT_SRC_NAME= modsecurity-apache
66bd3b3c6b171271c705b897823dcdcf29464698Michael GraffCOMPONENT_SRC= $(COMPONENT_SRC_NAME)_$(COMPONENT_VERSION)
64828244e04e86dfa40f0a4f0c05f27923da499dMichael GraffCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
64828244e04e86dfa40f0a4f0c05f27923da499dMichael GraffCOMPONENT_ARCHIVE_HASH= \
64828244e04e86dfa40f0a4f0c05f27923da499dMichael Graff sha256:9e907536278d8da80d3dbb29aeffe9c4ec37ce9b641035b2da64e993135647a2
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael GraffCOMPONENT_ARCHIVE_URL= \
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff $(COMPONENT_PROJECT_URL)tarball/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
f181f94ec8da8b1dbcc6353e8be965ea4a5ea282Michael GraffCOMPONENT_BUGDB= utility/apache
21e7034ec046105c00a0dab86c83732e2e77ad99Michael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffTPNO= 14454
213973a334f92d4aef4ef62b4538fc2e4d0e8082Michael Graff
3024dbecbac365171bc6de0f3fa04951d6558be3Michael Graffinclude $(WS_MAKE_RULES)/prep.mk
f181f94ec8da8b1dbcc6353e8be965ea4a5ea282Michael Graffinclude $(WS_MAKE_RULES)/configure.mk
3ac63b472022ff92691d1fe69ac715a729671965Michael Graffinclude $(WS_MAKE_RULES)/ips.mk
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff
fe14eafefa91fada7cea0a55b09196c01477406cBob HalleyAPACHE_USR_PREFIX=/usr/apache2/2.2
e45d323a2a0f4ca08d4b139546e60a5fa7bd3f0cMichael Graff
29f28fe573d4b3b318b3b026d567c1eb86738015Michael GraffAPXS.32= $(APACHE_USR_PREFIX)/bin/apxs
86944a4c8002e80ae9b6eb5a5e29b797879be45fMichael GraffAPXS.64= $(APACHE_USR_PREFIX)/bin/$(MACH64)/apxs
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael Graff
21e7034ec046105c00a0dab86c83732e2e77ad99Michael GraffCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael GraffCONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael GraffCONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael GraffCONFIGURE_OPTIONS += --with-apr=`$(APXS.$(BITS)) -q APR_CONFIG`
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael GraffCONFIGURE_OPTIONS += --with-apu=`$(APXS.$(BITS)) -q APU_CONFIG`
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael Graff
439c0011e642fb1d26011116144af698125262dbMichael GraffCOMPONENT_TEST_ARGS += CFLAGS="$(CFLAGS) -DMSC_TEST"
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graffbuild: $(BUILD_32_and_64)
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Grafftest: $(TEST_32_and_64)
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += library/apr-13
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += library/apr-util-13
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += library/libxml2
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += library/pcre
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += runtime/lua
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += system/library
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael GraffREQUIRED_PACKAGES += system/library/math
ff9bb3fc5453bbf310b67c560fbf04a5c0fb60daMichael Graff