summaryrefslogtreecommitdiff
path: root/math/eispack
diff options
context:
space:
mode:
authorjtb <jtb@pkgsrc.org>2001-02-02 00:23:49 +0000
committerjtb <jtb@pkgsrc.org>2001-02-02 00:23:49 +0000
commitfc38234e923144ddd81187c10365843d248f9497 (patch)
tree1a25f8f6c5a3cdb8eedc545afafe16f4f48795a4 /math/eispack
parentafc80f1b2d11aa4eed9e764da1f3122077d25dcb (diff)
downloadpkgsrc-fc38234e923144ddd81187c10365843d248f9497.tar.gz
Don't build shared Fortran libraries. They're too problematic.
Strictly numerical libraries, like fftpack, work fine, but some which make use of Fortran I/O have problems resolving symbols. This is a known problem with g77/f2c.
Diffstat (limited to 'math/eispack')
-rw-r--r--math/eispack/Makefile11
-rw-r--r--math/eispack/files/Makefile23
2 files changed, 13 insertions, 21 deletions
diff --git a/math/eispack/Makefile b/math/eispack/Makefile
index d62beeeb7c2..9ec04d42897 100644
--- a/math/eispack/Makefile
+++ b/math/eispack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2000/12/01 01:48:25 jtb Exp $
+# $NetBSD: Makefile,v 1.3 2001/02/02 00:23:50 jtb Exp $
DISTNAME= eispack-20001130
CATEGORIES= math
@@ -6,14 +6,11 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= jtb@netbsd.org
+NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/eispack
-USE_LIBTOOL= YES
-UES_FORTRAN= YES
-
-.include "../../mk/bsd.prefs.mk"
+USE_FORTRAN= YES
pre-build:
- @${SED} -e 's:%%FORTRAN%%:'${FC}':g' \
- < ${FILESDIR}/Makefile > ${WRKSRC}/Makefile
+ ${CP} ${FILESDIR}/Makefile ${WRKSRC}
.include "../../mk/bsd.pkg.mk"
diff --git a/math/eispack/files/Makefile b/math/eispack/files/Makefile
index f23d957baf1..de89a9fb0ff 100644
--- a/math/eispack/files/Makefile
+++ b/math/eispack/files/Makefile
@@ -1,12 +1,10 @@
LIB = eispack
-LIBDIR = ${PREFIX}/lib
-FORTRAN = %%FORTRAN%%
-FOPTS = -O3
+LIBDIR = ${PREFIX}/lib
-all: lib$(LIB)
+all: lib$(LIB).a
-OBJ = csroot.o epslon.o pythag.o bakvec.o balanc.o balbak.o bandr.o \
+OBJS = csroot.o epslon.o pythag.o bakvec.o balanc.o balbak.o bandr.o \
bandv.o bisect.o bqr.o cbabk2.o cbal.o cg.o ch.o cinvit.o \
combak.o comhes.o comlr.o comlr2.o comqr.o comqr2.o cortb.o \
corth.o elmbak.o elmhes.o eltran.o figi.o figi2.o hqr.o hqr2.o \
@@ -18,15 +16,12 @@ OBJ = csroot.o epslon.o pythag.o bakvec.o balanc.o balbak.o bandr.o \
trbak1.o trbak3.o tred1.o tred2.o tred3.o tridib.o tsturm.o \
cdiv.o
-lib$(LIB): $(OBJ)
- @$(LIBTOOL) --mode=link $(FORTRAN) $(FFLAGS) $(FOPTS) \
- -O -o lib$(LIB).la $(OBJ:.o=.lo) --version-info 0:0 -rpath $(LIBDIR)
-
-.f.o:
- @$(LIBTOOL) --mode=compile $(FORTRAN) $(FFLAGS) $(FOPTS) -c $*.f
+lib$(LIB).a: $(OBJS)
+ $(AR) cru $@ $?
+ $(RANLIB) $@
-install: lib$(LIB)
- @$(LIBTOOL) --mode=install install -c lib$(LIB).la $(LIBDIR)
+install: lib$(LIB).a
+ $(BSD_INSTALL_DATA) lib$(LIB).a $(LIBDIR)
clean:
- rm -rf *.o *.lo .libs lib$(LIB).la
+ rm -f *.o lib$(LIB).a