Ticket #30250: mapserver-macports.diff
File mapserver-macports.diff, 11.8 KB (added by tbonfort (Thomas Bonfort), 13 years ago) |
---|
-
mapserver56/Portfile
2 2 3 3 PortSystem 1.0 4 4 5 name mapserver 6 version 5.2.0 7 maintainers googlemail.com:mbarchfe 5 name mapserver56 6 version 5.6.7 7 maintainers googlemail.com:mbarchfe \ 8 gmail.com:thomas.bonfort 8 9 categories gis 9 10 platforms darwin 10 11 … … 14 15 15 16 homepage http://mapserver.gis.umn.edu/ 16 17 master_sites http://download.osgeo.org/mapserver 18 distname mapserver-${version} 17 19 18 checksums md5 6c0f210eb6510f0a43b6d5b09df8bb83 20 conflicts mapserver mapserver60 21 checksums md5 5494e6c3de87f4e2b77b20ce79933883 19 22 20 23 depends_lib port:gd2 \ 21 port:geos 24 port:libpng \ 25 port:freetype \ 22 26 23 27 patchfiles patch-Makefile.in.diff 24 28 25 configure.args --with-gd=${prefix} 26 variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} { 27 depends_lib-append port:gdal 28 configure.args-append --with-gdal=${prefix}/bin/gdal-config \ 29 --with-ogr=${prefix}/bin/gdal-config 29 configure.args --with-gd=${prefix} \ 30 --with-png=${prefix} \ 31 --with-experimental-png \ 32 --with-zlib=${prefix} \ 33 --with-jpeg=${prefix} \ 34 --with-gif=${prefix} 35 36 use_parallel_build no 37 38 default_variants +wms +gdal +ogr +proj +wfs +proj \ 39 +geos +postgis +wmsclient +wfsclient \ 40 +wcs +sos +fastcgi 41 42 if {[variant_isset postgis]} { 43 #check for most recent version of postgresql installed 44 set HAVE_PGCONFIG [llength [glob -nocomplain -d ${prefix}/lib postgresql*/bin/pg_config]] 45 #if not found, intall the postgresql port 46 if {$HAVE_PGCONFIG == 0} { 47 depends_lib-append port:postgresql90 48 } 30 49 } 31 50 32 variant p roj description {Add projection and Web Map Service support} {33 depends_lib-append port:proj34 configure.args-append --with-proj=${prefix}51 variant postgis description {Add support for postgis sources} { 52 set PGSQL_DIR [lindex [lsort -dec [glob -d ${prefix}/lib postgresql*]] 0] 53 configure.args-append "--with-postgis=${PGSQL_DIR}/bin/pg_config" 35 54 } 36 55 56 variant wms description {Add WMS server support} { 57 default_variants-append +proj 58 } 59 60 variant wfs description {Add WFS server support} { 61 depends_lib-append port:libxml2 62 default_variants-append +proj +ogr +geos 63 configure.args-append --with-wfs 64 } 65 66 variant sos description {Add SOS server support} { 67 depends_lib-append port:libxml2 68 default_variants-append +proj +ogr 69 configure.args-append --with-sos 70 } 71 72 variant wcs description {Add WCS server support} { 73 default_variants-append +proj +gdal 74 configure.args-append --with-wcs 75 } 76 77 variant wmsclient description {Add WMS client support} { 78 depends_lib-append port:curl 79 default_variants-append +proj +gdal 80 configure.args-append --with-wmsclient 81 } 82 83 variant wfsclient description {Add WFS client support} { 84 depends_lib-append port:libxml2 port:curl 85 default_variants-append +proj +ogr +geos 86 configure.args-append --with-wfsclient 87 } 88 89 variant gdal description {Add GDAL input format support} { 90 depends_lib-append port:gdal 91 configure.args-append --with-gdal 92 } 93 94 variant ogr description {Add OGR input format support} { 95 depends_lib-append port:gdal 96 configure.args-append --with-ogr 97 } 98 99 100 variant proj description {Proj.4 reprojection support} { 101 depends_lib-append port:proj 102 configure.args-append --with-proj=${prefix} 103 } 104 105 variant fastcgi description {FastCGI support} { 106 depends_lib-append port:fcgi 107 configure.args-append --with-fastcgi=${prefix} 108 } 109 110 variant geos description {Add GEOS operations support} { 111 depends_lib-append port:geos 112 configure.args-append --with-geos 113 } 114 37 115 variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} { 38 116 depends_run-append port:apache 39 117 global cgi_path … … 52 130 } 53 131 54 132 if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} { 55 default_variants +apache2 133 #default to the apple apache version if none specified 134 default_variants +apache_apple 56 135 } 57 136 58 137 destroot.target install-force 59 138 destroot.violate_mtree yes 60 139 post-destroot { 61 140 file mkdir ${destroot}${cgi_path} 62 xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path} 141 xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}/mapserv 63 142 } -
mapserver/Portfile
13 13 building spatially-enabled internet applications. 14 14 15 15 homepage http://mapserver.gis.umn.edu/ 16 master_sites http://download.osgeo.org/mapserver17 16 18 checksums md5 6c0f210eb6510f0a43b6d5b09df8bb83 17 replaced_by mapserver56 18 revision 1 19 distfiles 19 20 20 depends_lib port:gd2 \ 21 port:geos 21 livecheck.type none 22 conflicts mapserver56 mapserver60 22 23 23 patchfiles patch-Makefile.in.diff 24 25 configure.args --with-gd=${prefix} 26 variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} { 27 depends_lib-append port:gdal 28 configure.args-append --with-gdal=${prefix}/bin/gdal-config \ 29 --with-ogr=${prefix}/bin/gdal-config 24 pre-configure { 25 ui_error "Please do not install this port since it has been replaced by 'mapserver56' or 'mapserver60'." 26 return -code error 30 27 } 31 32 variant proj description {Add projection and Web Map Service support} {33 depends_lib-append port:proj34 configure.args-append --with-proj=${prefix}35 }36 37 variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} {38 depends_run-append port:apache39 global cgi_path40 set cgi_path "${prefix}/www/cgi-bin/"41 }42 43 variant apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} {44 depends_run-append port:apache245 global cgi_path46 set cgi_path "${prefix}/apache2/cgi-bin/"47 }48 49 variant apache_apple conflicts apache apache2 description {Use Apple Apache} {50 global cgi_path51 set cgi_path "/Library/WebServer/CGI-Executables/"52 }53 54 if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} {55 default_variants +apache256 }57 58 destroot.target install-force59 destroot.violate_mtree yes60 post-destroot {61 file mkdir ${destroot}${cgi_path}62 xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}63 } -
mapserver60/Portfile
2 2 3 3 PortSystem 1.0 4 4 5 name mapserver 6 version 5.2.0 7 maintainers googlemail.com:mbarchfe 5 name mapserver60 6 version 6.0.1 7 maintainers googlemail.com:mbarchfe \ 8 gmail.com:thomas.bonfort 8 9 categories gis 9 10 platforms darwin 10 11 … … 14 15 15 16 homepage http://mapserver.gis.umn.edu/ 16 17 master_sites http://download.osgeo.org/mapserver 18 distname mapserver-${version} 17 19 18 checksums md5 6c0f210eb6510f0a43b6d5b09df8bb83 20 conflicts mapserver mapserver56 21 checksums md5 b96287449dcbca9a2fcea3a64905915a 19 22 20 23 depends_lib port:gd2 \ 21 port:geos 24 port:jpeg \ 25 port:libpng \ 26 port:freetype \ 27 port:giflib \ 22 28 23 29 patchfiles patch-Makefile.in.diff 24 30 25 configure.args --with-gd=${prefix} 26 variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} { 27 depends_lib-append port:gdal 28 configure.args-append --with-gdal=${prefix}/bin/gdal-config \ 29 --with-ogr=${prefix}/bin/gdal-config 31 configure.args --with-gd=${prefix} \ 32 --with-png=${prefix} \ 33 --with-zlib=${prefix} \ 34 --with-jpeg=${prefix} \ 35 --with-gif=${prefix} \ 36 37 default_variants +wms +gdal +ogr +proj +cairo +wfs +proj \ 38 +geos +postgis +wmsclient +wfsclient \ 39 +wcs +sos +kml +fastcgi 40 41 if {[variant_isset postgis]} { 42 #check for most recent version of postgresql installed 43 set HAVE_PGCONFIG [llength [glob -nocomplain -d ${prefix}/lib postgresql*/bin/pg_config]] 44 #if not found, intall the postgresql port 45 if {$HAVE_PGCONFIG == 0} { 46 depends_lib-append port:postgresql90 47 } 30 48 } 31 49 32 variant p roj description {Add projection and Web Map Service support} {33 depends_lib-append port:proj34 configure.args-append --with-proj=${prefix}50 variant postgis description {Add support for postgis sources} { 51 set PGSQL_DIR [lindex [lsort -dec [glob -d ${prefix}/lib postgresql*]] 0] 52 configure.args-append "--with-postgis=${PGSQL_DIR}/bin/pg_config" 35 53 } 36 54 55 variant wms description {Add WMS server support} { 56 default_variants-append +proj 57 } 58 59 variant wfs description {Add WFS server support} { 60 depends_lib-append port:libxml2 61 default_variants-append +proj +ogr +geos 62 configure.args-append --with-wfs 63 } 64 65 variant sos description {Add SOS server support} { 66 depends_lib-append port:libxml2 67 default_variants-append +proj +ogr 68 configure.args-append --with-sos 69 } 70 71 variant wcs description {Add WCS server support} { 72 default_variants-append +proj +gdal 73 configure.args-append --with-wcs 74 } 75 76 variant wmsclient description {Add WMS client support} { 77 depends_lib-append port:curl 78 default_variants-append +proj +gdal 79 configure.args-append --with-wmsclient 80 } 81 82 variant kml description {Add KML output support} { 83 configure.args-append --with-kml 84 } 85 86 variant wfsclient description {Add WFS client support} { 87 depends_lib-append port:libxml2 port:curl 88 default_variants-append +proj +ogr +geos 89 configure.args-append --with-wfsclient 90 } 91 92 variant cairo description {Add SVG and PDF support through cairo} { 93 depends_lib-append path:lib/pkgconfig/cairo.pc:cairo 94 configure.args-append --with-cairo 95 } 96 97 variant gdal description {Add GDAL input format support} { 98 depends_lib-append port:gdal 99 configure.args-append --with-gdal 100 } 101 102 variant ogr description {Add OGR input format support} { 103 depends_lib-append port:gdal 104 configure.args-append --with-ogr 105 } 106 107 108 variant proj description {Proj.4 reprojection support} { 109 depends_lib-append port:proj 110 configure.args-append --with-proj=${prefix} 111 } 112 113 variant fastcgi description {FastCGI support} { 114 depends_lib-append port:fcgi 115 configure.args-append --with-fastcgi=${prefix} 116 } 117 118 variant geos description {Add GEOS operations support} { 119 depends_lib-append port:geos 120 configure.args-append --with-geos 121 } 122 37 123 variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} { 38 124 depends_run-append port:apache 39 125 global cgi_path … … 52 138 } 53 139 54 140 if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} { 55 default_variants +apache2 141 #default to the apple apache version if none specified 142 default_variants +apache_apple 56 143 } 57 144 58 145 destroot.target install-force 59 146 destroot.violate_mtree yes 60 147 post-destroot { 61 148 file mkdir ${destroot}${cgi_path} 62 xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path} 149 xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}/mapserv 63 150 }