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