diff -rcN geos-3.3.3-virgin/debian/control geos-3.3.3/debian/control
*** geos-3.3.3-virgin/debian/control	2014-01-31 14:48:40.918484042 +0000
--- geos-3.3.3/debian/control	2014-01-31 14:51:43.390464428 +0000
***************
*** 3,9 ****
  Priority: optional
  Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
  Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
! Build-Depends: debhelper (>= 9), doxygen, swig, ruby1.8, ruby1.8-dev
  Build-Conflicts: ruby1.9.1, ruby1.9.1-dev
  Standards-Version: 3.9.3
  Homepage: http://trac.osgeo.org/geos/
--- 3,9 ----
  Priority: optional
  Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
  Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
! Build-Depends: debhelper (>= 9), doxygen, swig, ruby1.8, ruby1.8-dev, php5-dev, phpunit
  Build-Conflicts: ruby1.9.1, ruby1.9.1-dev
  Standards-Version: 3.9.3
  Homepage: http://trac.osgeo.org/geos/
***************
*** 106,111 ****
--- 106,122 ----
   .
   This package contains the Ruby bindings for GEOS.
  
+ Package: libgeos-php5
+ Section: web
+ Architecture: any
+ Depends: ${shlibs:Depends}, ${misc:Depends}
+ Description: GEOS bindings for PHP
+  GEOS provides a spatial object model and fundamental geometric
+  functions. It implements the geometry model defined in the
+  OpenGIS Consortium Simple Features Specification for SQL.
+  .
+  This package contains the PHP bindings for GEOS.
+ 
  Package: libgeos-dbg
  Architecture: any
  Section: debug
diff -rcN geos-3.3.3-virgin/debian/control.in geos-3.3.3/debian/control.in
*** geos-3.3.3-virgin/debian/control.in	2014-01-31 14:48:40.918484042 +0000
--- geos-3.3.3/debian/control.in	2014-01-31 14:52:51.822484392 +0000
***************
*** 3,9 ****
  Priority: optional
  Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
  Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
! Build-Depends: debhelper (>= 9), doxygen, swig, ruby1.8, ruby1.8-dev
  Build-Conflicts: ruby1.9.1, ruby1.9.1-dev
  Standards-Version: 3.9.3
  Homepage: http://trac.osgeo.org/geos/
--- 3,9 ----
  Priority: optional
  Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
  Uploaders: Francesco Paolo Lovergine <frankie@debian.org>
! Build-Depends: debhelper (>= 9), doxygen, swig, ruby1.8, ruby1.8-dev, php5-dev, phpunit
  Build-Conflicts: ruby1.9.1, ruby1.9.1-dev
  Standards-Version: 3.9.3
  Homepage: http://trac.osgeo.org/geos/
***************
*** 106,111 ****
--- 106,122 ----
   .
   This package contains the Ruby bindings for GEOS.
  
+ Package: libgeos-php5
+ Section: web
+ Architecture: any
+ Depends: ${shlibs:Depends}, ${misc:Depends}
+ Description: GEOS bindings for PHP
+  GEOS provides a spatial object model and fundamental geometric
+  functions. It implements the geometry model defined in the
+  OpenGIS Consortium Simple Features Specification for SQL.
+  .
+  This package contains the PHP bindings for GEOS.
+ 
  Package: libgeos-dbg
  Architecture: any
  Section: debug
diff -rcN geos-3.3.3-virgin/debian/php.ini geos-3.3.3/debian/php.ini
*** geos-3.3.3-virgin/debian/php.ini	1970-01-01 01:00:00.000000000 +0100
--- geos-3.3.3/debian/php.ini	2014-01-31 14:49:32.118483890 +0000
***************
*** 0 ****
--- 1 ----
+ extension=geos.so
diff -rcN geos-3.3.3-virgin/debian/rules geos-3.3.3/debian/rules
*** geos-3.3.3-virgin/debian/rules	2014-01-31 14:48:40.918484042 +0000
--- geos-3.3.3/debian/rules	2014-01-31 14:54:50.678486978 +0000
***************
*** 59,64 ****
--- 59,65 ----
          --host=$(DEB_HOST_GNU_TYPE) \
          --build=$(DEB_BUILD_GNU_TYPE) \
          --enable-ruby \
+ 	--enable-php \
  		--prefix=/usr \
          --mandir=\$${prefix}/share/man \
          --infodir=\$${prefix}/share/info $(CONFFLAGS)
***************
*** 125,130 ****
--- 126,136 ----
  	cp -ax debian/tmp/usr/local/lib/site_ruby/1.8 \
  	       debian/libgeos-ruby1.8/usr/lib/ruby/1.8
  	find  debian/libgeos-ruby*/usr/lib/ruby -name "*.la" -delete || true
+ 	cp -ax debian/tmp/usr/lib/php5 \
+ 	       debian/libgeos-php5/usr/lib/php5
+ 	mkdir -p debian/libgeos-php5/etc/php5/conf.d
+ 	cp debian/php.ini \
+ 	   debian/etc/php5/conf.d/libgeos.ini
  
  # Must not depend on anything. This is to be called by
  # binary-arch/binary-indep
