Ticket #23115: cgnslib.diff
File cgnslib.diff, 1.2 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago) |
---|
-
Portfile
4 4 5 5 name cgnslib 6 6 version 2.5.4 7 revision 1 7 8 set branch [join [lrange [split ${version} .] 0 1] .] 8 9 set minor [lindex [split ${version} .] end] 9 10 categories science … … 35 36 system "cd ${worksrcpath}/tools && make" 36 37 } 37 38 38 destroot.destdir PREFIX=${destroot}${prefix} 39 destroot.destdir INCLUDEDIR=${destroot}${prefix}/include \ 40 LIBDIR=${destroot}${prefix}/lib 39 41 40 42 post-destroot { 41 43 xinstall -m 755 -W ${worksrcpath}/tools \ … … 52 54 README \ 53 55 ${docdir} 54 56 } 57 58 post-install { 59 # cgnslib 2.5.4_0 installed items directly in ${prefix}; remove them if found 60 foreach file {include/cgnslib.h include/cgnslib_f.h include/cgnswin_f.h lib/libcgns.a} { 61 set filepath ${prefix}/${file} 62 if {[file exists ${filepath}]} { 63 if {[catch {delete ${filepath}}]} { 64 ui_warn "Cannot delete ${filepath}; please remove it manually" 65 } 66 } 67 } 68 }