Makefile revision 618
68N/A#
68N/A# CDDL HEADER START
68N/A#
68N/A# The contents of this file are subject to the terms of the
68N/A# Common Development and Distribution License (the "License").
68N/A# You may not use this file except in compliance with the License.
68N/A#
68N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68N/A# or http://www.opensolaris.org/os/licensing.
68N/A# See the License for the specific language governing permissions
68N/A# and limitations under the License.
68N/A#
68N/A# When distributing Covered Code, include this CDDL HEADER in each
68N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68N/A# If applicable, add the following below this CDDL HEADER, with the
68N/A# fields enclosed by brackets "[]" replaced with your own identifying
68N/A# information: Portions Copyright [yyyy] [name of copyright owner]
68N/A#
68N/A# CDDL HEADER END
68N/A#
68N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
68N/A#
68N/Ainclude ../../../make-rules/shared-macros.mk
68N/A
68N/ACOMPONENT_NAME= modsecurity-apache
68N/ACOMPONENT_VERSION= 2.5.9
68N/ACOMPONENT_PROJECT_URL= http://www.modsecurity.org/
68N/ACOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
68N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
68N/ACOMPONENT_ARCHIVE_HASH= sha1:875919332a918956371fe8e2f7e46d88081857cf
68N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
68N/A
87N/Ainclude ../../../make-rules/prep.mk
68N/Ainclude ../../../make-rules/configure.mk
68N/Ainclude ../../../make-rules/ips.mk
68N/A
68N/AAPACHE_USR_PREFIX=/usr/apache2/2.2
68N/A
68N/AAPXS.32= $(APACHE_USR_PREFIX)/bin/apxs
87N/AAPXS.64= $(APACHE_USR_PREFIX)/bin/$(MACH64)/apxs
68N/A
68N/ACONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
87N/ACONFIGURE_OPTIONS += --with-apxs=$(APXS.$(BITS))
68N/ACONFIGURE_OPTIONS += --with-apr=`$(APXS.$(BITS)) -q APR_CONFIG`
68N/ACONFIGURE_OPTIONS += --with-apu=`$(APXS.$(BITS)) -q APU_CONFIG`
68N/A
68N/A# Need to get right version of C compiler and GNU sed first.
68N/APATH=$(SPRO_VROOT)/bin:/usr/gnu/bin:/usr/bin
68N/A
68N/A# Some patches need configure script re-creation.
68N/ACOMPONENT_PREP_ACTION = (cd $(@D)/apache2; autoconf)
68N/A
68N/ACONFIGURE_SCRIPT = $(SOURCE_DIR)/apache2/configure
68N/A
68N/A# Header files are missing during build without cloning.
68N/ACOMPONENT_PRE_BUILD_ACTION += ($(CLONEY) $(SOURCE_DIR)/apache2 $(@D));
68N/A
68N/Abuild: $(BUILD_32_and_64)
68N/A
68N/Atest: $(NO_TESTS)
68N/A
68N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
68N/A
include ../../../make-rules/depend.mk