components/php-5_3/extensions-zts.mk
author Sonam Gupta <sonam.x.gupta@oracle.com>
Sun, 17 Feb 2013 21:51:48 -0800
branchs11u1-sru
changeset 2495 eb04a6ca141d
parent 846 fe258446a1ae
child 2211 a99bbd5139c0
permissions -rw-r--r--
15698471 cups should audit printing information in TX environments 14850597 TX printing is reported to print jobs even when request authorization fail. 16182423 Update error code for all the failed use of authorization records in CUPS 16182458 Print 3 files requesting nolabel and nobanner should produce 6 audit records 16201093 For remote print requests, the path token in AR from GZ needs modification

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
#

include $(WS_TOP)/make-rules/prep.mk
include $(WS_TOP)/make-rules/configure.mk
include $(WS_TOP)/make-rules/ips.mk

include ../common.mk

# NOTE: this phpize-proto comes from nsapi while
#       php-config-proto comes from sapi
#
# phpize-proto.zts runs autoconf
#
# Patching PHP_EXECUTABLE will enable extensions to run the test target
#
COMPONENT_PRE_CONFIGURE_ACTION = ( \
	($(CLONEY) $(SOURCE_DIR) $(@D)); \
	$(GSED) -e "s@^builddir=.*@builddir=$(BUILD_DIR_32)@" \
		< $(COMPONENT_DIR)/../php-nsapi/phpize-proto.zts \
		> $(COMPONENT_DIR)/phpize-proto.zts; \
	cd $(BUILD_DIR_32); \
	$(ENV) -i $(ZTS_ENVLINE) $(CONFIG_SHELL) \
					$(COMPONENT_DIR)/phpize-proto.zts; \
        $(GSED) -i -e "s@^PHP_EXECUTABLE=.*@PHP_EXECUTABLE=$(COMPONENT_DIR)/../php-sapi/build/$(MACH32)/sapi/cli/php@" \
                configure )


CONFIGURE_OPTIONS  += \
	--with-php-config=$(COMPONENT_DIR)/../php-sapi/php-config-proto.zts

CONFIGURE_ENV += $(ZTS_ENVLINE)
CONFIGURE_SCRIPT = $(BUILD_DIR_32)/configure
CPPFLAGS += -I$(PHP_SAPI_BUILD)/Zend
CPPFLAGS += -I$(PHP_SAPI_BUILD)/TSRM
CPPFLAGS += -I$(PHP_SAPI_BUILD)/main

CLEAN_PATHS += $(COMPONENT_DIR)/phpize-proto.zts package.xml package2.xml

# common targets
build:		$(BUILD_32)

install:	$(INSTALL_32)

test:		$(TEST_32)

publish:	install

# Manual dependency - need both php-sapi and php-nsapi installed
# before building a -zts extension.
../php-sapi/build/$(MACH32)/.installed:
	(cd ../php-sapi ; $(MAKE) install)

../php-nsapi/build/$(MACH32)/.installed:
	(cd ../php-nsapi ; $(MAKE) install)

$(BUILD_DIR_32)/.configured:    ../php-sapi/build/$(MACH32)/.installed
$(BUILD_DIR_32)/.configured:    ../php-nsapi/build/$(MACH32)/.installed

BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)

include $(WS_TOP)/make-rules/depend.mk