Changeset 143302 for trunk/dports/math


Ignore:
Timestamp:
Dec 10, 2015, 2:54:10 AM (4 years ago)
Author:
dstrubbe@…
Message:

itsol: Enable test phase.

Location:
trunk/dports/math/itsol
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/itsol/Portfile

    r112010 r143302  
    3636patchfiles          patch-INC_protos.h.diff \
    3737                    patch-SRC.diff \
    38                     patch-makefile.diff
     38                    patch-makefile.diff \
     39                    patch-TESTS-matfile.diff
    3940
    4041depends_lib         path:lib/libgcc/libgcc_s.1.dylib:libgcc
     
    170171if {[variant_isset accelerate]} {
    171172
    172     configure.ldflags-append "-Wl,-framework -Wl,Accelerate"
     173    configure.ldflags-append -Wl,-framework -Wl,Accelerate
    173174
    174175} else {
    175176
    176177    depends_lib-append       port:atlas
    177     configure.ldflags-append "-llapack -lcblas -lf77blas -latlas"
     178    configure.ldflags-append -llapack -lcblas -lf77blas -latlas
    178179
    179180}
     
    200201    }
    201202}
     203
     204test.run       yes
     205pre-test {
     206    test.args-append     LINKS="-L../LIB -litsol" \
     207        FC="${configure.fc}" FCFLAGS="${configure.fcflags}" \
     208        CC="${configure.cc}" CCFLAGS="-c -I ../INC ${configure.cflags} -DLINUX" \
     209        LD="${configure.fc}" LDFLAGS="${configure.ldflags}"
     210}
  • trunk/dports/math/itsol/files/patch-makefile.diff

    r112010 r143302  
    1 --- makefile.orig       2013-10-09 09:01:42.000000000 -0400
    2 +++ makefile    2013-10-09 09:02:10.000000000 -0400
     1--- makefile.orig       2015-12-09 21:27:35.000000000 -0500
     2+++ makefile    2015-12-09 21:37:23.000000000 -0500
    33@@ -1,30 +1,44 @@
    44-# this makefile is for LINUX machines only
     
    5858 clean :
    5959        rm -f ${OBJS} *~ core *.cache ${LIB} SRC/*~ SRC/*.cache
     60@@ -32,3 +46,9 @@
     61 cleanall :
     62        rm -f ${OBJS} *~ core *.cache ${LIB} SRC/*~ SRC/*.cache \
     63         TESTS/*.o TESTS/*.ex
     64+
     65+test : testexe
     66+       cd TESTS && sh runall
     67+
     68+testexe :
     69+       $(MAKE) -C TESTS all LINKS="-L../LIB -litsol"
Note: See TracChangeset for help on using the changeset viewer.