From 81910de90c04e290b8aaa5b44d1849e63f4588c4 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Sat, 10 Oct 2015 12:55:33 +0000 Subject: Mathematical subprogram libraries for Fortran 77. Created by CalTech. WWW: http://netlib.org/math/ PR: 201918 Submitted by: mexas@bris.ac.uk --- math/math77/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++ math/math77/distinfo | 2 ++ math/math77/files/patch-makefile | 30 ++++++++++++++++++++++ math/math77/pkg-descr | 4 +++ 4 files changed, 91 insertions(+) create mode 100644 math/math77/Makefile create mode 100644 math/math77/distinfo create mode 100644 math/math77/files/patch-makefile create mode 100644 math/math77/pkg-descr (limited to 'math/math77') diff --git a/math/math77/Makefile b/math/math77/Makefile new file mode 100644 index 000000000000..2098a4ad95d7 --- /dev/null +++ b/math/math77/Makefile @@ -0,0 +1,55 @@ +# $FreeBSD$ + +PORTNAME= math77 +PORTVERSION= 6.0 +CATEGORIES= math +MASTER_SITES= NL/math +DISTNAME= ${PORTNAME} +DIST_SUBDIR= ${PORTNAME} + +MAINTAINER= mexas@bris.ac.uk +COMMENT= CalTech mathematical subprogram libraries for Fortran 77 + +LICENSE= BSD3CLAUSE + +USES= fortran gmake tar:tgz +WRKSRC= ${WRKDIR}/MATH77 +MAKEFILE= makefile +USE_LDCONFIG= yes + +PLIST_FILES= lib/libmath77.a + +DEMO= cblas ccoef cgam cge2 cgefsc cpolz csort cwofz daccum dasinh dbacc \ + dbesj0 dbesjn dbi0k0 dbinom dblas1 dblas2 dblas3 dblas4 dc2fit dcdchi \ + dcdnml dcdpoi dcft dchol dchol2 dckder dcon dcpltk dcpval ddasl1 \ + ddasl2 ddasl3 ddasl4 ddasl5 ddasl6 ddasl7 dei deli derf derfce derfi \ + devun devvun dfmin dfrenl dgami dgamma dge2 dgefsc dherql dhfti dhint \ + dhtcc dilup dilupm dint1f dint1r dintmf dintmr diva divdb divx djacg1 \ + djacg2 dlasum dlesum dlnrel dmess dmlc01 dmpval dnlafb dnlafu dnlagb \ + dnlagu dnlsfb dnlsfu dnlsgb dnlsgu dnqsol dpfit dplot dpoi dpolz \ + dpolz2 dprpl dprpl1 dprpl2 dpsi dran drane drang drangv dranr dranu \ + dranus drft drft1 dsbasd dsfit dsfitc dsi dsort dspge dsva dsvdrs \ + dsymql dtcst dtgfi dtgfi1 dtgfi2 dtgrec ducom2 ducomp dwcom2 dwcomp \ + dxrk8 dzero ermsg err1 exsort gsortp idranp insort isort isranp mach \ + matp matpr ran1 saccum sasinh sbacc sbesj0 sbesjn sbi0k0 sbinom sblas1 \ + sblas2 sblas3 sblas4 sc2fit scdchi scdnml scdpoi scft schol schol2 \ + sckder scon scpltk scpval sdasl1 sdasl2 sdasl3 sdasl4 sdasl5 sdasl6 \ + sdasl7 sei seli serf serfce serfi sevun sevvun sfmin sfrenl sgami \ + sgamma sge2 sgefsc sherql shfti shint shtcc silup silupm sint1f sint1r \ + sintmf sintmr siva sivdb sivx sjacg1 sjacg2 slasum slesum slnrel smess \ + smlc01 smpval snlafb snlafu snlagb snlagu snlsfb snlsfu snlsgb snlsgu \ + snqsol spfit splot spoi spolz spolz2 sprpl sprpl1 sprpl2 spsi sran \ + srane srang srangv sranr sranu sranus srft srft1 ssbasd ssfit ssfitc \ + ssi ssort sspge ssva ssvdrs ssymql stcst stgfi stgfi1 stgfi2 stgrec \ + sucom2 sucomp swcom2 swcomp sxrk8 szero vecp vecpr xblas zcoef zcomp \ + zgam zpolz zwofz + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libmath77.a ${STAGEDIR}${PREFIX}/lib + +do-test: +.for CODE in ${DEMO} + (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} code=${CODE} ${MAKE_CMD} demo) +.endfor + +.include diff --git a/math/math77/distinfo b/math/math77/distinfo new file mode 100644 index 000000000000..855c5580e3ab --- /dev/null +++ b/math/math77/distinfo @@ -0,0 +1,2 @@ +SHA256 (math77/math77.tgz) = 71cff919c7aa809ef3711c38ed80fda44d65caeca770c875b57bc426ce62d7ba +SIZE (math77/math77.tgz) = 2205951 diff --git a/math/math77/files/patch-makefile b/math/math77/files/patch-makefile new file mode 100644 index 000000000000..d5234e097df3 --- /dev/null +++ b/math/math77/files/patch-makefile @@ -0,0 +1,30 @@ +--- makefile.orig 2015-07-13 15:16:24 UTC ++++ makefile +@@ -6,12 +6,11 @@ + # you will want to change the optimization level. (For example change + # -ggdb to -O3 or -O2. + +-FC = /usr/bin/gfortran + std_flags=-march=native -fimplicit-none -fno-f2c -fno-backslash\ + -funroll-loops -ffpe-trap=zero,overflow,invalid -finit-real=NAN\ +- -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe ++ -ftree-vectorize -pipe + +-FFLAGS = -ggdb $(std_flags) -Wall ++FFLAGS+= $(std_flags) -Wall + # + objm77 = $(patsubst %.f,%.o, $(wildcard *.f)) + # +@@ -20,10 +19,10 @@ all: libmath77.a + .SUFFIXES: + .SUFFIXES: .f .o + %.o: %.f +- $(FC) -c $(FFLAGS) $(FOPTS) -o $@ $*.f &>>compile.msg ++ $(FC) -c $(FFLAGS) $(FOPTS) -o $@ $*.f + + libmath77.a: $(objm77) +- ar r $@ $(objm77) &>>compile.msg ++ ar r $@ $(objm77) + + demo: libmath77.a makefile demo/dr$(code).f + $(FC) $(FFLAGS) -o demo/dr$(code) demo/dr$(code).f -L. -lmath77;\ diff --git a/math/math77/pkg-descr b/math/math77/pkg-descr new file mode 100644 index 000000000000..af171167074a --- /dev/null +++ b/math/math77/pkg-descr @@ -0,0 +1,4 @@ +Mathematical subprogram libraries for Fortran 77. +Created by CalTech. + +WWW: http://netlib.org/math/ -- cgit v1.2.3