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