Changeset 99448
- Timestamp:
- Nov 5, 2012, 4:05:06 PM (12 years ago)
- Location:
- trunk/dports/math/levmar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/math/levmar/Portfile
r99337 r99448 6 6 name levmar 7 7 version 2.6 8 revision 28 revision 3 9 9 categories math 10 10 platforms darwin … … 33 33 sha256 3bf4ef1ea4475ded5315e8d8fc992a725f2e7940a74ca3b0f9029d9e6e94bad7 34 34 35 depends_lib-append port:atlas36 37 35 # Patch taken from levmar RPM by Eric Smith <eric@brouhaha.com> 38 36 patch.pre_args -p1 39 37 patchfiles patch-Makefile.so.diff 40 38 41 use_configure no 39 default_variants +atlas 42 40 43 41 variant universal {} 42 43 variant atlas description {Use MacPorts' ATLAS instead of Accelerate Framework} { 44 depends_lib-append port:atlas 45 } 46 47 if {! [variant_isset atlas]} { 48 conflicts port:atlas 49 } 50 51 global makefile 52 set makefile ${worksrcpath}/Makefile.so 53 54 use_configure no 44 55 45 56 set ver_major [lindex [split ${version} "."] 0] … … 49 60 50 61 post-patch { 51 set fl [open ${ worksrcpath}/Makefile.so]62 set fl [open ${makefile}] 52 63 set lines [read $fl] 53 64 close $fl … … 69 80 } 70 81 82 if {[variant_isset atlas]} { 83 reinplace "s|^LAPACKLIBS=.*$|LAPACKLIBS= -L${prefix}/lib -lsatlas|g" ${makefile} 84 } 85 71 86 reinplace "s|\r||g" ${worksrcpath}/README.txt 72 87 file mkdir ${worksrcpath}/sobj 73 88 } 74 89 75 build.args-append -f Makefile.so90 build.args-append -f ${makefile} 76 91 build.args-append CC="${configure.cc} [get_canonical_archflags cc]" 77 92 build.args-append LDFLAGS+=-Wl,-rpath,${prefix}/lib -
trunk/dports/math/levmar/files/patch-Makefile.so.diff
r99337 r99448 20 20 +# -lf2c removed from LAPACKLIBS for Fedora 21 21 +# comment the following line if you are not using LAPACK. 22 +LAPACKLIBS=-l satlas22 +LAPACKLIBS=-llapack -lblas 23 23 # On systems with a FORTRAN (not f2c'ed) version of LAPACK, -lf2c is 24 24 # not necessary; on others, -lf2c is equivalent to -lF77 -lI77
Note: See TracChangeset
for help on using the changeset viewer.