php: enable freetds/mssql module
This commit is contained in:
parent
2ee978fead
commit
4d01341150
2 changed files with 14 additions and 4 deletions
1
srcpkgs/php-mssql
Symbolic link
1
srcpkgs/php-mssql
Symbolic link
|
@ -0,0 +1 @@
|
|||
php
|
|
@ -1,15 +1,14 @@
|
|||
# Template build file for 'php'
|
||||
pkgname=php
|
||||
version=5.6.13
|
||||
revision=1
|
||||
revision=2
|
||||
short_desc="An HTML-embedded scripting language"
|
||||
license="PHP"
|
||||
homepage="http://www.php.net"
|
||||
# XXX freetds and mssql modules.
|
||||
hostmakedepends="pkg-config bison"
|
||||
makedepends="postgresql-libs-devel libldap-devel libvpx-devel sqlite-devel
|
||||
unixodbc-devel net-snmp-devel libzip-devel enchant-devel libmcrypt-devel
|
||||
libltdl-devel libpng-devel libjpeg-turbo-devel icu55-devel
|
||||
unixodbc-devel freetds-devel net-snmp-devel libzip-devel enchant-devel
|
||||
libmcrypt-devel libltdl-devel libpng-devel libjpeg-turbo-devel icu55-devel
|
||||
libcurl-devel libxslt-devel libressl-devel bzip2-devel zlib-devel db-devel
|
||||
gmp-devel gdbm-devel freetype-devel apache-devel tidy-devel
|
||||
readline-devel libmysqlclient-devel"
|
||||
|
@ -70,6 +69,7 @@ do_build() {
|
|||
--with-ldap-sasl \
|
||||
--with-mcrypt=shared \
|
||||
--with-mhash \
|
||||
--with-mssql=shared,/usr \
|
||||
--with-mysql-sock=/run/mysqld/mysqld.sock \
|
||||
--with-mysql=shared,mysqlnd \
|
||||
--with-mysqli=shared,mysqlnd \
|
||||
|
@ -279,6 +279,15 @@ php-mcrypt_package() {
|
|||
}
|
||||
}
|
||||
|
||||
php-mssql_package() {
|
||||
lib32disabled=yes
|
||||
depends="php-${version}_${revision}"
|
||||
short_desc+=' - FreeTDS (MSSQL) module'
|
||||
pkg_install() {
|
||||
vmove "usr/lib/php/modules/*mssql*.so"
|
||||
}
|
||||
}
|
||||
|
||||
php-mysql_package() {
|
||||
lib32disabled=yes
|
||||
depends="php-${version}_${revision}"
|
||||
|
|
Loading…
Reference in a new issue