Update of /cvsroot/fink/experimental/babayoshihiko/finkinfo
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv6874

Added Files:
        mapserver5.info 
Log Message:
php-mapscript5 as splitoff

--- NEW FILE: mapserver5.info ---
Package: mapserver5
Version: 5.6.5
Revision: 1001.3
Distribution: 10.5, 10.6
Architecture: i386
Description: Spatial Web Development Environment
License: BSD
Homepage: http://mapserver.org/
Maintainer: Kurt Schwehr <goat...@users.sourceforge.net>
DescDetail: <<
MapServer is an OpenSource development environment for constructing
spatially enabled Internet-web applications. The software builds upon
other popular OpenSource or freeware systems including Shapelib, 
FreeType, Proj.4, GDAL/OGR.
<<

Conflicts: mapserver
Replaces: mapserver

DescUsage: <<
To use mapserver5 you either copy the directory or the file: 
 cp %p/share/mapserver /Library/WebServer/CGI-Executables
or 
 cp %p/share/mapserver/mapserv /Library/WebServer/CGI-Executables
You may, of course, add symlink to CGI-Executables after you edit httpd.conf
to have Options: FollowSymLinks ExecCGI.

To use php-mapscript5, you need to enable php-cgi as follows:
  1. edit %p/etc/apache2/apache2.conf and add two lines as:
    Include /sw/etc/apache2/mods-available/*.load
    Include /sw/etc/apache2/mods-available/*.conf
  2. edit  %p/etc/apache2/sites-enabled/000-default and edit (not add)
    AllowOverride All
  3. Now run httpd
    $ sudo apache2ctl graceful
    and check
    http://localhost/mapscript/php-examples/phpinfo_mapscript.php

The documents are available at:
http://mapserver.gis.umn.edu/doc.html
<<

# Dependencies.
# do we really need proj if we have the proj-shlibs?
# Switching to libgeos3 ... libgeosc1-shlibs.  Was libgeos2-shlibs
Depends: <<
        libgeos3.2.2-shlibs,
        freetype219-shlibs,
        gd2-shlibs (>=2.0.34), 
        gdal-shlibs (>=1.4.0-1001), 
        libtiff-shlibs, proj-shlibs (>=4.5.0), pdflib-shlibs (>= 5.0.3-1003), 
libming0-shlibs,
        postgresql83-shlibs | postgresql84-shlibs,
        postgis83 | postgis84,
        libcurl4-shlibs,
        libpng14-shlibs,
        libjpeg8-shlibs
<<
# OpenGL support not yet ready
#        libftgl2-shlibs


BuildDepends: <<
        libiconv-dev, 
        libgeos3.2.2,
        freetype219,
        gd2 (>=2.0.34), 
        proj (>=4.5.0), gdal-dev (>=1.4.0-1001), 
        libtiff, pdflib (>= 5.0.3-1002), libming-dev, 
        postgresql83-dev | postgresql84-dev,
        postgis83 | postgis84,
        libcurl4,
        libssh2.1,
        libpng14,
        libjpeg8,
        libogdi3,
        hdf5, hdf,
        xerces-c-dev, 
        sqlite3-dev,
        libspatialite1,
        libiconv-dev, cfitsio,
        netcdf,
        unixodbc2 | unixodbc2-nox,
        libjasper.1, giflib | libungif, libtiff,
        php5-dev
<<
# OpenGL support not yet ready
#        libftgl2

# Unpack Phase.g
Source: http://download.osgeo.org/mapserver/mapserver-%v.tar.gz
Source-MD5: 33abbf27fa8e3bf2c53257c2188a67b3

SetCFLAGS: -O3 -funroll-loops -fexpensive-optimizations -ffast-math
#SetCPPFLAGS: -I%p/include/gdal1 
#SetCPPFLAGS: -I/usr/X11R6/include
#SetLDFLAGS: -L/usr/X11/lib

# Compile Phase.
ConfigureParams: --mandir=%i/share/man --with-gd=%p --with-pdf=%p 
--with-gdal=%p/bin/gdal-config --with-ogr=%p/bin/gdal-config --with-png=%p 
--with-proj=%p --with-ming=%p --with-curl-config=%p/bin/curl-config --with-wfs 
--with-wcs --with-wmsclient --with-wfsclient --with-sos 
--with-geos=%p/opt/libgeos3.2.2/bin/geos-config --with-postgis=%p/bin/pg_config 
--with-php=%p/include/php5

# --with-tiff Tiff not needed... used through gdal
# --with-fastcgi=%p # apache not configured with fastcgi in fink
# --with-opengl --with-ftgl=%p/include/FTGL # not yet ready

# Xpm support not available.  Collisions with png in /usr/X11/lib.  Fixes 
welcome!

CompileScript: <<
  #!/bin/bash -ev
  #printenv
  echo $PATH
  OPT_FLAGS="-O3 -funroll-loops -fexpensive-optimizations -ffast-math"

  CXXFLAGS="-I%p/include/gdal1 $OPT_FLAGS" CPPFLAGS="-I%p/include/gdal1 
$OPT_FLAGS" CFLAGS="-I%p/include/gdal1 $OPT_FLAGS" ./configure %c

  CXXFLAGS="-I%p/include/gdal1 $OPT_FLAGS" CPPFLAGS="-I%p/include/gdal1" 
CFLAGS="-I%p/include/gdal1 $OPT_FLAGS" make 

  pushd mapscript/php3
  echo "Action application/php5-script /cgi-bin/php5" >examples/.htaccess
  echo "AddHandler application/php5-script .php .phtml" >>examples/.htaccess
  popd
  
  # pushd mapscript/python
  # perl -pi -e "s|install_dir =|install_dir = '%b/mapscript/python/install' 
#|" setup.py
  # %p/bin/python2.6 setup.py build
  # popd
<<

# Install Phase.
InstallScript: <<
  mkdir -p %i/share/%n %i/bin %i/lib/cgi-bin

  cp mapserv scalebar shp2img shp2mysql.pl shp2pdf shptree shptreetst sortshp 
tile4ms %i/bin/

  echo "Creating symlink in cgi-bin"
  (cd %i/lib/cgi-bin && ln -s ../../bin/mapserv .)
  
  echo "Installing test"
  mkdir -p %i/share/mapscript
  cp -R tests %i/share/mapscript
  
  echo "Creating links for backward compatibility to older fink versions"
  (cd %i/share/%n && ln -s ../../bin/* .)
  
  echo "Installing PHP MapScript"
  mkdir -p %i/lib/php5/20060613 %i/var/www/mapscript
  cp %b/mapscript/php3/php_mapscript.so %i/lib/php5/20060613/
  cp -R %b/mapscript/php3/examples %i/var/www/mapscript/php-examples
    
  echo "Installing Python MapScript"
<<
DocFiles: GD-COPYING HISTORY.TXT INSTALL README README.CONFIGURE


SplitOff: <<
  Package: php-mapscript5
  Description: QGIS Shared Libraries
  Depends: <<
        apache2-common, mapserver5, php5-cgi
  <<
  Files: <<
    lib/php5/20060613/php_mapscript.so
    var/www/mapscript/php-examples
  <<
  DocFiles: mapscript/php3/README
#End of SplitOff
<<


DescPort: <<
The binaries are now also installed in bin so that they can be used
from the command line.
Kurt Schwehr <goat...@users.sourceforge.net> 5/2006

To use MapScript with Apache, check
  %p/etc/apache2/sites-available/default
  %p/etc/php5/cgi/php.ini

The previous maintainer followed README.CONFIGURE and the webiste:
http://www.kyngchaos.com/macosx/mapservinstall.html
<<


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to