Changeset 99379
- Timestamp:
- Nov 4, 2012, 6:29:42 AM (12 years ago)
- Location:
- trunk/dports/science/ncarg
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/science/ncarg/Portfile
r97763 r99379 5 5 6 6 name ncarg 7 version 6.0.0 8 revision 10 7 version 6.1.0 9 8 categories science 10 9 maintainers takeshi 10 license {UCAR-Unidata public-domain BSD LGPL-3 GPL-3} 11 11 description language for scientific data processing and visualization 12 12 long_description \ … … 26 26 worksrcdir ncl_${name}-${version} 27 27 set ncl_src ${distname}${extract.suffix} 28 set g2clib_version 1.2. 129 set g2clib_src g2clib _with_changes-${g2clib_version}${extract.suffix}30 set g2clib_worksrcdir g2clib-${g2clib_version}-patch es28 set g2clib_version 1.2.3 29 set g2clib_src g2clib-${g2clib_version}-patch${extract.suffix} 30 set g2clib_worksrcdir g2clib-${g2clib_version}-patch 31 31 distfiles ${ncl_src}:ncl \ 32 32 ${g2clib_src}:g2clib 33 checksums ncl_ncarg-6.1.0.tar.gz \ 34 g2clib-1.2.3-patch.tar.gz \ 35 33 36 checksums ${ncl_src} \ 34 md5 0afca904b8f51abdd3efada4c0dbaa42\35 sha1 949dc8fc823256c1a036aa06a3e68805a4099009\36 rmd160 e5214051eb23e8cc58e0d579a382c80476d570d7\37 md5 e6eaef55ca0288535cf9e4203bb3874b \ 38 sha1 445aa78714434b4979acd1db8ae1dc9d3356a146 \ 39 rmd160 7736c69f21565deaf85e51a67d199c08994afa61 \ 37 40 ${g2clib_src} \ 38 md5 253327b963bf054c69f70df227e83cfb \ 39 sha1 a0ae0849da6c2aba427cf4384c88433e67cc8f77 \ 40 rmd160 0bea38746c9fb4eeeedb4546a5cb8b1a3936f7ee 41 41 md5 43eb24f168300f34e0d4e5a7260aba59 \ 42 sha1 5da7cc7319253b80ee0d9693753212d33f32c2b0 \ 43 rmd160 e67d9430bb03a255716763f72e31eddb6d1d5516 42 44 43 45 depends_lib path:lib/pkgconfig/cairo.pc:cairo \ … … 69 71 70 72 patch.dir ${workpath} 71 patchfiles patch-dec_png.c.diff patch-enc_png.c.diff72 73 if {$build_arch eq "x86_64"} { 73 74 patchfiles-append patch-config-ymake.diff … … 75 76 76 77 post-patch { 78 reinplace "s|hdf/||" ${worksrcpath}/ni/src/ncl/FileSupport.c 77 79 reinplace "s| -lsz||g" ${worksrcpath}/Configure 78 80 reinplace "s| -lsz||g" ${worksrcpath}/config/Project 79 81 reinplace "s|g\\\\+\\\\+|${configure.cc}|" ${worksrcpath}/ni/src/ncl/yMakefile 80 reinplace "s|INC=-I/usr/ include|INC=${configure.cppflags} ${configure.cflags}|" ${workpath}/${g2clib_worksrcdir}/makefile82 reinplace "s|INC=-I/usr/local/include|INC=${configure.cppflags} ${configure.cflags}|" ${workpath}/${g2clib_worksrcdir}/makefile 81 83 reinplace "s|CC=gcc -fPIC|CC=${configure.cc}|" ${workpath}/${g2clib_worksrcdir}/makefile 82 84 if {$build_arch eq "x86_64" || $build_arch eq "ppc64"} { … … 102 104 #define ArchRecLibSearch -L${prefix}/lib\\ 103 105 #define ArchRecIncSearch -I${prefix}/include\\ 104 #define CcOptions -fPIC -ansi -D_DARWIN_C_SOURCE -DH5_USE_16_API\\106 #define CcOptions -fPIC -ansi -D_DARWIN_C_SOURCE \\ 105 107 #define COptimizeFlag ${configure.cflags}\\ 106 108 #define FOptimizeFlag ${configure.fflags}\\ 107 109 #define ManRoot ${destroot}${prefix}/share/man\\ 108 #define NetCDF 4lib -lnetcdf\\110 #define NetCDFlib -lnetcdf\\ 109 111 #define HDFEOS5lib -lhe5_hdfeos -lGctp -lhdf5|" ${worksrcpath}/config/${f} 110 112 } … … 119 121 } 120 122 reinplace "s|\$\(NCARGGKSCAIROLIB\) \$\(NCARGCLIB\)|\$(NCARGGKSCAIROLIB) \$(NCARGGKSLIB) \$(NCARGCLIB)|" ${worksrcpath}/config/Project 123 foreach exlib {sphere3.1_dp fftpack5_dp} { 124 reinplace "s|-l${exlib}|\$(EXTERNALSRC)/${exlib}/lib${exlib}.a|g" ${worksrcpath}/config/Project 125 } 121 126 if {[variant_isset accelerate]} { 122 127 reinplace "s|-llapack_ncl|-framework Accelerate|g" ${worksrcpath}/config/Project … … 126 131 reinplace "s|-lblas_ncl|-framework Accelerate|g" ${worksrcpath}/config/Project 127 132 } 133 foreach f {Darwin Darwin_Intel} { 134 reinplace "/LAPACKLIB/d" ${worksrcpath}/config/${f} 135 reinplace "/BLASLIB/d" ${worksrcpath}/config/${f} 136 } 128 137 reinplace "s|-L\$(LAPACKSRC)||" ${worksrcpath}/config/Project 129 138 reinplace "s|-L\$(BLASSRC)||" ${worksrcpath}/config/Project 130 139 reinplace "s|blas lapack ||" ${worksrcpath}/external/yMakefile 140 } else { 141 foreach exlib {lapack blas} { 142 reinplace "s|-l${exlib}_ncl|\$(EXTERNALSRC)/${exlib}/lib${exlib}_ncl.a|g" ${worksrcpath}/config/Project 143 } 131 144 } 132 145 } … … 203 216 configure.fc ${prefix}/bin/g95 204 217 depends_build-append port:g95 218 configure.fflags-append -fno-second-underscore 205 219 } 206 220 -
trunk/dports/science/ncarg/files/patch-config-ymake.diff
r97441 r99379 1 --- ncl_ncarg-6.0.0/config/ymake.orig 2009-12-23 17:02:49.000000000 +0900 2 +++ ncl_ncarg-6.0.0/config/ymake 2009-12-23 17:12:25.000000000 +0900 3 @@ -415,8 +415,9 @@ 4 set vendor = Apple 1 --- ncl_ncarg-6.1.0/config/ymake.orig 2012-10-28 11:55:53.000000000 +0900 2 +++ ncl_ncarg-6.1.0/config/ymake 2012-11-03 16:07:20.000000000 +0900 3 @@ -416,8 +416,8 @@ 5 4 breaksw 6 5 case i386: 6 case x86_64: 7 7 - set model = $mach 8 8 - set arch = $mach 9 + case x86_64:10 9 + set model = x86_64 11 10 + set arch = x86_64
Note: See TracChangeset
for help on using the changeset viewer.