2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013, EveryCity Ltd. All rights reserved.
14 include ..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_VERSION
= 5.4.43
18 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
19 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
20 COMPONENT_ARCHIVE_HASH
= sha256
:cfc2176adc05f009666ecfab4a1cc66cc546c5d071245b2a048b3d113f67a2af
21 COMPONENT_ARCHIVE_URL
= http
://ru2.php.net
/get/$(COMPONENT_ARCHIVE
)/from
/this
/mirror
23 include ..
/..
/make-rules
/prep.mk
24 include ..
/..
/make-rules
/configure.mk
25 include ..
/..
/make-rules
/ips.mk
27 PHP_PREFIX
=/usr
/php
/5.4
28 PHP_SYSCONFDIR
=/etc
/php
/5.4
29 PHP_DATADIR
=/var
/php
/5.4
31 CONFIGURE_OPTIONS
= --prefix=$(PHP_PREFIX
)
32 CONFIGURE_OPTIONS
.32 = --bindir=$(PHP_PREFIX
)/bin
33 CONFIGURE_OPTIONS
.64 = --bindir=$(PHP_PREFIX
)/bin
/$(MACH64
)
34 CONFIGURE_OPTIONS
.32 += --sbindir
=$(PHP_PREFIX
)/bin
35 CONFIGURE_OPTIONS
.64 += --sbindir
=$(PHP_PREFIX
)/bin
/$(MACH64
)
36 CONFIGURE_OPTIONS
.32 += --libdir=$(PHP_PREFIX
)/lib
37 CONFIGURE_OPTIONS
.64 += --libdir=$(PHP_PREFIX
)/lib
/$(MACH64
)
38 CONFIGURE_OPTIONS
.32 += --libexecdir
=$(PHP_PREFIX
)/libexec
39 CONFIGURE_OPTIONS
.64 += --libexecdir
=$(PHP_PREFIX
)/libexec
/$(MACH64
)
40 CONFIGURE_OPTIONS
+= --includedir=$(PHP_PREFIX
)/include
41 CONFIGURE_OPTIONS
+= --sysconfdir
=$(PHP_SYSCONFDIR
)
42 CONFIGURE_OPTIONS
+= --datadir=$(PHP_DATADIR
)
43 CONFIGURE_OPTIONS
+= --mandir=$(PHP_PREFIX
)/share
/man
45 CONFIGURE_OPTIONS
.64 += --build
=x86_64-pc-solaris2.10
46 CONFIGURE_OPTIONS
.32 += --with-php-config
=$(PHP_PREFIX
)/bin
/php-config
47 CONFIGURE_OPTIONS
.64 += --with-php-config
=$(PHP_PREFIX
)/bin
/$(MACH64
)/php-config
48 CONFIGURE_OPTIONS
.32 += --with-mysqli
=/usr
/mariadb
/5.5/bin
/mysql_config
49 CONFIGURE_OPTIONS
.64 += --with-mysqli
=/usr
/mariadb
/5.5/bin
/$(MACH64
)/mysql_config
51 CONFIGURE_OPTIONS
+= $(CONFIGURE_OPTIONS.
$(BITS
))
53 LDFLAGS
.32 += -L
/usr
/mariadb
/5.5/lib
-R
/usr
/mariadb
/5.5/lib
54 LDFLAGS
.64 += -L
/usr
/mariadb
/5.5/lib
/$(MACH64
) -R
/usr
/mariadb
/5.5/lib
/$(MACH64
)
56 CFLAGS
= $(CC_BITS
) -D_POSIX_PTHREAD_SEMANTICS
57 CFLAGS
+= -I
/usr
/mariadb
/5.5/include
58 CPPFLAGS
+= -I
/usr
/mariadb
/5.5/include
59 LDFLAGS
+= $(LDFLAGS.
$(BITS
))
61 CONFIGURE_SCRIPT
= $(@D
)/configure
63 COMPONENT_PRE_CONFIGURE_ACTION
= cp
-R
$(SOURCE_DIR
)/ext
/mysqli
/* $(@D
) ;\
64 $(MKDIR
) $(@D
)/ext
; cp
-R
$(SOURCE_DIR
)/ext
/mysqlnd
$(@D
)/ext
; cd
$(@D
) ; $(PHP_PREFIX
)/bin
/phpize
65 COMPONENT_INSTALL_ARGS
+= INSTALL_ROOT
=$(PROTO_DIR
)
67 build
: $(BUILD_32_and_64
)
69 install: $(INSTALL_32_and_64
)