Ticket #21907: Portfile.patch
File Portfile.patch, 1.7 KB (added by Veence (Vincent), 15 years ago) |
---|
-
Portfile
old new 16 16 homepage http://www.gdal.org/ 17 17 master_sites http://www.gdal.org/dl/ \ 18 18 http://download.osgeo.org/gdal/ 19 categories science19 categories gis 20 20 checksums md5 f2dcd6aa7222d021202984523adf3b55 \ 21 21 rmd160 e445680953f25047a280f36cedba0597094e0562 \ 22 22 sha1 1d9e1d8f01f06bca99e7335d7e86dff784eee819 23 23 24 24 depends_lib port:zlib port:libpng port:tiff port:libgeotiff port:jpeg \ 25 25 path:include/gif_lib.h:giflib port:proj 26 27 set PYINST "" 26 28 27 29 configure.args --with-local=${prefix} --with-libz=${prefix} \ 28 30 --with-png=${prefix} \ … … 49 51 50 52 # Patches for universal build 51 53 52 pre-build { 54 post-configure { 55 reinplace -E "s|XXX|${PYINST}|" ${worksrcpath}/swig/python/GNUmakefile 53 56 if {[variant_isset universal]} { 54 57 system "cd ${worksrcpath} && patch -p0 < ${portpath}/files/patch_cpl_config_h" 55 58 } … … 116 119 port:py-numpy 117 120 configure.args-delete --without-python 118 121 configure.args-append --with-python 122 set PYINST ${frameworks_dir}/Python.framework/Versions/2.4 119 123 build.args-append PYTHON=python2.4 120 124 } 121 125 … … 124 128 port:py25-numpy 125 129 configure.args-delete --without-python 126 130 configure.args-append --with-python 131 set PYINST ${frameworks_dir}/Python.framework/Versions/2.5 127 132 build.args-append PYTHON=python2.5 128 133 } 129 134 … … 132 137 port:py26-numpy 133 138 configure.args-delete --without-python 134 139 configure.args-append --with-python 140 configure.args-append 135 141 build.args-append PYTHON=python2.6 142 set PYINST ${frameworks_dir}/Python.framework/Versions/2.6 143 use_parallel_build no 136 144 } 137 145 138 146 # Database variants