Ticket #20827: Portfile-postgis.diff
File Portfile-postgis.diff, 2.5 KB (added by sam@…, 15 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name postgis 6 version 1.3.3 7 revision 1 6 version 1.4.0 8 7 categories databases 9 8 platforms darwin 10 9 maintainers frank-lists@auroralux.net … … 20 19 homepage http://postgis.refractions.net/ 21 20 master_sites http://distfiles.macports.org/${dist_subdir}/ \ 22 21 http://postgis.refractions.net/download/ 23 checksums sha1 12b0da709360f67340f88774b70cf3bac65fcc24 24 patchfiles patch-extras-template_gis-postgis_env.sh.in \ 25 patch-Makefile.config.in.diff 22 checksums sha1 454d87021c46c9fa4f657819e31a74b8fc75193a 26 23 27 24 depends_lib port:geos port:proj port:libiconv 28 25 29 26 configure.args --datadir=${prefix}/share/${name} \ 30 27 --with-geos=${prefix}/bin/geos-config \ 31 --with-proj =${prefix}28 --with-projdir=${prefix} 32 29 33 30 build.args "ICONV_LDFLAGS=\"-L${prefix}/lib -liconv\"" 34 31 35 32 # 36 # Default to PostgreSQL 8. 333 # Default to PostgreSQL 8.4 37 34 # 38 set default_configure "--libdir=${prefix}/lib/postgresql8 3/ --with-pgsql=${prefix}/lib/postgresql83/bin/pg_config"39 set default_depends port:postgresql8 335 set default_configure "--libdir=${prefix}/lib/postgresql84/ --with-pgconfig=${prefix}/lib/postgresql84/bin/pg_config" 36 set default_depends port:postgresql84 40 37 41 38 configure.args-append ${default_configure} 42 39 depends_lib-append ${default_depends} 43 40 44 # Support for older PostgreSQL versions 45 variant postgresql82 { 46 # Remove the default dependency 41 variant postgresql83 { 47 42 global default_configure 48 43 global default_depends 49 44 50 configure.args-delete $default_configure 51 depends_lib-delete $default_depends 45 configure.args-delete $default_configure 46 depends_lib-delete $default_depends 47 48 # Declare the 8.3 dependency 49 depends_lib-append port:postgresql83 50 configure.args-append --libdir=${prefix}/lib/postgresql83/ \ 51 --with-pgsql=${prefix}/lib/postgresql83/bin/pg_config 52 } 52 53 53 # Declare the 8.2 dependency 54 depends_lib-append port:postgresql82 55 configure.args-append --libdir=${prefix}/lib/postgresql82/ \ 54 # Support for older PostgreSQL versions 55 variant postgresql82 { 56 # Remove the default dependency 57 global default_configure 58 global default_depends 59 60 configure.args-delete $default_configure 61 depends_lib-delete $default_depends 62 63 # Declare the 8.2 dependency 64 depends_lib-append port:postgresql82 65 configure.args-append --libdir=${prefix}/lib/postgresql82/ \ 56 66 --with-pgsql=${prefix}/lib/postgresql82/bin/pg_config 57 67 }