| 1 | NAME = php5 |
|---|
| 2 | VERSION = 5.3.13 |
|---|
| 3 | CATEGORIES = lang |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | SF_PROJ = $(shell echo $(NAME) | sed -e 's/[0-9]//g') |
|---|
| 6 | DISTNAME = $(SF_PROJ)-$(VERSION) |
|---|
| 7 | |
|---|
| 8 | PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 |
|---|
| 9 | |
|---|
| 10 | DESCRIPTION = A high-level scripting language. |
|---|
| 11 | define BLURB |
|---|
| 12 | PHP is a widely-used Open Source general-purpose scripting language that is |
|---|
| 13 | especially suited for Web development and can be embedded into HTML. Its |
|---|
| 14 | syntax draws upon C, Java, and Perl, and is easy to learn. PHP runs on many |
|---|
| 15 | different platforms and can be used as a standalone executable or as a |
|---|
| 16 | module under a variety of Web servers. It has excellent support for |
|---|
| 17 | databases, XML, LDAP, IMAP, Java, various Internet protocols, and general |
|---|
| 18 | data manipulation, and is extensible via its powerful API. It is actively |
|---|
| 19 | developed and supported by a talented and energetic international team. |
|---|
| 20 | Numerous Open Source and commercial PHP-based application packages are |
|---|
| 21 | available. |
|---|
| 22 | endef |
|---|
| 23 | |
|---|
| 24 | EXTRA_MODULATORS = SAPI |
|---|
| 25 | MODULATIONS_SAPI = cgi ap2 |
|---|
| 26 | MERGE_SCRIPTS_isa-default-sapi-cgi = copy-all |
|---|
| 27 | MERGE_SCRIPTS_isa-default-sapi-ap2 = copy-all |
|---|
| 28 | |
|---|
| 29 | # turn on the build scripts to enable/disable modules |
|---|
| 30 | PHP5_EXT = 1 |
|---|
| 31 | AP2_MODS = 1 |
|---|
| 32 | AP2_MODFILES = *libphp5.so |
|---|
| 33 | |
|---|
| 34 | # at least for a decent echo used during build. |
|---|
| 35 | PATH := /opt/csw/gnu:/opt/csw/bin:$(PATH) |
|---|
| 36 | |
|---|
| 37 | VENDOR_URL = http://www.php.net/ |
|---|
| 38 | MASTER_SITES = http://us.php.net/distributions/ |
|---|
| 39 | EXTRA_INSTALL_ENV = INSTALL_ROOT=$(DESTDIR) |
|---|
| 40 | |
|---|
| 41 | LICENSE = LICENSE |
|---|
| 42 | |
|---|
| 43 | DISTFILES += $(DISTNAME).tar.bz2 |
|---|
| 44 | DISTFILES += phpext pear.conf.CSW CSWphp5.postinstall |
|---|
| 45 | DISTFILES += CSWphp5.cswreleasenotes |
|---|
| 46 | DISTFILES += CSWap2-modphp5.cswreleasenotes |
|---|
| 47 | DISTFILES += CSWap2-modphp5.postinstall |
|---|
| 48 | DISTFILES += CSWap2-modphp5.preremove |
|---|
| 49 | DISTFILES += httpd-php5.conf |
|---|
| 50 | |
|---|
| 51 | PATCHFILES += 0001-Strip-usr-ucblib-references.patch |
|---|
| 52 | |
|---|
| 53 | BUILD_DEP_PKGS += CSWlibgdbm-dev CSWlibidn-dev CSWlibgd-dev CSWcoreutils |
|---|
| 54 | BUILD_DEP_PKGS += CSWlibxml2-dev CSWlibexpat1 CSWlibz-dev CSWlibcurl-dev CSWjpeg |
|---|
| 55 | BUILD_DEP_PKGS += CSWlibpng-dev CSWt1lib CSWxpm CSWlibgdbm-dev CSWlibgmp10 |
|---|
| 56 | BUILD_DEP_PKGS += CSWggettext-dev CSWlibssl-dev CSWlibgd2 CSWbdb42devel |
|---|
| 57 | BUILD_DEP_PKGS += CSWlibcares-dev CSWftype2 CSWlibiconv-dev CSWimap-devel |
|---|
| 58 | BUILD_DEP_PKGS += CSWoldapdevel CSWlibkrb5-dev CSWsasl CSWlibltdl7 |
|---|
| 59 | BUILD_DEP_PKGS += CSWlibmcrypt CSWfreetds CSWmysql-dev CSWunixodbc |
|---|
| 60 | BUILD_DEP_PKGS += CSWlibreadline-dev CSWlibncurses-dev CSWnetsnmp-dev |
|---|
| 61 | BUILD_DEP_PKGS += CSWlibsqlite3-dev CSWaspell CSWtidy-dev CSWpostgresql |
|---|
| 62 | BUILD_DEP_PKGS += CSWlibfreetype-dev |
|---|
| 63 | # NOTE: I think this is a leftover bug. we shouldn't depend on two versions |
|---|
| 64 | # of sqlite... |
|---|
| 65 | BUILD_DEP_PKGS += CSWlibsqlite3-0 |
|---|
| 66 | |
|---|
| 67 | PRESERVECONF = $(sysconfdir)/php.ini $(sysconfdir)/pear.conf |
|---|
| 68 | PRESERVECONF += /opt/csw/apache2/etc/extra/httpd-php5.conf |
|---|
| 69 | MIGRATE_FILES_CSWphp5 = "php.ini" |
|---|
| 70 | MIGRATE_SOURCE_DIR_CSWphp5 = /opt/csw/php5/lib |
|---|
| 71 | MIGRATE_DEST_DIR = $(sysconfdir) |
|---|
| 72 | |
|---|
| 73 | define php5_subpackage |
|---|
| 74 | PACKAGES += CSWphp5-$(1) |
|---|
| 75 | CATALOGNAME_CSWphp5-$(1) ?= php5_$(1) |
|---|
| 76 | SPKG_DESC_CSWphp5-$(1) ?= The $(1) extention for PHP5 |
|---|
| 77 | RUNTIME_DEP_PKGS_CSWphp5-$(1) ?= CSWphp5 $(2) |
|---|
| 78 | OBSOLETED_BY_CSWphp5-$(1) ?= CSWphp5$(1) |
|---|
| 79 | PKGFILES_CSWphp5-$(1) ?= .*lib/php/extensions/.*/$(1).so .*php5/extensions/$(1) |
|---|
| 80 | CHECKPKG_OVERRIDES_CSWphp5-$(1) += surplus-dependency|CSWphp5 |
|---|
| 81 | endef |
|---|
| 82 | |
|---|
| 83 | PACKAGES = CSWphp5 |
|---|
| 84 | CATALOGNAME_CSWphp5 = php5 |
|---|
| 85 | SPKG_DESC_CSWphp5 = A High-Level Scripting Language |
|---|
| 86 | RUNTIME_DEP_PKGS_CSWphp5 += CSWlibxml2-2 CSWlibiconv2 CSWlibexpat1 CSWlibz1 |
|---|
| 87 | RUNTIME_DEP_PKGS_CSWphp5 += CSWlibicuio48 CSWlibicuuc48 CSWlibicui18n48 |
|---|
| 88 | RUNTIME_DEP_PKGS_CSWphp5 += CSWlibicudata48 |
|---|
| 89 | INCOMPATIBLE_PKGS_CSWphp5 = CSWphp5mimemagic CSWphp5mhash CSWphp5dbase |
|---|
| 90 | INCOMPATIBLE_PKGS_CSWphp5 += CSWphp5ncurses CSWmodphp5 |
|---|
| 91 | # embeded 'magic' information to detect file types...odd, but... |
|---|
| 92 | CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/opt/csw/php5/bin/php |
|---|
| 93 | CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php/PEAR/Config.php |
|---|
| 94 | CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/opt/csw/php5/bin/php-cgi |
|---|
| 95 | # verify these... |
|---|
| 96 | CHECKPKG_OVERRIDES_CSWphp5 += file-with-bad-content|/usr/local|root/etc/opt/csw/php5/php.ini.CSW |
|---|
| 97 | |
|---|
| 98 | PACKAGES += CSWphp5-dev |
|---|
| 99 | CATALOGNAME_CSWphp5-dev = php5_dev |
|---|
| 100 | SPKG_DESC_CSWphp5-dev = Development files for php5 |
|---|
| 101 | RUNTIME_DEP_PKGS_CSWphp5-dev = CSWphp5 |
|---|
| 102 | OBSOLETED_BY_CSWphp5-dev = CSWphp5devel |
|---|
| 103 | PKGFILES_CSWphp5-dev = $(prefix)/php5/bin/php-config |
|---|
| 104 | PKGFILES_CSWphp5-dev = $(prefix)/bin/php-config |
|---|
| 105 | PKGFILES_CSWphp5-dev += $(prefix)/php5/bin/phpize |
|---|
| 106 | PKGFILES_CSWphp5-dev += $(prefix)/php5/bin/peardev |
|---|
| 107 | PKGFILES_CSWphp5-dev += $(prefix)/bin/peardev |
|---|
| 108 | PKGFILES_CSWphp5-dev += $(prefix)/php5/lib/php/build/.* |
|---|
| 109 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/TSRM.* |
|---|
| 110 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/Zend.* |
|---|
| 111 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/include.* |
|---|
| 112 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/main.* |
|---|
| 113 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/regex.* |
|---|
| 114 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/date.* |
|---|
| 115 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/filter.* |
|---|
| 116 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/libxml.* |
|---|
| 117 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/pcre.* |
|---|
| 118 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/spl.* |
|---|
| 119 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/standard.* |
|---|
| 120 | PKGFILES_CSWphp5-dev += $(prefix)/php5/include/php/ext/xml.* |
|---|
| 121 | PKGFILES_CSWphp5-dev += $(prefix)/php5/man/man1/php-config.1 |
|---|
| 122 | PKGFILES_CSWphp5-dev += $(prefix)/php5/man/man1/phpize.1 |
|---|
| 123 | CHECKPKG_OVERRIDES_CSWphp5-dev += surplus-dependency|CSWphp5 |
|---|
| 124 | CHECKPKG_OVERRIDES_CSWphp5-dev += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php/build/libtool.m4 |
|---|
| 125 | CHECKPKG_OVERRIDES_CSWphp5-dev += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php/build/acinclude.m4 |
|---|
| 126 | CHECKPKG_OVERRIDES_CSWphp5-dev += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php/build/shtool |
|---|
| 127 | CHECKPKG_OVERRIDES_CSWphp5-dev += file-with-bad-content|/usr/local|root/opt/csw/php5/lib/php/build/phpize.m4 |
|---|
| 128 | CHECKPKG_OVERRIDES_CSWphp5-dev += file-with-bad-content|/usr/local|root/opt/csw/php5/man/man1/php-config.1 |
|---|
| 129 | |
|---|
| 130 | PACKAGES += CSWap2-modphp5 |
|---|
| 131 | CATALOGNAME_CSWap2-modphp5 = ap2_modphp5 |
|---|
| 132 | SPKG_DESC_CSWap2-modphp5 = The apache 2.2.x php5 module |
|---|
| 133 | RUNTIME_DEP_PKGS_CSWap2-modphp5 = CSWphp5 CSWapache2 CSWlibxml2-2 CSWlibiconv2 |
|---|
| 134 | RUNTIME_DEP_PKGS_CSWap2-modphp5 += CSWlibexpat1 CSWlibz1 |
|---|
| 135 | RUNTIME_DEP_PKGS_CSWap2-modphp5 += CSWlibicuio48 CSWlibicuuc48 |
|---|
| 136 | RUNTIME_DEP_PKGS_CSWap2-modphp5 += CSWlibicui18n48 CSWlibicudata48 |
|---|
| 137 | OBSOLETED_BY_CSWap2-modphp5 = CSWap2modphp5 |
|---|
| 138 | PKGFILES_CSWap2-modphp5 += $(prefix)/apache2.* |
|---|
| 139 | CHECKPKG_OVERRIDES_CSWap2-modphp5 += surplus-dependency|CSWphp5 |
|---|
| 140 | CHECKPKG_OVERRIDES_CSWap2-modphp5 += file-with-bad-content|/usr/local|root/opt/csw/apache2/libexec/libphp5.so |
|---|
| 141 | |
|---|
| 142 | $(eval $(call php5_subpackage,bcmath,CSWlibz1)) |
|---|
| 143 | $(eval $(call php5_subpackage,bz2,CSWlibbz2-1-0 CSWlibz1)) |
|---|
| 144 | $(eval $(call php5_subpackage,calendar,CSWlibz1)) |
|---|
| 145 | $(eval $(call php5_subpackage,ctype,CSWlibz1)) |
|---|
| 146 | $(eval $(call php5_subpackage,curl,CSWlibcurl4 CSWlibidn11 CSWlibssl1-0-0 CSWlibz1)) |
|---|
| 147 | $(eval $(call php5_subpackage,dba,CSWlibgdbm4 CSWbdb42 CSWlibz1)) |
|---|
| 148 | $(eval $(call php5_subpackage,dom,CSWlibiconv2 CSWlibxml2-2 CSWlibz1)) |
|---|
| 149 | PKGFILES_CSWphp5-dom += .*include/php/ext/dom.* |
|---|
| 150 | $(eval $(call php5_subpackage,exif,CSWlibz1)) |
|---|
| 151 | $(eval $(call php5_subpackage,ftp,CSWlibssl1-0-0 CSWlibz1)) |
|---|
| 152 | $(eval $(call php5_subpackage,gd,CSWlibfreetype6 CSWlibgd2 CSWlibjpeg7 CSWlibpng12-0 CSWt1lib CSWxpm CSWlibz1)) |
|---|
| 153 | PKGFILES_CSWphp5-gd += .*/include/php/ext/gd.* |
|---|
| 154 | $(eval $(call php5_subpackage,gettext,CSWlibintl8 CSWlibz1)) |
|---|
| 155 | $(eval $(call php5_subpackage,gmp,CSWlibgmp10 CSWlibz1)) |
|---|
| 156 | $(eval $(call php5_subpackage,hash,CSWlibz1)) |
|---|
| 157 | PKGFILES_CSWphp5-hash += .*/include/php/ext/hash.* |
|---|
| 158 | $(eval $(call php5_subpackage,iconv,CSWlibiconv2 CSWlibz1)) |
|---|
| 159 | PKGFILES_CSWphp5-iconv += .*/include/php/ext/iconv.* |
|---|
| 160 | $(eval $(call php5_subpackage,imap,CSWimaprt CSWlibk5crypto3 CSWlibgssapi-krb5-2 CSWlibcom-err3 CSWlibkrb5-3 CSWlibssl1-0-0 CSWlibz1)) |
|---|
| 161 | $(eval $(call php5_subpackage,json,CSWlibz1)) |
|---|
| 162 | $(eval $(call php5_subpackage,ldap,CSWliblber2-4-2 CSWlibldap2-4-2 CSWlibsasl2-2 CSWlibz1)) |
|---|
| 163 | $(eval $(call php5_subpackage,mbstring,CSWlibz1)) |
|---|
| 164 | PKGFILES_CSWphp5-mbstring += .*/include/php/ext/mbstring.* |
|---|
| 165 | $(eval $(call php5_subpackage,mcrypt,CSWlibmcrypt4 CSWlibltdl7 CSWlibz1)) |
|---|
| 166 | $(eval $(call php5_subpackage,mssql,CSWlibsybdb5 CSWlibz1)) |
|---|
| 167 | $(eval $(call php5_subpackage,mysql,CSWlibmysqlclient15 CSWlibz1)) |
|---|
| 168 | $(eval $(call php5_subpackage,mysqli,CSWlibmysqlclient15 CSWlibz1)) |
|---|
| 169 | $(eval $(call php5_subpackage,odbc,CSWlibodbc2 CSWlibz1)) |
|---|
| 170 | $(eval $(call php5_subpackage,openssl,CSWlibssl1-0-0 CSWlibgssapi-krb5-2 CSWlibkrb5-3 CSWlibk5crypto3 CSWlibcom-err3 CSWlibz1)) |
|---|
| 171 | $(eval $(call php5_subpackage,pcntl,CSWlibz1)) |
|---|
| 172 | $(eval $(call php5_subpackage,pdo,CSWlibz1)) |
|---|
| 173 | PKGFILES_CSWphp5-pdo += .*/include/php/ext/pdo.* |
|---|
| 174 | $(eval $(call php5_subpackage,pdomysql,CSWlibmysqlclient15 CSWlibz1 CSWphp5-pdo)) |
|---|
| 175 | PKGFILES_CSWphp5-pdomysql += .*/lib/php/extensions/.*/pdo_mysql.so |
|---|
| 176 | PKGFILES_CSWphp5-pdomysql += .*extensions/pdo_mysql |
|---|
| 177 | CHECKPKG_OVERRIDES_CSWphp5-pdomysql += surplus-dependency|CSWphp5-pdo |
|---|
| 178 | CHECKPKG_OVERRIDES_CSWphp5-pdomysql += surplus-dependency|CSWphp5 |
|---|
| 179 | $(eval $(call php5_subpackage,pdoodbc,CSWlibodbc2 CSWphp5-pdo CSWlibz1)) |
|---|
| 180 | PKGFILES_CSWphp5-pdoodbc += .*/lib/php/extensions/.*/pdo_odbc.so |
|---|
| 181 | PKGFILES_CSWphp5-pdoodbc += .*extensions/pdo_odbc |
|---|
| 182 | CHECKPKG_OVERRIDES_CSWphp5-pdoodbc += surplus-dependency|CSWphp5-pdo |
|---|
| 183 | CHECKPKG_OVERRIDES_CSWphp5-pdoodbc += surplus-dependency|CSWphp5 |
|---|
| 184 | $(eval $(call php5_subpackage,pdopgsql,CSWlibpq CSWphp5-pdo CSWlibz1)) |
|---|
| 185 | PKGFILES_CSWphp5-pdopgsql += .*/lib/php/extensions/.*/pdo_pgsql.so |
|---|
| 186 | PKGFILES_CSWphp5-pdopgsql += .*extensions/pdo_pgsql |
|---|
| 187 | CHECKPKG_OVERRIDES_CSWphp5-pdopgsql += surplus-dependency|CSWphp5-pdo |
|---|
| 188 | CHECKPKG_OVERRIDES_CSWphp5-pdopgsql += surplus-dependency|CSWphp5 |
|---|
| 189 | $(eval $(call php5_subpackage,pdosqlite,CSWlibsqlite3-0 CSWphp5-pdo CSWlibz1)) |
|---|
| 190 | PKGFILES_CSWphp5-pdosqlite += .*/lib/php/extensions/.*/pdo_sqlite.so |
|---|
| 191 | PKGFILES_CSWphp5-pdosqlite += .*extensions/pdo_sqlite |
|---|
| 192 | CHECKPKG_OVERRIDES_CSWphp5-pdosqlite += surplus-dependency|CSWphp5-pdo |
|---|
| 193 | CHECKPKG_OVERRIDES_CSWphp5-pdosqlite += surplus-dependency|CSWphp5 |
|---|
| 194 | $(eval $(call php5_subpackage,pgsql,CSWlibpq CSWlibz1)) |
|---|
| 195 | $(eval $(call php5_subpackage,posix,CSWlibz1)) |
|---|
| 196 | $(eval $(call php5_subpackage,pspell,CSWaspell CSWlibz1)) |
|---|
| 197 | $(eval $(call php5_subpackage,readline,CSWlibreadline6 CSWlibncurses5 CSWlibz1)) |
|---|
| 198 | $(eval $(call php5_subpackage,session,CSWlibmm CSWlibz1)) |
|---|
| 199 | PKGFILES_CSWphp5-session += .*/include/php/ext/session.* |
|---|
| 200 | $(eval $(call php5_subpackage,shmop,CSWlibz1)) |
|---|
| 201 | $(eval $(call php5_subpackage,snmp,CSWlibnetsnmp25 CSWlibz1)) |
|---|
| 202 | $(eval $(call php5_subpackage,soap,CSWlibiconv2 CSWlibxml2-2 CSWlibz1)) |
|---|
| 203 | $(eval $(call php5_subpackage,sockets,CSWlibz1)) |
|---|
| 204 | $(eval $(call php5_subpackage,sqlite,CSWsqlite CSWlibz1)) |
|---|
| 205 | PKGFILES_CSWphp5-sqlite += .*/include/php/ext/sqlite.* |
|---|
| 206 | $(eval $(call php5_subpackage,sysvmsg,CSWlibz1)) |
|---|
| 207 | $(eval $(call php5_subpackage,sysvsem,CSWlibz1)) |
|---|
| 208 | $(eval $(call php5_subpackage,sysvshm,CSWlibz1)) |
|---|
| 209 | $(eval $(call php5_subpackage,tidy,CSWlibtidy0-99 CSWlibz1)) |
|---|
| 210 | $(eval $(call php5_subpackage,tokenizer,CSWlibz1)) |
|---|
| 211 | $(eval $(call php5_subpackage,wddx,CSWlibz1)) |
|---|
| 212 | $(eval $(call php5_subpackage,xmlreader,CSWlibiconv2 CSWlibxml2-2 CSWlibz1)) |
|---|
| 213 | $(eval $(call php5_subpackage,xmlrpc,CSWlibiconv2 CSWlibexpat1 CSWlibz1)) |
|---|
| 214 | $(eval $(call php5_subpackage,xmlwriter,CSWlibiconv2 CSWlibxml2-2 CSWlibz1)) |
|---|
| 215 | $(eval $(call php5_subpackage,xsl,CSWlibiconv2 CSWlibxml2-2 CSWlibxslt1 CSWlibexslt0 CSWlibz1)) |
|---|
| 216 | $(eval $(call php5_subpackage,zip,CSWlibz1)) |
|---|
| 217 | |
|---|
| 218 | EXTRA_CFLAGS = -I$(prefix)/include/ncursesw |
|---|
| 219 | EXTRA_LIB = /opt/csw/postgresql/lib |
|---|
| 220 | |
|---|
| 221 | # We link with /usr/ccs/bin/ld which requires setting the path to libCstd.so, |
|---|
| 222 | # using CC as linker would have made this automatic. |
|---|
| 223 | SUBDIR64-sparc = v9 |
|---|
| 224 | SUBDIR64-i386 = amd64 |
|---|
| 225 | EXTRA_LINKER_FLAGS = -L$($(GARCOMPILER)_CC_HOME)/lib/$(SUBDIR$(MEMORYMODEL)-$(GARCH)) -lCstd -lz |
|---|
| 226 | |
|---|
| 227 | NOISALIST = 1 |
|---|
| 228 | STRIP_LIBTOOL = 1 |
|---|
| 229 | |
|---|
| 230 | sysconfdir = /etc$(prefix)/php5 |
|---|
| 231 | |
|---|
| 232 | CONFIGURE_ARGS += --prefix=$(prefix)/php5 |
|---|
| 233 | CONFIGURE_ARGS += --sysconfdir=$(sysconfdir) |
|---|
| 234 | ## build this static, php can not run without it. |
|---|
| 235 | ## it is more efficient to have this built into the php binary |
|---|
| 236 | CONFIGURE_ARGS += --enable-simplexml |
|---|
| 237 | CONFIGURE_ARGS += --disable-static |
|---|
| 238 | CONFIGURE_ARGS += --enable-xml |
|---|
| 239 | CONFIGURE_ARGS += --enable-intl |
|---|
| 240 | CONFIGURE_ARGS += --with-libxml-dir=$(prefix) |
|---|
| 241 | CONFIGURE_ARGS += --with-config-file-path=$(sysconfdir) |
|---|
| 242 | CONFIGURE_ARGS += --with-config-file-scan-dir=$(sysconfdir)/conf.d |
|---|
| 243 | CONFIGURE_ARGS += --enable-bcmath=shared |
|---|
| 244 | CONFIGURE_ARGS += --enable-calendar=shared |
|---|
| 245 | CONFIGURE_ARGS += --enable-ctype=shared |
|---|
| 246 | CONFIGURE_ARGS += --enable-dba=shared |
|---|
| 247 | CONFIGURE_ARGS += --enable-dom=shared |
|---|
| 248 | CONFIGURE_ARGS += --enable-exif=shared |
|---|
| 249 | CONFIGURE_ARGS += --enable-filter=shared |
|---|
| 250 | CONFIGURE_ARGS += --enable-ftp=shared |
|---|
| 251 | CONFIGURE_ARGS += --enable-gd-jis-conv |
|---|
| 252 | CONFIGURE_ARGS += --enable-gd-native-ttf |
|---|
| 253 | CONFIGURE_ARGS += --enable-hash=shared |
|---|
| 254 | CONFIGURE_ARGS += --enable-json=shared |
|---|
| 255 | CONFIGURE_ARGS += --enable-magic-quotes |
|---|
| 256 | CONFIGURE_ARGS += --enable-mbstring=shared |
|---|
| 257 | CONFIGURE_ARGS += --enable-pcntl=shared |
|---|
| 258 | CONFIGURE_ARGS += --enable-pdo=shared |
|---|
| 259 | CONFIGURE_ARGS += --enable-phar=shared |
|---|
| 260 | CONFIGURE_ARGS += --enable-posix=shared |
|---|
| 261 | CONFIGURE_ARGS += --enable-session=shared |
|---|
| 262 | CONFIGURE_ARGS += --enable-shmop=shared |
|---|
| 263 | CONFIGURE_ARGS += --enable-soap=shared |
|---|
| 264 | CONFIGURE_ARGS += --enable-sockets=shared |
|---|
| 265 | CONFIGURE_ARGS += --enable-sqlite-utf8 |
|---|
| 266 | CONFIGURE_ARGS += --enable-sysvmsg=shared |
|---|
| 267 | CONFIGURE_ARGS += --enable-sysvsem=shared |
|---|
| 268 | CONFIGURE_ARGS += --enable-sysvshm=shared |
|---|
| 269 | CONFIGURE_ARGS += --enable-tokenizer=shared |
|---|
| 270 | CONFIGURE_ARGS += --enable-wddx=shared |
|---|
| 271 | CONFIGURE_ARGS += --enable-xmlreader=shared |
|---|
| 272 | CONFIGURE_ARGS += --enable-xmlwriter=shared |
|---|
| 273 | CONFIGURE_ARGS += --enable-zip=shared |
|---|
| 274 | CONFIGURE_ARGS += --with-bz2=shared,$(prefix) |
|---|
| 275 | CONFIGURE_ARGS += --with-curl=shared,$(prefix) |
|---|
| 276 | CONFIGURE_ARGS += --with-curlwrappers |
|---|
| 277 | CONFIGURE_ARGS += --with-db4=$(prefix)/bdb4 |
|---|
| 278 | CONFIGURE_ARGS += --with-exec-dir=$(prefix)/php5/bin |
|---|
| 279 | CONFIGURE_ARGS += --with-freetype-dir=$(prefix) |
|---|
| 280 | CONFIGURE_ARGS += --with-gd=shared,$(prefix) |
|---|
| 281 | CONFIGURE_ARGS += --with-gdbm=$(prefix) |
|---|
| 282 | CONFIGURE_ARGS += --with-gettext=shared,$(prefix) |
|---|
| 283 | CONFIGURE_ARGS += --with-gmp=shared,$(prefix) |
|---|
| 284 | CONFIGURE_ARGS += --with-iconv=shared,$(prefix) |
|---|
| 285 | CONFIGURE_ARGS += --with-imap-ssl=$(prefix) |
|---|
| 286 | CONFIGURE_ARGS += --with-imap=shared,$(prefix) |
|---|
| 287 | CONFIGURE_ARGS += --with-jpeg-dir=$(prefix) |
|---|
| 288 | CONFIGURE_ARGS += --with-kerberos=$(prefix) |
|---|
| 289 | CONFIGURE_ARGS += --with-ldap-sasl=$(prefix) |
|---|
| 290 | CONFIGURE_ARGS += --with-ldap=shared,$(prefix) |
|---|
| 291 | CONFIGURE_ARGS += --with-libedit=no |
|---|
| 292 | CONFIGURE_ARGS += --with-libexpat-dir=$(prefix) |
|---|
| 293 | CONFIGURE_ARGS += --with-mcrypt=shared,$(prefix) |
|---|
| 294 | CONFIGURE_ARGS += --with-mhash=shared,$(prefix) |
|---|
| 295 | CONFIGURE_ARGS += --with-mm=$(prefix) |
|---|
| 296 | CONFIGURE_ARGS += --with-mssql=shared,$(prefix) |
|---|
| 297 | CONFIGURE_ARGS += --with-mysql=shared,$(prefix) |
|---|
| 298 | CONFIGURE_ARGS += --with-mysqli=shared,$(prefix)/bin/mysql_config |
|---|
| 299 | CONFIGURE_ARGS += --with-ndbm |
|---|
| 300 | CONFIGURE_ARGS += --with-openssl=shared,$(prefix) |
|---|
| 301 | CONFIGURE_ARGS += --with-pcre-dir=$(prefix) |
|---|
| 302 | CONFIGURE_ARGS += --with-pcre-regex |
|---|
| 303 | # not documented, but you can pass the path to mysql_config directly |
|---|
| 304 | # we need the 32-bit version, so we have to force this |
|---|
| 305 | CONFIGURE_ARGS += --with-pdo-mysql=shared,$(prefix)/bin/mysql_config |
|---|
| 306 | CONFIGURE_ARGS += --with-pdo-odbc=shared,unixODBC,$(prefix) |
|---|
| 307 | CONFIGURE_ARGS += --with-pdo-pgsql=shared,$(bindir)/ |
|---|
| 308 | CONFIGURE_ARGS += --with-pdo-sqlite=shared,$(prefix) |
|---|
| 309 | CONFIGURE_ARGS += --with-pear=shared |
|---|
| 310 | CONFIGURE_ARGS += --with-pgsql=shared,$(bindir)/ |
|---|
| 311 | CONFIGURE_ARGS += --with-png-dir=$(prefix) |
|---|
| 312 | CONFIGURE_ARGS += --with-pspell=shared,$(prefix) |
|---|
| 313 | CONFIGURE_ARGS += --with-readline=shared,/opt/csw |
|---|
| 314 | CONFIGURE_ARGS += --with-snmp=shared,$(prefix) |
|---|
| 315 | CONFIGURE_ARGS += --with-sqlite=shared,$(prefix) |
|---|
| 316 | CONFIGURE_ARGS += --with-t1lib=$(prefix) |
|---|
| 317 | CONFIGURE_ARGS += --with-tidy=shared,$(prefix) |
|---|
| 318 | CONFIGURE_ARGS += --with-unixODBC=shared,$(prefix) |
|---|
| 319 | CONFIGURE_ARGS += --with-xmlrpc=shared |
|---|
| 320 | CONFIGURE_ARGS += --with-xpm-dir=$(prefix) |
|---|
| 321 | CONFIGURE_ARGS += --with-xsl=shared,$(prefix) |
|---|
| 322 | CONFIGURE_ARGS += --with-zlib-dir=$(prefix) |
|---|
| 323 | CONFIGURE_ARGS += --with-zlib=$(prefix) |
|---|
| 324 | CONFIGURE_ARGS += --enable-cli |
|---|
| 325 | |
|---|
| 326 | ifeq ($(SAPI),ap2) |
|---|
| 327 | CONFIGURE_ARGS += --with-apxs2=$(prefix)/apache2/sbin/apxs |
|---|
| 328 | endif |
|---|
| 329 | |
|---|
| 330 | # Disable Tests (report submitted to PHP QA) |
|---|
| 331 | SKIPTEST = 1 |
|---|
| 332 | #ENABLE_CHECK = 0 |
|---|
| 333 | TEST_TARGET = test |
|---|
| 334 | |
|---|
| 335 | include gar/category.mk |
|---|
| 336 | |
|---|
| 337 | # they're using git now and ship a .gitignore that excludes aclocal.m4 |
|---|
| 338 | # that broke one of our patches so we'll nuke .gitignore before we patch |
|---|
| 339 | pre-patch-modulated: |
|---|
| 340 | @(cd $(WORKSRC); rm .gitignore; git add -A; git ci -m 'adding files that were previously ignored' ) |
|---|
| 341 | @$(MAKECOOKIE) |
|---|
| 342 | |
|---|
| 343 | # this allows apxs to install the module. stupid, but i couldn't make |
|---|
| 344 | # the darn thing _not_ do try to add the httpd.conf lines, even with |
|---|
| 345 | # patching... |
|---|
| 346 | pre-install-modulated: AP2SYSCONF=/opt/csw/apache2/etc |
|---|
| 347 | pre-install-modulated: $(PI_SCRIPTS) |
|---|
| 348 | @(mkdir -p $(DESTDIR)$(AP2SYSCONF); \ |
|---|
| 349 | cp $(AP2SYSCONF)/httpd.conf $(DESTDIR)$(AP2SYSCONF) ) |
|---|
| 350 | @$(MAKECOOKIE) |
|---|
| 351 | |
|---|
| 352 | post-install-modulated: AP2SYSCONF=/opt/csw/apache2/etc/httpd.conf |
|---|
| 353 | post-install-modulated: AP2EXTCONF=/opt/csw/apache2/etc/extra |
|---|
| 354 | post-install-modulated: INIDEST=$(DESTDIR)/etc$(prefix)/php5/php.ini |
|---|
| 355 | post-install-modulated: |
|---|
| 356 | @rm -f $(DESTDIR)$(AP2SYSCONF) |
|---|
| 357 | @mkdir -p $(DESTDIR)$(AP2EXTCONF) |
|---|
| 358 | @cp $(WORKDIR)/httpd-php5.conf $(DESTDIR)$(AP2EXTCONF) |
|---|
| 359 | @cp $(WORKSRC)/php.ini-production $(INIDEST) |
|---|
| 360 | @ginstall -m 0755 $(DOWNLOADDIR)/phpext $(DESTDIR)$(prefix)/php5/bin/ |
|---|
| 361 | @perl -pi -e 's/^;extension=php_(.*).dll/;extension=$$1.so/' $(INIDEST) |
|---|
| 362 | @rm -rf $(DESTDIR)/.cha* $(DESTDIR)/.dep* $(DESTDIR)/.reg* $(DESTDIR)/.l* $(DESTDIR)/.f* |
|---|
| 363 | @perl -pi -e 's!s:17:"http://proxy:3128!s:0:"!' $(DESTDIR)$(sysconfdir)/pear.conf* |
|---|
| 364 | @mkdir -p $(DESTDIR)/opt/csw/bin |
|---|
| 365 | @( cd $(DESTDIR)/opt/csw/bin; \ |
|---|
| 366 | for f in pear peardev pecl phar php php-config; do \ |
|---|
| 367 | ln -s ../php5/bin/$$f $$f; \ |
|---|
| 368 | done ) |
|---|
| 369 | @$(MAKECOOKIE) |
|---|
| 370 | |
|---|
| 371 | post-merge: |
|---|
| 372 | @echo " ==> Killing phar" |
|---|
| 373 | @(rm $(PKGROOT)/opt/csw/php5/extensions/phar) |
|---|
| 374 | @echo " ==> Fixing php.ini: adding loadable session.so support" |
|---|
| 375 | @( cd $(PKGROOT)/$(sysconfdir)/; \ |
|---|
| 376 | perl -pi -e 's/extension=bz2.so/extension=session.so\n;extension=bz2.so/' php.ini.CSW; ) |
|---|
| 377 | @$(MAKECOOKIE) |
|---|