Changeset 80257
- Timestamp:
- 07/07/11 15:43:30 (4 years ago)
- Location:
- trunk/dports/science/ncarg
- Files:
-
- 1 deleted
- 1 edited
-
Portfile (modified) (6 diffs)
-
files/patch-ncarg2d-src-libncarg-ezmap-mapngb.c.diff (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/ncarg/Portfile
r75355 r80257 5 5 6 6 name ncarg 7 version 5.2.1 8 revision 1 7 version 6.0.0 9 8 categories science 10 9 maintainers takeshi … … 20 19 homepage http://www.ncl.ucar.edu/ 21 20 platforms darwin 22 master_sites http://www.earthsystemgrid.org/ 21 master_sites http://www.earthsystemgrid.org/:ncl 22 master_sites http://www.ncl.ucar.edu/Download/files/:g2clib 23 23 24 distname ncl_${name} _src-${version}24 distname ncl_${name}-${version} 25 25 worksrcdir ncl_${name}-${version} 26 checksums md5 c7ba4847961f38bbbac30ac042eab43a \ 27 sha1 069d3c2a20b58358c6547a70bdb9e65bc9de6881 \ 28 rmd160 ed16827e4a4d3588f23f8ac9d2e48429d06e05f8 26 set ncl_src ${distname}${extract.suffix} 27 set g2clib_version 1.2.1 28 set g2clib_src g2clib_with_changes-${g2clib_version}${extract.suffix} 29 set g2clib_worksrcdir g2clib-${g2clib_version}-patches 30 distfiles ${ncl_src}:ncl \ 31 ${g2clib_src}:g2clib 32 checksums ${ncl_src} \ 33 md5 0afca904b8f51abdd3efada4c0dbaa42 \ 34 sha1 949dc8fc823256c1a036aa06a3e68805a4099009 \ 35 rmd160 e5214051eb23e8cc58e0d579a382c80476d570d7 \ 36 ${g2clib_src} \ 37 md5 253327b963bf054c69f70df227e83cfb \ 38 sha1 a0ae0849da6c2aba427cf4384c88433e67cc8f77 \ 39 rmd160 0bea38746c9fb4eeeedb4546a5cb8b1a3936f7ee 29 40 30 depends_lib port:jpeg6b \ 31 path:lib/pkgconfig/cairo.pc:cairo \41 42 depends_lib path:lib/pkgconfig/cairo.pc:cairo \ 32 43 port:proj \ 33 44 port:gdal \ … … 46 57 universal_variant no 47 58 48 fetch {49 if {![file exists ${distpath}/${dist files}]} {59 pre-fetch { 60 if {![file exists ${distpath}/${distname}${extract.suffix}]} { 50 61 xinstall -d ${distpath} 51 ui_error "Download ${dist files} manually and place it in ${distpath}.\n \62 ui_error "Download ${distname}${extract.suffix} manually and place it in ${distpath}.\n \ 52 63 See instructions on ${homepage}/Download/index.shtml" 53 64 } … … 56 67 set usedap y 57 68 58 patchfiles patch-ncarg2d-src-libncarg-ezmap-mapngb.c.diff59 69 if {$build_arch eq "x86_64"} { 60 70 patchfiles-append patch-config-ymake.diff 61 71 } 62 72 post-patch { 73 reinplace "s|INC=-I/usr/include|INC=${configure.cppflags} ${configure.cflags}|" ${workpath}/${g2clib_worksrcdir}/makefile 74 reinplace "s|CC=gcc -fPIC|CC=${configure.cc}|" ${workpath}/${g2clib_worksrcdir}/makefile 75 if {$build_arch eq "x86_64" || $build_arc eq "ppc64"} { 76 reinplace "s|-DUSE_PNG$|-DUSE_PNG -D__64BIT__|" ${workpath}/${g2clib_worksrcdir}/makefile 77 } 63 78 foreach f {Darwin Darwin_Intel} { 64 79 if {[variant_isset g95]} { … … 104 119 105 120 pre-configure { 121 system "cd ${workpath}/${g2clib_worksrcdir}; make all" 122 file copy ${workpath}/${g2clib_worksrcdir}/libgrib2c.a ${worksrcpath} 106 123 system "cd ${worksrcpath}/config; \ 107 124 make -f Makefile.ini; \ … … 128 145 y 129 146 y 130 ${prefix}/lib/jpeg6b/lib ${prefix}/lib/ ${prefix}/lib/hdfeos5/lib ${prefix}/lib 131 ${prefix}/include/freetype2 ${prefix}/include/udunits2 ${prefix}/lib/jpeg6b/include ${prefix}/lib/hdfeos5/include ${prefix}/include 147 y 148 y 149 y 150 ${worksrcpath} ${prefix}/lib ${prefix}/lib/hdfeos5/lib ${prefix}/lib 151 ${prefix}/include/freetype2 ${prefix}/include/udunits2 ${prefix}/lib/hdfeos5/include ${prefix}/include 132 152 133 153
Note: See TracChangeset
for help on using the changeset viewer.

