Makefile revision 2373
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# CDDL HEADER START
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# The contents of this file are subject to the terms of the
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# Common Development and Distribution License (the "License").
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# You may not use this file except in compliance with the License.
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# or http://www.opensolaris.org/os/licensing.
9e15a18acd19bf80faef774ee92877024ef599a5William Giokas# See the License for the specific language governing permissions
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# and limitations under the License.
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# When distributing Covered Code, include this CDDL HEADER in each
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# If applicable, add the following below this CDDL HEADER, with the
ca08063781666a530993f7c88db1256044689c24William Giokas# fields enclosed by brackets "[]" replaced with your own identifying
ca08063781666a530993f7c88db1256044689c24William Giokas# information: Portions Copyright [yyyy] [name of copyright owner]
ca08063781666a530993f7c88db1256044689c24William Giokas#
ca08063781666a530993f7c88db1256044689c24William Giokas# CDDL HEADER END
ca08063781666a530993f7c88db1256044689c24William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas
ca08063781666a530993f7c88db1256044689c24William Giokasinclude ../../../make-rules/shared-macros.mk
4af6e458e5a683b89032d560eb353c2272d3d564William Giokas
4af6e458e5a683b89032d560eb353c2272d3d564William GiokasCOMPONENT_NAME= php
ca08063781666a530993f7c88db1256044689c24William GiokasCOMPONENT_VERSION= 5.3.27
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_ARCHIVE_HASH= \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas sha256:e12db21c623b82a2244c4dd9b06bb75af20868c1b748a105a6829a5acc36b287
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_PROJECT_URL= http://www.php.net/
7e83c0e03fbf397167822e170d97c3a210658768William Giokas
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William Giokas# webserver7-spi only for php NSAPI
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_NAME_1= webserver7-spi
7e83c0e03fbf397167822e170d97c3a210658768William Giokas#COMPONENT_VERSION_1= NONE
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_SRC_1= $(COMPONENT_NAME_1)
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).tar.bz2
4a8fa990693edc47ac2192bf088a6e22e2390b41William GiokasCOMPONENT_ARCHIVE_HASH_1= \
4a8fa990693edc47ac2192bf088a6e22e2390b41William Giokas sha256:9739fe99ed270955546313322775940c6b7e8eb802707d248342406ebe5b1c97
4a8fa990693edc47ac2192bf088a6e22e2390b41William Giokas#
4a8fa990693edc47ac2192bf088a6e22e2390b41William Giokas# The Netscape server?
4a8fa990693edc47ac2192bf088a6e22e2390b41William Giokas# Came from Sun's Netscape (web stack) group originally?
4a8fa990693edc47ac2192bf088a6e22e2390b41William GiokasCOMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1)
4a8fa990693edc47ac2192bf088a6e22e2390b41William Giokas
4a8fa990693edc47ac2192bf088a6e22e2390b41William GiokasPATCH_DIR = ../php-sapi/patches
4a8fa990693edc47ac2192bf088a6e22e2390b41William Giokas
7e83c0e03fbf397167822e170d97c3a210658768William Giokasinclude $(WS_TOP)/make-rules/prep.mk
7e83c0e03fbf397167822e170d97c3a210658768William Giokasinclude $(WS_TOP)/make-rules/configure.mk
7e83c0e03fbf397167822e170d97c3a210658768William Giokasinclude $(WS_TOP)/make-rules/ips.mk
7e83c0e03fbf397167822e170d97c3a210658768William Giokas
7e83c0e03fbf397167822e170d97c3a210658768William Giokasinclude ../common.mk
7e83c0e03fbf397167822e170d97c3a210658768William Giokasinclude ../php-sapi/php.mk
7e83c0e03fbf397167822e170d97c3a210658768William Giokas
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCOMPONENT_POST_UNPACK_ACTION += && ( \
862f4963c6f7778cea9e715eeb11ea959eba6db3William Giokas $(RM) -r $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas cd $(COMPONENT_DIR); \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas $(UNPACK) $(UNPACK_ARGS) ./$(COMPONENT_ARCHIVE_1); \
a02c5fe7cbad3ca0536286ceab0bde5fb1c0ba13William Giokas )
7e83c0e03fbf397167822e170d97c3a210658768William Giokas
7e83c0e03fbf397167822e170d97c3a210658768William GiokasCONFIGURE_OPTIONS += \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --disable-all \
862f4963c6f7778cea9e715eeb11ea959eba6db3William Giokas $(COMMON_CONFIG_OPTIONS) \
f11880744c27209a42f502c690db86b38d2db14bZbigniew Jędrzejewski-Szmek --with-config-file-path=$(CONF_DIR) \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --with-config-file-scan-dir=$(CONF_DIR)/conf.d \
862f4963c6f7778cea9e715eeb11ea959eba6db3William Giokas --disable-cgi \
9e15a18acd19bf80faef774ee92877024ef599a5William Giokas --disable-fastcgi \
862f4963c6f7778cea9e715eeb11ea959eba6db3William Giokas --enable-discard-path \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --enable-maintainer-zts \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --enable-ftp=shared \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --enable-pdo=shared \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --with-bz2=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-curl=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-gd=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-gettext=shared \
862f4963c6f7778cea9e715eeb11ea959eba6db3William Giokas --with-iconv=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-imap=shared,$(IMAP_DIR) \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-imap-ssl=shared,/usr \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-ldap=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-mysql=shared,$(MYSQL_DIR) \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-mysql-sock=/tmp/mysql.sock \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-mysqli=shared,$(MYSQL_DIR)/bin/mysql_config \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-nsapi=$(COMPONENT_DIR)/webserver7-spi \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-openssl=shared \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --with-pear=$(PEAR_DIR) \
c736283bfb81f5b00756e08a13946c113a41527fJason St. John --with-pdo-mysql=shared,$(MYSQL_DIR) \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-pdo-sqlite=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-snmp=shared,/usr \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-sqlite3=shared \
7e83c0e03fbf397167822e170d97c3a210658768William Giokas --with-tidy=shared,/usr
CONFIGURE_ENV += $(ZTS_CONF_ENVLINE)
COMPONENT_POST_BUILD_ACTION = ( \
cat $(BUILD_DIR_32)/scripts/phpize | \
sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \
sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \
sed -e "s%^includedir=.*%includedir=$(SOURCE_DIR)%" | \
sed -e "s%^phpdir=.*%phpdir=$(SOURCE_DIR)%" | \
sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \
sed -e 's%cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build%cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build%' \
> phpize-proto.zts ; \
chmod 755 phpize-proto.zts )
ADD_NSAPI_MODULE_SUPPORT = ( \
$(MKDIR) $(PROTO_DIR)/$(TOP_DIR)/nsapi/; \
$(CP) $(BUILD_DIR_32)/libs/libphp5.so \
$(PROTO_DIR)/$(TOP_DIR)/nsapi/libphp5.so; \
)
FIX_CONFIG_FILES = ( \
cd $(COMPONENT_DIR); \
$(GSED) -e "s@extension_dir = \(.*\)@extension_dir=$(PHP_ROOT_ZTS_EXT)@"< ../php-sapi/build/prototype/$(MACH)/$(CONFDIR)/php.ini > php.ini; \
$(MKDIR) $(PROTO_DIR)/$(NSAPI_CONFDIR); \
$(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(NSAPI_CONFDIR); \
)
COMPONENT_INSTALL_TARGETS = libphp5.la install-modules
COMPONENT_POST_INSTALL_ACTION = ( \
$(ADD_NSAPI_MODULE_SUPPORT); \
$(FIX_CONFIG_FILES); \
)
CLEAN_PATHS += webserver7-spi phpize-proto.zts php.ini
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
# php-sapi does the publish
publish: install
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk