Permalink
Browse files

lapack340 moved to base

  • Loading branch information...
moubctez
moubctez committed Feb 28, 2014
1 parent f75bf79 commit 17c0c23b4175fd664fdc05a0e816ddc5b32dc087
View
@@ -1384,7 +1384,6 @@ SUBDIR+= kytea
SUBDIR+= l2tpd
SUBDIR+= labyrinth
SUBDIR+= lambertw
-SUBDIR+= lapack340
SUBDIR+= lasi
SUBDIR+= last-exit
SUBDIR+= last.fm
View
@@ -1,11 +0,0 @@
-Work in progress of lapack-3.4.x with gcc.
-FC and PKGSRC_FORTRAN must be empty or set to /usr/pkg/gcc47/bin/gfortran.
-
-LAPACK is a library of Fortran 90 with subroutines for solving
-the most commonly occurring problems in numerical linear algebra.
-It is freely-available software, and is copyrighted.
-
-LAPACK is available on netlib and can be obtained via the World Wide
-Web and anonymous ftp.
-
- http://www.netlib.org/lapack/
View
@@ -1,44 +0,0 @@
-# $NetBSD: Makefile,v 1.33 2011/01/25 12:45:43 adam Exp $
-
-DISTNAME= lapack-3.4.2
-PKGNAME= lapack340-3.4.2
-CATEGORIES= math
-MASTER_SITES= ${MASTER_SITE_NETLIB:=lapack/}
-EXTRACT_SUFX= .tgz
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.netlib.org/lapack/index.html
-COMMENT= Linear Algebra PACKage
-LICENSE= modified-bsd
-
-PKG_INSTALLATION_TYPES= overwrite pkgviews
-
-GCC_REQD= 4.7.0
-USE_LANGUAGES= c fortran
-USE_LIBTOOL= YES
-BUILD_TARGET= blaslib lapacklib
-#BUILD_TARGET= lapacklib
-
-INSTALLATION_DIRS= lib
-
-FFLAGS= -O2 -ffloat-store -mieee-fp
-FFLAGSNOOPT= -O0 -ffloat-store -mieee-fp
-
-# With f2c-20090411nb4, libf2c-20090201nb3, we need EXT_ETIME but gcc44-4.4.1nb3
-# needs INT_ETIME. Rather than trying to enumerate all possible fortran
-# compilers, just do a test for it.
-do-configure:
- @${ECHO_N} "Checking if your fortran compiler has etime() as an intrinsic... "
- ${FC} -o ${WRKDIR}/etime_test ${FILESDIR}/etime_test.f >${WRKDIR}/etime_test.log 2>&1; \
- if ${TEST} $$? -eq 0 ; then \
- ${ECHO} "TIMER=INT_ETIME" >> ${WRKSRC}/make.inc ; ${ECHO} "YES" ; else \
- ${ECHO} "TIMER=EXT_ETIME" >> ${WRKSRC}/make.inc ; ${ECHO} "NO" ; fi
- @${ECHO} "See ${WRKDIR}/etime_test.log for details on the test"
-
-do-install:
- ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/liblapack342.la \
- ${DESTDIR}${PREFIX}/lib
- ${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/librefblas342.la \
- ${DESTDIR}${PREFIX}/lib
-
-.include "../../mk/bsd.pkg.mk"
View
@@ -1,3 +0,0 @@
-@comment $NetBSD$
-lib/liblapack342.la
-lib/librefblas342.la
View
@@ -1,22 +0,0 @@
-1) Fix and update Fortran support in pkgsrc to enable
- different compilers with FC and PKGSRC_FORTRAN. See
- http://mail-index.netbsd.org/tech-toolchain/2011/11/26/msg001789.html
- for instance. Currently this package uses GCC_REQD=4.7.0
- and builds lang/gcc47 if not already installed. If
- FC or PKGSRC_FORTRAN are set, it will fail. The default
- compiler in pkgsrc is f2c for USE_LANGUAGES=fortran77 and
- g95 for USE_LANGUAGES=fortran. Lapack needs Fortran90
- excluding F2C, and g95 development has stopped more than
- a year ago. Therefor lang/gcc47 seems to be the only
- alternative. Additionally LAPACK now contains a new
- standard LAPACKE for interfacing with C99 or C++ which
- has explicit support for gfortran/gcc.
-
-2) Find a consensus on default options: BLAS, TESTING,
- optimization flags, VARIANTS, LAPACKE C interface,
- libtool options as needed by the packages using it:
- R, octave at least and do lots of testing on different
- operating systems.
-
-3) Fix buildlink3.mk
-
View
@@ -1,13 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_TREE+= lapack340
-
-.if !defined(LAPACK340_BUILDLINK3_MK)
-LAPACK340_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.lapack340+= lapack>=3.4.0
-BUILDLINK_ABI_DEPENDS.lapack340+= lapack>=3.4.0
-BUILDLINK_PKGSRCDIR.lapack340?= ../../wip/lapack340
-.endif # LAPACK340_BUILDLINK3_MK
-
-BUILDLINK_TREE+= -lapack340
View
@@ -1,9 +0,0 @@
-$NetBSD$
-
-SHA1 (lapack-3.4.2.tgz) = 93a6e4e6639aaf00571d53a580ddc415416e868b
-RMD160 (lapack-3.4.2.tgz) = 8740c35c9a85b71424fe1ffeed192256aebeb431
-Size (lapack-3.4.2.tgz) = 6168281 bytes
-SHA1 (patch-BLAS_SRC_Makefile) = 6ec9718adefad0865c633d196e2004eea04cf4be
-SHA1 (patch-INSTALL_Makefile) = 6805d2b7cb4485200e4ee4646df2a0bd4588a131
-SHA1 (patch-SRC_Makefile) = 9b1ee972b7d6d31cc8a0325905ba59e28d78fb62
-SHA1 (patch-ac) = 57796c73396e3ff6ec5cee8e2313eab9111a2645
@@ -1,27 +0,0 @@
- program main
-
-c
-c $NetBSD: etime_test.f,v 1.1 2010/03/17 21:47:11 dmcmahill Exp $
-c
-c Simple program to check if the etime function is available
-c
- implicit none
-
- real cpu
- real etime
- intrinsic etime
- real t_array(2)
-
- cpu = etime ( t_array )
-
- write ( *, '(a)' ) ' '
- write ( *, '(a)' ) ' ETIME reports:'
- write ( *, '(a,g14.6)' )
- & ' The current CPU time is ', cpu
- write ( *, '(a,g14.6)' )
- & ' TARRAY(1) = ', t_array(1)
- write ( *, '(a,g14.6)' )
- & ' TARRAY(2) = ', t_array(2)
-
- stop
- end
@@ -1,21 +0,0 @@
-$NetBSD$
-
---- BLAS/SRC/Makefile.orig 2008-11-07 17:35:57.000000000 +0000
-+++ BLAS/SRC/Makefile
-@@ -138,8 +138,8 @@ ALLOBJ=$(SBLAS1) $(SBLAS2) $(SBLAS3) $(D
- $(ZBLAS2) $(ZBLAS3) $(ALLBLAS)
-
- $(BLASLIB): $(ALLOBJ)
-- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
-- $(RANLIB) $@
-+ ${LIBTOOL} --mode=link --tag=F77 ${FC} ${LDFLAGS} -o $(BLASLIB) \
-+ $(ALLOBJ:.o=.lo) -rpath ${PREFIX}/lib -version-info 4:0
-
- single: $(SBLAS1) $(ALLBLAS) $(SBLAS2) $(SBLAS3)
- $(ARCH) $(ARCHFLAGS) $(BLASLIB) $(SBLAS1) $(ALLBLAS) \
-@@ -168,4 +168,4 @@ clean:
- rm -f *.o
-
- .f.o:
-- $(FORTRAN) $(OPTS) -c $< -o $@
-+ ${LIBTOOL} --mode=compile --tag=CC ${FC} ${FFLAGS} -c $<
@@ -1,20 +0,0 @@
-$NetBSD$
-
---- INSTALL/Makefile.orig 2011-10-01 02:37:03.000000000 +0000
-+++ INSTALL/Makefile
-@@ -28,8 +28,11 @@ testversion: ilaver.o LAPACK_version.o
-
- clean:
- rm -f *.o
--.f.o:
-- $(FORTRAN) $(OPTS) -c $< -o $@
-
--slamch.o: slamch.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
--dlamch.o: dlamch.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
-+.f.o:
-+ ${LIBTOOL} --mode=compile --tag=CC ${FC} ${FFLAGS} -c $<
-+
-+slamch.o: slamch.f
-+ ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-+dlamch.o: dlamch.f
-+ ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
@@ -1,130 +0,0 @@
-$NetBSD$
-
---- SRC/Makefile.orig 2011-10-04 02:58:05.000000000 +0000
-+++ SRC/Makefile
-@@ -154,7 +154,7 @@ SLASRC = \
-
- DSLASRC = spotrs.o sgetrs.o spotrf.o sgetrf.o
-
--ifdef USEXBLAS
-+.ifdef USEXBLAS
- SXLASRC = sgesvxx.o sgerfsx.o sla_gerfsx_extended.o sla_geamv.o \
- sla_gercond.o sla_gerpvgrw.o ssysvxx.o ssyrfsx.o \
- sla_syrfsx_extended.o sla_syamv.o sla_syrcond.o sla_syrpvgrw.o \
-@@ -162,7 +162,7 @@ SXLASRC = sgesvxx.o sgerfsx.o sla_gerfsx
- sla_porpvgrw.o sgbsvxx.o sgbrfsx.o sla_gbrfsx_extended.o \
- sla_gbamv.o sla_gbrcond.o sla_gbrpvgrw.o sla_lin_berr.o slarscl2.o \
- slascl2.o sla_wwaddw.o
--endif
-+.endif
-
- CLASRC = \
- cbdsqr.o cgbbrd.o cgbcon.o cgbequ.o cgbrfs.o cgbsv.o cgbsvx.o \
-@@ -226,7 +226,7 @@ CLASRC = \
- cgeqrt.o cgeqrt2.o cgeqrt3.o cgemqrt.o \
- ctpqrt.o ctpqrt2.o ctpmqrt.o ctprfb.o
-
--ifdef USEXBLAS
-+.ifdef USEXBLAS
- CXLASRC = cgesvxx.o cgerfsx.o cla_gerfsx_extended.o cla_geamv.o \
- cla_gercond_c.o cla_gercond_x.o cla_gerpvgrw.o \
- csysvxx.o csyrfsx.o cla_syrfsx_extended.o cla_syamv.o \
-@@ -238,7 +238,7 @@ CXLASRC = cgesvxx.o cgerfsx.o cla_gerfsx
- chesvxx.o cherfsx.o cla_herfsx_extended.o cla_heamv.o \
- cla_hercond_c.o cla_hercond_x.o cla_herpvgrw.o \
- cla_lin_berr.o clarscl2.o clascl2.o cla_wwaddw.o
--endif
-+.endif
-
- ZCLASRC = cpotrs.o cgetrs.o cpotrf.o cgetrf.o
-
-@@ -302,7 +302,7 @@ DLASRC = \
- dgeqrt.o dgeqrt2.o dgeqrt3.o dgemqrt.o \
- dtpqrt.o dtpqrt2.o dtpmqrt.o dtprfb.o
-
--ifdef USEXBLAS
-+.ifdef USEXBLAS
- DXLASRC = dgesvxx.o dgerfsx.o dla_gerfsx_extended.o dla_geamv.o \
- dla_gercond.o dla_gerpvgrw.o dsysvxx.o dsyrfsx.o \
- dla_syrfsx_extended.o dla_syamv.o dla_syrcond.o dla_syrpvgrw.o \
-@@ -310,7 +310,7 @@ DXLASRC = dgesvxx.o dgerfsx.o dla_gerfsx
- dla_porpvgrw.o dgbsvxx.o dgbrfsx.o dla_gbrfsx_extended.o \
- dla_gbamv.o dla_gbrcond.o dla_gbrpvgrw.o dla_lin_berr.o dlarscl2.o \
- dlascl2.o dla_wwaddw.o
--endif
-+.endif
-
- ZLASRC = \
- zbdsqr.o zgbbrd.o zgbcon.o zgbequ.o zgbrfs.o zgbsv.o zgbsvx.o \
-@@ -379,7 +379,7 @@ ZLASRC = \
- zgeqrt.o zgeqrt2.o zgeqrt3.o zgemqrt.o \
- ztpqrt.o ztpqrt2.o ztpmqrt.o ztprfb.o
-
--ifdef USEXBLAS
-+.ifdef USEXBLAS
- ZXLASRC = zgesvxx.o zgerfsx.o zla_gerfsx_extended.o zla_geamv.o \
- zla_gercond_c.o zla_gercond_x.o zla_gerpvgrw.o zsysvxx.o zsyrfsx.o \
- zla_syrfsx_extended.o zla_syamv.o zla_syrcond_c.o zla_syrcond_x.o \
-@@ -389,20 +389,20 @@ ZXLASRC = zgesvxx.o zgerfsx.o zla_gerfsx
- zla_gbrpvgrw.o zhesvxx.o zherfsx.o zla_herfsx_extended.o \
- zla_heamv.o zla_hercond_c.o zla_hercond_x.o zla_herpvgrw.o \
- zla_lin_berr.o zlarscl2.o zlascl2.o zla_wwaddw.o
--endif
-+.endif
-
- ALLOBJ = $(SLASRC) $(DLASRC) $(DSLASRC) $(CLASRC) $(ZLASRC) $(ZCLASRC) \
- $(SCLAUX) $(DZLAUX) $(ALLAUX)
-
--ifdef USEXBLAS
-+.ifdef USEXBLAS
- ALLXOBJ = $(SXLASRC) $(DXLASRC) $(CXLASRC) $(ZXLASRC)
--endif
-+.endif
-
- all: ../$(LAPACKLIB)
-
- ../$(LAPACKLIB): $(ALLOBJ) $(ALLXOBJ)
-- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ)
-- $(RANLIB) $@
-+ ${LIBTOOL} --mode=link --tag=F77 ${FC} ${LDFLAGS} -o ../$(LAPACKLIB) \
-+ $(ALLOBJ:.o=.lo) -rpath ${PREFIX}/lib -version-info 4:0
-
- single: $(SLASRC) $(DSLASRC) $(SXLASRC) $(SCLAUX) $(ALLAUX)
- $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(SLASRC) $(DSLASRC) \
-@@ -433,12 +433,12 @@ $(DLASRC): $(FRC)
- $(ZLASRC): $(FRC)
- $(ZCLASRC): $(FRC)
- $(DSLASRC): $(FRC)
--ifdef USEXBLAS
-+.ifdef USEXBLAS
- $(SXLASRC): $(FRC)
- $(CXLASRC): $(FRC)
- $(DXLASRC): $(FRC)
- $(ZXLASRC): $(FRC)
--endif
-+.endif
-
- FRC:
- @FRC=$(FRC)
-@@ -447,12 +447,14 @@ clean:
- rm -f *.o
-
- .f.o:
-- $(FORTRAN) $(OPTS) -c $< -o $@
-+ ${LIBTOOL} --mode=compile --tag=CC ${FC} ${FFLAGS} -c $<
-+
-+
-+slaruv.o: slaruv.f ; ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-+dlaruv.o: dlaruv.f ; ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-+sla_wwaddw.o: sla_wwaddw.f ; ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-+dla_wwaddw.o: dla_wwaddw.f ; ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-+cla_wwaddw.o: cla_wwaddw.f ; ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-+zla_wwaddw.o: zla_wwaddw.f ; ${LIBTOOL} --mode=compile --tag=CC $(FC) $(NOOPT) -c $< -o $@
-
--slaruv.o: slaruv.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
--dlaruv.o: dlaruv.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
--sla_wwaddw.o: sla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
--dla_wwaddw.o: dla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
--cla_wwaddw.o: cla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
--zla_wwaddw.o: zla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
-
View
@@ -1,16 +0,0 @@
-$NetBSD$
-
---- /dev/null 2007-11-22 18:29:57.000000000 +0100
-+++ make.inc
-@@ -0,0 +1,11 @@
-+SHELL= /bin/sh
-+PLAT= _${MACHINE}
-+FORTRAN= ${FC}
-+OPTS= ${FFLAGS}
-+DRVOPTS= $(OPTS)
-+NOOPT= ${FFLAGSNOOPT}
-+LOADER= ${FC}
-+LOADOPTS= ${LDFLAGS}
-+LAPACKLIB= liblapack342.la
-+BLASLIB= ../../librefblas342.la
-+TMGLIB= libtmglib.la

0 comments on commit 17c0c23

Please sign in to comment.