Add signature url to PHP 5.6
[unleashed-userland.git] / components / web / php / php-5_6 / Makefile
blobbf514691c9d7e29c9ff6f8ed36ff33914ae9bf27
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
16 COMPONENT_NAME= php
17 COMPONENT_VERSION= 5.6.27
18 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
19 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
20 COMPONENT_ARCHIVE_HASH= sha256:16eb544498339d1d855292826e2e547ab01a31600141094959073e5e10e93ab5
21 COMPONENT_ARCHIVE_URL= http://uk1.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror
22 COMPONENT_SIG_URL= http://uk1.php.net/distributions/$(COMPONENT_ARCHIVE).asc
24 include $(WS_TOP)/make-rules/prep.mk
25 include $(WS_TOP)/make-rules/configure.mk
26 include $(WS_TOP)/make-rules/ips.mk
28 PATH= /usr/bin:/usr/gnu/bin:/usr/sbin
30 # Apache Paths
31 AP_PREFIX=/usr/apache2/2.2
32 AP_SYSCONFDIR=/etc/apache2/2.2
34 # PHP Paths
35 PHP_PREFIX=/usr/php/5.6
36 PHP_SYSCONFDIR=/etc/php/5.6
37 PHP_DATADIR=/var/php/5.6
39 CFLAGS = $(CC_BITS) -D_POSIX_PTHREAD_SEMANTICS
40 CPPFLAGS += -I/usr/include/openldap
42 COMPONENT_PREP_ACTION = ( cd $(@D) && autoconf )
43 # Configure Options
45 CONFIGURE_OPTIONS = --prefix=$(PHP_PREFIX)
46 CONFIGURE_OPTIONS.32 = --bindir=$(PHP_PREFIX)/bin
47 CONFIGURE_OPTIONS.64 = --bindir=$(PHP_PREFIX)/bin/$(MACH64)
48 CONFIGURE_OPTIONS.32 += --sbindir=$(PHP_PREFIX)/bin
49 CONFIGURE_OPTIONS.64 += --sbindir=$(PHP_PREFIX)/bin/$(MACH64)
50 CONFIGURE_OPTIONS.32 += --libdir=$(PHP_PREFIX)/lib
51 CONFIGURE_OPTIONS.64 += --libdir=$(PHP_PREFIX)/lib/$(MACH64)
52 CONFIGURE_OPTIONS.32 += --libexecdir=$(PHP_PREFIX)/libexec
53 CONFIGURE_OPTIONS.64 += --libexecdir=$(PHP_PREFIX)/libexec/$(MACH64)
54 CONFIGURE_OPTIONS += --includedir=$(PHP_PREFIX)/include
55 CONFIGURE_OPTIONS += --sysconfdir=$(PHP_SYSCONFDIR)
56 CONFIGURE_OPTIONS += --datadir=$(PHP_DATADIR)
57 CONFIGURE_OPTIONS += --mandir=$(PHP_PREFIX)/share/man
58 CONFIGURE_OPTIONS += --localstatedir=$(PHP_DATADIR)
60 # SAPI modules
61 CONFIGURE_OPTIONS.32 += --with-apxs2=$(AP_PREFIX)/bin/apxs
62 CONFIGURE_OPTIONS.64 += --with-apxs2=$(AP_PREFIX)/bin/$(MACH64)/apxs
63 CONFIGURE_OPTIONS += --enable-fpm
65 CONFIGURE_OPTIONS.64 += --build=x86_64-pc-solaris$(SOLARIS_VERSION)
67 CONFIGURE_OPTIONS += --with-config-file-path=$(PHP_SYSCONFDIR)
68 CONFIGURE_OPTIONS += --with-config-file-scan-dir=$(PHP_SYSCONFDIR)/conf.d
69 CONFIGURE_OPTIONS += --with-pear=$(PHP_PREFIX)/share/PEAR
71 CONFIGURE_OPTIONS += --with-layout=PHP
72 CONFIGURE_OPTIONS += --with-zend-vm=CALL
74 CONFIGURE_OPTIONS += --with-cdb
75 CONFIGURE_OPTIONS += --with-kerberos
76 CONFIGURE_OPTIONS += --with-pcre-regex
78 # Shared Extensions
79 CONFIGURE_OPTIONS += --with-gettext=shared
80 CONFIGURE_OPTIONS += --with-xmlrpc=shared
81 CONFIGURE_OPTIONS += --with-gd=shared
82 CONFIGURE_OPTIONS += --with-zlib=shared
83 CONFIGURE_OPTIONS += --with-openssl=shared
84 CONFIGURE_OPTIONS += --with-pdo-sqlite=shared
85 CONFIGURE_OPTIONS += --with-ldap=shared
87 # Shared Extensions
88 CONFIGURE_OPTIONS += --with-bz2=shared
89 CONFIGURE_OPTIONS += --with-iconv=shared
90 CONFIGURE_OPTIONS += --with-tidy=shared
91 CONFIGURE_OPTIONS += --with-mhash=shared
92 CONFIGURE_OPTIONS += --with-mcrypt=shared
93 CONFIGURE_OPTIONS += --with-xsl=shared
94 CONFIGURE_OPTIONS += --with-curl=shared
95 CONFIGURE_OPTIONS += --with-readline=shared
96 CONFIGURE_OPTIONS += --with-pspell=shared
97 CONFIGURE_OPTIONS += --with-imap=shared
98 CONFIGURE_OPTIONS += --with-imap-ssl
100 # Enabled Extensions
101 #CONFIGURE_OPTIONS += --with-libxml-dir=$(ECPREFIX)
102 #CONFIGURE_OPTIONS += --with-freetype-dir=$(ECPREFIX)
103 CONFIGURE_OPTIONS += --with-jpeg-dir=/usr
104 #CONFIGURE_OPTIONS += --with-png-dir=$(ECPREFIX)
105 #CONFIGURE_OPTIONS += --with-zlib-dir=$(ECPREFIX)
106 #CONFIGURE_OPTIONS += --with-xpm-dir=$(ECPREFIX)
107 #CONFIGURE_OPTIONS += --with-libexpat-dir=$(ECPREFIX)
108 #CONFIGURE_OPTIONS += --with-openssl-dir=$(ECPREFIX)
110 # Disabled extensions & Options
111 CONFIGURE_OPTIONS += --disable-static
112 CONFIGURE_OPTIONS += --disable-dba
113 CONFIGURE_OPTIONS += --disable-debug
114 CONFIGURE_OPTIONS += --disable-libgcc
115 #CONFIGURE_OPTIONS += --disable-inline-optimization
116 #CONFIGURE_OPTIONS += --disable-libtool-lock
117 #CONFIGURE_OPTIONS += --disable-rpath
119 CONFIGURE_OPTIONS += --enable-dtrace
120 CONFIGURE_OPTIONS += --without-dbm
121 CONFIGURE_OPTIONS += --without-t1lib
123 # Enabled extensions
124 CONFIGURE_OPTIONS += --enable-cli
125 CONFIGURE_OPTIONS += --enable-cgi
126 CONFIGURE_OPTIONS += --enable-shared
127 CONFIGURE_OPTIONS += --enable-filter
128 CONFIGURE_OPTIONS += --enable-gd-jis-conv
129 CONFIGURE_OPTIONS += --enable-short-tags
130 CONFIGURE_OPTIONS += --enable-pcntl
131 CONFIGURE_OPTIONS += --enable-shmop
132 CONFIGURE_OPTIONS += --enable-sysvmsg
133 CONFIGURE_OPTIONS += --enable-sysvsem
134 CONFIGURE_OPTIONS += --enable-sysvshm
135 CONFIGURE_OPTIONS += --enable-simplexml
136 CONFIGURE_OPTIONS += --enable-hash
137 CONFIGURE_OPTIONS += --enable-session
138 CONFIGURE_OPTIONS += --enable-opcache
140 # Shared Extensions
141 CONFIGURE_OPTIONS += --enable-bcmath=shared
142 CONFIGURE_OPTIONS += --enable-json=shared
143 CONFIGURE_OPTIONS += --enable-libxml=shared
144 CONFIGURE_OPTIONS += --enable-ctype=shared
145 CONFIGURE_OPTIONS += --enable-calendar=shared
146 CONFIGURE_OPTIONS += --enable-tokenizer=shared
147 CONFIGURE_OPTIONS += --enable-exif=shared
148 CONFIGURE_OPTIONS += --enable-dom=shared
149 CONFIGURE_OPTIONS += --enable-ftp=shared
150 CONFIGURE_OPTIONS += --enable-intl=shared
151 CONFIGURE_OPTIONS += --enable-pdo=shared
152 CONFIGURE_OPTIONS += --enable-mbstring=shared
153 CONFIGURE_OPTIONS += --enable-xmlreader=shared
154 CONFIGURE_OPTIONS += --enable-xmlwriter=shared
155 CONFIGURE_OPTIONS += --enable-soap=shared
156 CONFIGURE_OPTIONS += --enable-sockets=shared
157 CONFIGURE_OPTIONS += --enable-wddx=shared
158 CONFIGURE_OPTIONS += --enable-zip=shared
160 CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
162 # Installation Arguments
163 COMPONENT_INSTALL_ARGS += INSTALL_ROOT=$(PROTO_DIR)
165 # Pre-Install Actions
166 COMPONENT_PRE_INSTALL_ACTION+= \
167 ( $(MKDIR) -p $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d ; \
168 echo "Creating fake modules-32.load, modules-64.load and httpd.conf" ; \
169 echo "\# LoadModule foo_module libexec/mod_foo.so" >> $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d/modules-32.load ; \
170 echo "\# " >> $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d/modules-32.load ; \
171 echo "LoadModule foo_module libexec/mod_foo.so " >> $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d/modules-32.load ; \
172 cp $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d/modules-32.load $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d/modules-64.load ; \
173 cp $(PROTO_DIR)/$(AP_SYSCONFDIR)/conf.d/modules-32.load $(PROTO_DIR)/$(AP_SYSCONFDIR)/httpd.conf \
176 # Environment Variables
177 COMPONENT_BUILD_ENV+= CC="$(CC) $(CC_BITS)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
178 CONFIGURE_ENV.32 += EXTENSION_DIR=$(PHP_PREFIX)/extensions
179 CONFIGURE_ENV.64 += EXTENSION_DIR=$(PHP_PREFIX)/extensions/$(MACH64)
180 CONFIGURE_ENV.32 += ICU_CONFIG=/usr/bin/icu-config
181 CONFIGURE_ENV.64 += ICU_CONFIG=/usr/bin/amd64/icu-config
182 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
184 build: $(BUILD_32_and_64)
186 install: $(INSTALL_32_and_64)
188 REQUIRED_PACKAGES += SUNWcs
189 REQUIRED_PACKAGES += compress/bzip2
190 REQUIRED_PACKAGES += image/library/libjpeg6
191 REQUIRED_PACKAGES += image/library/libjpeg6-ijg
192 REQUIRED_PACKAGES += image/library/libpng16
193 REQUIRED_PACKAGES += library/icu
194 REQUIRED_PACKAGES += library/libxml2
195 REQUIRED_PACKAGES += library/libxslt
196 REQUIRED_PACKAGES += library/openldap
197 REQUIRED_PACKAGES += library/readline
198 REQUIRED_PACKAGES += library/security/openssl
199 REQUIRED_PACKAGES += library/uw-imap
200 REQUIRED_PACKAGES += library/zlib
201 REQUIRED_PACKAGES += system/library
202 REQUIRED_PACKAGES += system/library/gcc-4-runtime
203 REQUIRED_PACKAGES += system/library/math
204 REQUIRED_PACKAGES += system/library/security/libmcrypt
205 REQUIRED_PACKAGES += text/aspell
206 REQUIRED_PACKAGES += text/tidy
207 REQUIRED_PACKAGES += web/curl
208 REQUIRED_PACKAGES += web/php-56/php-cli
209 REQUIRED_PACKAGES += web/server/apache-22