Makefile revision 3469
13598N/A#
13598N/A# CDDL HEADER START
13598N/A#
13598N/A# The contents of this file are subject to the terms of the
13598N/A# Common Development and Distribution License (the "License").
13598N/A# You may not use this file except in compliance with the License.
13598N/A#
13598N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13598N/A# or http://www.opensolaris.org/os/licensing.
13598N/A# See the License for the specific language governing permissions
13598N/A# and limitations under the License.
13598N/A#
13598N/A# When distributing Covered Code, include this CDDL HEADER in each
13598N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
13598N/A# If applicable, add the following below this CDDL HEADER, with the
13598N/A# fields enclosed by brackets "[]" replaced with your own identifying
13598N/A# information: Portions Copyright [yyyy] [name of copyright owner]
13598N/A#
13598N/A# CDDL HEADER END
13598N/A#
13598N/A# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
13598N/A#
13598N/A
13598N/Ainclude ../../../make-rules/shared-macros.mk
13598N/A
13598N/ACOMPONENT_NAME= php
13598N/ACOMPONENT_VERSION= 5.3.28
13598N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
13598N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
13598N/ACOMPONENT_ARCHIVE_HASH= \
13598N/A sha256:0cac960c651c4fbb3d21cf2f2b279a06e21948fb35a0d1439b97296cac1d8513
13598N/ACOMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
13598N/ACOMPONENT_PROJECT_URL= http://www.php.net/
13598N/A
13598N/A#
13598N/A# webserver7-spi only for php NSAPI
13598N/A#
13598N/ACOMPONENT_NAME_1= webserver7-spi
13598N/A#COMPONENT_VERSION_1= NONE
13598N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)
13598N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).tar.bz2
13598N/ACOMPONENT_ARCHIVE_HASH_1= \
13598N/A sha256:9739fe99ed270955546313322775940c6b7e8eb802707d248342406ebe5b1c97
13598N/A#
13598N/A# The Netscape server?
13598N/A# Came from Sun's Netscape (web stack) group originally?
13598N/ACOMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
13598N/A
13598N/APATCH_DIR = ../php-sapi/patches
13598N/A
13598N/Ainclude ../php-sapi/php.mk
13598N/A
13598N/Ainclude $(WS_TOP)/make-rules/prep.mk
13598N/Ainclude $(WS_TOP)/make-rules/configure.mk
13598N/Ainclude $(WS_TOP)/make-rules/ips.mk
13598N/A
13598N/Ainclude ../common.mk
13598N/A
13598N/ACOMPONENT_POST_UNPACK_ACTION += && ( \
13598N/A set -e; \
13598N/A $(RM) -r $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \
13598N/A cd $(COMPONENT_DIR); \
13598N/A $(UNPACK) $(UNPACK_ARGS) ./$(COMPONENT_ARCHIVE_1); \
13598N/A )
13598N/A
13598N/ACONFIGURE_OPTIONS += \
13598N/A --disable-all \
13598N/A $(COMMON_CONFIG_OPTIONS) \
13598N/A --with-config-file-path=$(CONF_DIR) \
13598N/A --with-config-file-scan-dir=$(CONF_DIR)/conf.d \
13598N/A --disable-cgi \
13598N/A --disable-fastcgi \
13598N/A --enable-discard-path \
13598N/A --enable-maintainer-zts \
13598N/A --enable-ftp=shared \
13598N/A --enable-pdo=shared \
13598N/A --with-bz2=shared \
13598N/A --with-curl=shared \
13598N/A --with-gd=shared \
13598N/A --with-gettext=shared \
13598N/A --with-iconv=shared \
13598N/A --with-imap=shared,$(IMAP_DIR) \
13598N/A --with-imap-ssl=shared,/usr \
13598N/A --with-ldap=shared \
13598N/A --with-mysql=shared,mysqlnd \
13598N/A --with-mysql-sock=/tmp/mysql.sock \
13598N/A --with-mysqli=shared,mysqlnd \
13598N/A --with-nsapi=$(COMPONENT_DIR)/webserver7-spi \
13598N/A --with-openssl=shared \
13598N/A --with-pear=$(PEAR_DIR) \
13598N/A --with-pdo-mysql=shared,mysqlnd \
13598N/A --with-pdo-sqlite=shared \
13598N/A --with-snmp=shared,/usr \
13598N/A --with-sqlite3=shared \
13598N/A --with-tidy=shared,/usr
13598N/A
13598N/ACONFIGURE_ENV += $(ZTS_CONF_ENVLINE)
13598N/A
13598N/ACOMPONENT_POST_BUILD_ACTION = ( \
13598N/A set -e; \
13598N/A cat $(BUILD_DIR_32)/scripts/phpize | \
13598N/A sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \
13598N/A sed -e "s%^prefix=.*%prefix=$(BUILD_DIR_32)%" | \
13598N/A sed -e "s%^includedir=.*%includedir=$(BUILD_DIR_32)%" | \
13598N/A sed -e "s%^phpdir=.*%phpdir=$(BUILD_DIR_32)%" | \
13598N/A sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \
13598N/A sed -e 's%cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build%cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build%' \
13598N/A > phpize-proto.zts ; \
13598N/A chmod 755 phpize-proto.zts )
13598N/A
13598N/AADD_NSAPI_MODULE_SUPPORT = ( \
13598N/A set -e; \
13598N/A $(MKDIR) $(PROTO_DIR)/$(TOP_DIR)/nsapi/; \
13598N/A $(CP) $(BUILD_DIR_32)/libs/libphp5.so \
13598N/A $(PROTO_DIR)/$(TOP_DIR)/nsapi/libphp5.so; \
13598N/A )
13598N/A
13598N/AFIX_CONFIG_FILES = ( \
13598N/A set -e; \
13598N/A cd $(COMPONENT_DIR); \
13598N/A $(GSED) -e "s@extension_dir = \(.*\)@extension_dir=$(PHP_ROOT_ZTS_EXT)@"< ../php-sapi/build/prototype/$(MACH)/$(CONFDIR)/php.ini > php.ini; \
13598N/A $(MKDIR) $(PROTO_DIR)/$(NSAPI_CONFDIR); \
13598N/A $(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(NSAPI_CONFDIR); \
13598N/A )
13598N/A
13598N/ACOMPONENT_INSTALL_TARGETS = libphp5.la install-modules
13598N/A
13598N/ACOMPONENT_POST_INSTALL_ACTION = ( \
13598N/A set -e; \
13598N/A $(ADD_NSAPI_MODULE_SUPPORT); \
13598N/A $(FIX_CONFIG_FILES); \
13598N/A )
13598N/A
13598N/ACLEAN_PATHS += webserver7-spi phpize-proto.zts php.ini
13598N/A
13598N/A# common targets
13598N/Abuild: $(BUILD_32)
13598N/A
13598N/Ainstall: $(INSTALL_32)
13598N/A
13598N/Atest: $(TEST_32)
13598N/A
13598N/A# php-sapi does the publish
13598N/Apublish: install
13598N/A
13598N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
13598N/A
13598N/Ainclude $(WS_TOP)/make-rules/depend.mk
13598N/A