components/php/php.mk
branchs11-update
changeset 4418 7ae5fd823a4b
child 4826 22a167e06d01
equal deleted inserted replaced
4415:a4e14565d114 4418:7ae5fd823a4b
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 # Various macros/variables that are useful for building both PHP itself and
       
    27 # PHP extensions using the PHP build system, in the Userland framework.
       
    28 
       
    29 # PHP build system needs this to build 64-bit (and probably other things)
       
    30 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
       
    31 
       
    32 # make install requires this instead of DESTDIR
       
    33 COMPONENT_INSTALL_ENV += INSTALL_ROOT=$(PROTO_DIR)
       
    34 
       
    35 COMPONENT_TEST_TARGETS = test
       
    36 # Do not prompt to send test results upstream
       
    37 COMPONENT_TEST_ENV += TEST_PHP_ARGS="-q"
       
    38 
       
    39 # Put everything under /usr/php/{version} (like 5.2-5.3 did)
       
    40 CONFIGURE_PREFIX =      /usr/php/$(UL_PHP_MINOR_VERSION)
       
    41 # Don't put $(MACH64) in paths
       
    42 CONFIGURE_LIBDIR.64 =   $(CONFIGURE_PREFIX)/lib
       
    43 CONFIGURE_BINDIR.64 =   $(CONFIGURE_PREFIX)/bin
       
    44 CONFIGURE_SBINDIR.64 =  $(CONFIGURE_PREFIX)/sbin
       
    45 CONFIGURE_INCLUDEDIR =  $(CONFIGURE_PREFIX)/include
       
    46 CONFIGURE_MANDIR =	$(CONFIGURE_PREFIX)/share/man
       
    47 
       
    48 COMPONENT_TEST_TRANSFORMS += \
       
    49 	'-e "/^TIME START/d"' \
       
    50 	'-e "/^TIME END/d"' \
       
    51 	'-e "/^Time taken/d"' \
       
    52 	'-e "/^PHP         :/d"' \
       
    53 	'-e "/^PHP_OS      :/d"' \
       
    54 	'-e "/^PHP_VERSION :/d"' \
       
    55 	'-e "/^ZEND_VERSION:/d"'