the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: mapserver5
Version: 5.6.5
Revision: 1001
Distribution: 10.5, 10.6
Architecture: i386
Description: Spatial Web Development Environment
License: BSD
Homepage: http://mapserver.org/
Maintainer: Kurt Schwehr
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 mapserver 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.
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
<<
# 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-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
<<
# Install Phase.
InstallScript: <<
mkdir -p %i/share/%n %i/bin
cp mapserv scalebar shp2img shp2mysql.pl shp2pdf shptree shptreetst sortshp tile4ms %i/bin/
echo "Creating links for backward compatibility to older fink versions"
(cd %i/share/%n && ln -s ../../bin/* .)
<<
DocFiles: GD-COPYING HISTORY.TXT INSTALL README README.CONFIGURE
DescPort: <<
Need to look into mapscript again.
The binaries are now also installed in bin so that they can be used
from the command line. Should mapserver depend on apache2 and put it
into the apache2 cgi directory?
Kurt Schwehr
The previous maintainer followed README.CONFIGURE and the webiste:
http://www.kyngchaos.com/macosx/mapservinstall.html
<<