summaryrefslogtreecommitdiff
path: root/math/quadpack
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/quadpack
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/quadpack')
-rw-r--r--math/quadpack/Makefile17
-rw-r--r--math/quadpack/files/Makefile21
-rw-r--r--math/quadpack/pkg/PLIST6
3 files changed, 16 insertions, 28 deletions
diff --git a/math/quadpack/Makefile b/math/quadpack/Makefile
index 49e526363b7..4f00c9e92ea 100644
--- a/math/quadpack/Makefile
+++ b/math/quadpack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2000/12/01 01:51:33 jtb Exp $
+# $NetBSD: Makefile,v 1.3 2001/02/02 00:23:53 jtb Exp $
DISTNAME= quadpack-20001130
CATEGORIES= math
@@ -6,20 +6,17 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= jtb@netbsd.org
+NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/quadpack
-
-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}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/quadpack
- @for i in doc readme ; do \
- ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/quadpack ; done
+ for i in doc readme ; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/quadpack; \
+ done
.include "../../mk/bsd.pkg.mk"
diff --git a/math/quadpack/files/Makefile b/math/quadpack/files/Makefile
index 20efa3af9df..a22ea3a0725 100644
--- a/math/quadpack/files/Makefile
+++ b/math/quadpack/files/Makefile
@@ -1,12 +1,10 @@
LIB = quadpack
LIBDIR = ${PREFIX}/lib
-FORTRAN = %%FORTRAN%%
-FFLAGS = -O3
-all: lib$(LIB)
+all: lib$(LIB).a
-OBJ= dqag.o dqage.o dqagi.o dqagie.o dqagp.o dqagpe.o dqags.o \
+OBJS = dqag.o dqage.o dqagi.o dqagie.o dqagp.o dqagpe.o dqags.o \
dqagse.o dqawc.o dqawce.o dqawf.o dqawfe.o dqawo.o \
dqawoe.o dqaws.o dqawse.o dqc25c.o dqc25f.o dqc25s.o \
dqcheb.o dqelg.o dqk15.o dqk15i.o dqk15w.o dqk21.o \
@@ -18,15 +16,12 @@ OBJ= dqag.o dqage.o dqagi.o dqagie.o dqagp.o dqagpe.o dqags.o \
qk31.o qk41.o qk51.o qk61.o qmomo.o qng.o qpsrt.o \
qwgtc.o qwgtf.o qwgts.o
-lib$(LIB): $(OBJ)
- @$(LIBTOOL) --mode=link $(FORTRAN) $(FFLAGS) \
- -O -o lib$(LIB).la $(OBJ:.o=.lo) -rpath $(LIBDIR) --version-info 0:0
+lib$(LIB).a: $(OBJS)
+ $(AR) cru $@ $?
+ $(RANLIB) $@
-.f.o:
- @$(LIBTOOL) --mode=compile $(FORTRAN) $(FFLAGS) -c $*.f
-
-install: lib$(LIB)
- @$(LIBTOOL) --mode=install install -c lib$(LIB).la $(LIBDIR)
+install: lib$(LIB).a
+ $(BSD_INSTALL_DATA) $? $(LIBDIR)
clean:
- rm -rf *.o *.lo .libs lib$(LIB).la
+ rm -f *.o lib$(LIB).a
diff --git a/math/quadpack/pkg/PLIST b/math/quadpack/pkg/PLIST
index caaf94d31e2..2b56400b09c 100644
--- a/math/quadpack/pkg/PLIST
+++ b/math/quadpack/pkg/PLIST
@@ -1,9 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2001/01/04 15:10:49 agc Exp $
+@comment $NetBSD: PLIST,v 1.3 2001/02/02 00:23:53 jtb Exp $
lib/libquadpack.a
-lib/libquadpack.la
-lib/libquadpack.so
-lib/libquadpack.so.0
-lib/libquadpack.so.0.0
share/doc/quadpack/doc
share/doc/quadpack/readme
@dirrm share/doc/quadpack