Ticket #38687: ncarg.diff
File ncarg.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 11 years ago) |
---|
-
Portfile
25 25 http://www.ncl.ucar.edu/Download/files/:g2clib 26 26 27 27 distname ncl_${name}-${version} 28 worksrcdir ncl_${name}-${version}29 28 set ncl_src ${distname}${extract.suffix} 30 29 set g2clib_version 1.2.3 31 30 set g2clib_src g2clib-${g2clib_version}-patch${extract.suffix} … … 32 31 set g2clib_worksrcdir g2clib-${g2clib_version}-patch 33 32 distfiles ${ncl_src}:ncl \ 34 33 ${g2clib_src}:g2clib 35 checksums ncl_ncarg-6.1.0.tar.gz \36 g2clib-1.2.3-patch.tar.gz \37 34 38 35 checksums ${ncl_src} \ 39 36 md5 a13d4a97d1d580a24fe144d127e4ce31 \ … … 154 151 } 155 152 156 153 pre-configure { 157 system "cd ${workpath}/${g2clib_worksrcdir};make all"154 system -W ${workpath}/${g2clib_worksrcdir} "make all" 158 155 file copy ${workpath}/${g2clib_worksrcdir}/libgrib2c.a ${worksrcpath} 159 system "cd ${worksrcpath}/config;\160 CC=${configure.cc} \156 system -W ${worksrcpath}/config \ 157 "CC=${configure.cc} \ 161 158 CFLAGS=${configure.cflags} \ 162 159 make -f Makefile.ini; \ 163 160 ./ymake -config `pwd`" … … 166 163 } 167 164 } 168 165 configure { 169 system "cd ${worksrcpath};./Configure -v << EOF166 system -W ${worksrcpath} "./Configure -v << EOF 170 167 171 168 172 169 y … … 195 192 post-configure { 196 193 # reinplace "s| -lsz||g" ${worksrcpath}/makefile 197 194 # reinplace "s| -lsz||g" ${worksrcpath}/config/Site.local 198 system "cd ${worksrcpath};make Info"195 system -W ${worksrcpath} "make Info" 199 196 system "cat ${worksrcpath}/config/Site.local" 200 197 } 201 198 … … 216 213 # Check if ncl is built here. 217 214 post-build { 218 215 if {![file exists ${worksrcpath}/ni/src/ncl/ncl]} { 219 ui_error "ncl did not built"216 return -code error "ncl did not get built" 220 217 } 221 218 } 222 219