diff options
Diffstat (limited to 'lang/f2c/patches')
-rw-r--r-- | lang/f2c/patches/patch-aa | 42 | ||||
-rw-r--r-- | lang/f2c/patches/patch-ad | 11 | ||||
-rw-r--r-- | lang/f2c/patches/patch-ae | 104 | ||||
-rw-r--r-- | lang/f2c/patches/patch-ag | 120 |
4 files changed, 100 insertions, 177 deletions
diff --git a/lang/f2c/patches/patch-aa b/lang/f2c/patches/patch-aa index 126af6db8da..e340d32730c 100644 --- a/lang/f2c/patches/patch-aa +++ b/lang/f2c/patches/patch-aa @@ -1,13 +1,11 @@ -$NetBSD: patch-aa,v 1.12 2002/08/25 19:23:02 jlam Exp $ +$NetBSD: patch-aa,v 1.13 2004/09/14 22:09:40 dmcmahill Exp $ -Add a top level Makefile - ---- /dev/null Thu Apr 5 17:09:09 2001 -+++ Makefile Thu Apr 5 18:31:35 2001 -@@ -0,0 +1,64 @@ +--- Makefile.orig Tue Sep 14 16:47:52 2004 ++++ Makefile +@@ -0,0 +1,43 @@ +# Top level Makefile for f2c, libF77, and libI77 + -+all: f2c libf2c/libf2c.a f2c-f77 man ++all: f2c libF77/libF77.la libI77/libI77.la f2c-f77 man + + +f2c: @@ -15,29 +13,13 @@ Add a top level Makefile + cd src; ${MAKE} all + cp src/f2c f2c + -+libF77/libF77.a: ++libF77/libF77.la: + @echo Making all in 'libF77' -+ cd libF77 && ${MAKE} all ++ cd libF77 && ${MAKE} all LIBDIR=${PREFIX}/lib + -+libI77/libI77.a: ++libI77/libI77.la: + @echo Making all in 'libI77' -+ cd libI77 && ${MAKE} all -+ -+libf2c/libf2c.a: libI77/libI77.a libF77/libF77.a -+ -mkdir libf2c -+ if [ -f libF77/libF77.a ]; then cd libf2c && ar x ../libF77/libF77.a ; fi -+ if [ -f libF77/libF77_p.a ]; then cd libf2c && ar x ../libF77/libF77_p.a ; fi -+ if [ -f libF77/libF77_pic.a ]; then cd libf2c && ar x ../libF77/libF77_pic.a ; fi -+ if [ -f libI77/libI77.a ]; then cd libf2c && ar x ../libI77/libI77.a ; fi -+ if [ -f libI77/libI77_p.a ]; then cd libf2c && ar x ../libI77/libI77_p.a ; fi -+ if [ -f libI77/libI77_pic.a ]; then cd libf2c && ar x ../libI77/libI77_pic.a ; fi -+ if [ -f libF77/libF77.a ]; then cd libf2c && ar cruv libf2c.a *.o ; fi -+ if [ -f libF77/libF77_p.a ]; then cd libf2c && ar cruv libf2c_p.a *.po ; fi -+ if [ -f libF77/libF77_pic.a ]; then cd libf2c && ar cruv libf2c_pic.a *.so ; fi -+ if [ -f libF77/libF77_pic.a ]; then cd libf2c && \ -+ ld -Bshareable -soname libf2c.so.${F2CMAJOR} -o libf2c.so.${F2CMAJOR}.${F2CMINOR} *.so ; fi -+ if [ "${MACHINE_ARCH}" = "mipsel" ]; then cd libf2c && \ -+ ld -Bshareable -soname libf2c.so.${F2CMAJOR} -o libf2c.so.${F2CMAJOR}.${F2CMINOR} *.o ; fi ++ cd libI77 && ${MAKE} all LIBDIR=${PREFIX}/lib + +man: f2c.0 + @@ -54,11 +36,6 @@ Add a top level Makefile + -@mkdir -p ${PREFIX}/lib + @cd libI77 && ${MAKE} install LIBDIR=${PREFIX}/lib + @cd libF77 && ${MAKE} install LIBDIR=${PREFIX}/lib -+ ${BSD_INSTALL_DATA} ./libf2c/libf2c.a ${PREFIX}/lib -+ if [ -f ./libf2c/libf2c_p.a ]; then ${BSD_INSTALL_DATA} ./libf2c/libf2c_p.a ${PREFIX}/lib ; fi -+ if [ -f ./libf2c/libf2c_pic.a ]; then ${BSD_INSTALL_DATA} ./libf2c/libf2c_pic.a ${PREFIX}/lib ; fi -+ if [ -f ./libf2c/libf2c.so.${F2CMAJOR}.${F2CMINOR} ]; then \ -+ ${BSD_INSTALL_DATA} ./libf2c/libf2c.so.${F2CMAJOR}.${F2CMINOR} ${PREFIX}/lib ; fi + -@mkdir -p ${PREFIX}/include + ${BSD_INSTALL_DATA} ./f2c.h ${PREFIX}/include + -@mkdir -p ${PREFIX}/share/doc/f2c @@ -69,4 +46,3 @@ Add a top level Makefile + +f2c-f77: fc + sed 's!@PREFIX@!${PREFIX}!g' fc > f2c-f77 -+ diff --git a/lang/f2c/patches/patch-ad b/lang/f2c/patches/patch-ad index d3c115b3b9f..ac4a189c455 100644 --- a/lang/f2c/patches/patch-ad +++ b/lang/f2c/patches/patch-ad @@ -1,10 +1,10 @@ -$NetBSD: patch-ad,v 1.4 1999/12/16 00:58:27 dmcmahill Exp $ +$NetBSD: patch-ad,v 1.5 2004/09/14 22:09:40 dmcmahill Exp $ Name libraries correctly --- f2c.1t.orig Tue Sep 8 10:16:48 1998 +++ f2c.1t Tue Dec 7 17:24:23 1999 -@@ -334,12 +334,15 @@ +@@ -334,12 +334,12 @@ output file .TP -.F /usr/include/f2c.h @@ -14,14 +14,11 @@ Name libraries correctly -.F /usr/lib/libF77.a -intrinsic function library +.F .../lib/libF77.a -+intrinsic function library. May be replaced by libf2c.a ++intrinsic function library. .TP -.F /usr/lib/libI77.a -Fortran I/O library +.F .../lib/libI77.a -+Fortran I/O library. May be replaced by libf2c.a -+.TP -+.F .../lib/libf2c.a -+Combined Fortran library. May be used in place of libF77.a and libI77.a ++Fortran I/O library. .TP .F /lib/libc.a diff --git a/lang/f2c/patches/patch-ae b/lang/f2c/patches/patch-ae index 61d9f101c08..cd7a1e32c86 100644 --- a/lang/f2c/patches/patch-ae +++ b/lang/f2c/patches/patch-ae @@ -1,78 +1,81 @@ -$NetBSD: patch-ae,v 1.8 2002/03/14 22:09:35 dmcmahill Exp $ +$NetBSD: patch-ae,v 1.9 2004/09/14 22:09:40 dmcmahill Exp $ -use a bsd style makefile for building shared libs - ---- libF77/makefile.orig Fri Apr 6 22:20:09 2001 -+++ libF77/makefile Fri Apr 6 22:20:40 2001 -@@ -1,26 +1,5 @@ +--- libF77/makefile.orig Tue Sep 14 18:38:32 2004 ++++ libF77/makefile +@@ -1,7 +1,4 @@ -.SUFFIXES: .c .o -CC = cc -SHELL = /bin/sh -CFLAGS = -O -- --# If your system lacks onexit() and you are not using an --# ANSI C compiler, then you should add -DNO_ONEXIT to CFLAGS, --# e.g., by changing the above "CFLAGS =" line to --# CFLAGS = -O -DNO_ONEXIT -- --# On at least some Sun systems, it is more appropriate to change the --# "CFLAGS =" line to --# CFLAGS = -O -Donexit=on_exit -- ++.SUFFIXES: .c .lo + + # If your system lacks onexit() and you are not using an + # ANSI C compiler, then you should add -DNO_ONEXIT to CFLAGS, +@@ -12,11 +9,10 @@ CFLAGS = -O + # "CFLAGS =" line to + # CFLAGS = -O -Donexit=on_exit + -# compile, then strip unnecessary symbols -.c.o: - $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c - ld -r -x -o $*.xxx $*.o - mv $*.xxx $*.o --## Under Solaris (and other systems that do not understand ld -x), --## omit -x in the ld line above. --## If your system does not have the ld command, comment out --## or remove both the ld and mv lines above. -- -+CPPFLAGS+= -Wcast-align -DNO_ONEXIT -DSkip_f2c_Undefs -+NOGCCERROR= #defined -+MKLINT= no - MISC = F77_aloc.o Version.o main.o s_rnge.o abort_.o getarg_.o iargc_.o \ - getenv_.o signal_.o s_stop.o s_paus.o system_.o cabs.o\ -@@ -47,57 +25,11 @@ ++# compile ++.c.lo: ++ ${LIBTOOL} --mode=compile $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c ++ + ## Under Solaris (and other systems that do not understand ld -x), + ## omit -x in the ld line above. + ## If your system does not have the ld command, comment out +@@ -41,12 +37,12 @@ INT = i_abs.o i_dim.o i_dnnt.o i_indx.o + HALF = h_abs.o h_dim.o h_dnnt.o h_indx.o h_len.o h_mod.o h_nint.o h_sign.o + CMP = l_ge.o l_gt.o l_le.o l_lt.o hl_ge.o hl_gt.o hl_le.o hl_lt.o + EFL = ef1asc_.o ef1cmc_.o +-CHAR = F77_aloc.o s_cat.o s_cmp.o s_copy.o ++CHAR = s_cat.o s_cmp.o s_copy.o + F90BIT = lbitbits.o lbitshft.o + QINT = pow_qq.o qbitbits.o qbitshft.o TIME = dtime_.o etime_.o -all: signal1.h libF77.a -- --# You may need to adjust signal1.h suitably for your system... --signal1.h: signal1.h0 -- cp signal1.h0 signal1.h -- --# If you get an error compiling dtime_.c or etime_.c, try adding --# -DUSE_CLOCK to the CFLAGS assignment above; if that does not work, --# omit $(TIME) from the dependency list for libF77.a below. -- --# For INTEGER*8 support (which requires system-dependent adjustments to --# f2c.h), add $(QINT) to the libf2c.a dependency list below... -- ++all: signal1.h libF77.la + + # You may need to adjust signal1.h suitably for your system... + signal1.h: signal1.h0 +@@ -59,45 +55,26 @@ signal1.h: signal1.h0 + # For INTEGER*8 support (which requires system-dependent adjustments to + # f2c.h), add $(QINT) to the libf2c.a dependency list below... + -libF77.a : $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ -+OBJ= $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ ++OBJS = $(MISC) $(POW) $(CX) $(DCX) $(REAL) $(DBL) $(INT) \ $(HALF) $(CMP) $(EFL) $(CHAR) $(F90BIT) $(TIME) - ar r libF77.a $? - ranlib libF77.a || true -- --### If your system lacks ranlib, you don't need it; see README. -- ++ ++LTOBJS = ${OBJS:.o=.lo} ++ ++libF77.la : $(LTOBJS) ++ ${LIBTOOL} --mode=link ${CC} -o $@ ${LTOBJS} ${LDFLAGS} -rpath ${LIBDIR} -version-info ${F2CMAJOR}:${F2CMINOR} + + ### If your system lacks ranlib, you don't need it; see README. + -Version.o: Version.c - $(CC) -c Version.c ++Version.lo: Version.c ++ ${LIBTOOL} --mode=compile $(CC) ${CFLAGS} -c Version.c --# To compile with C++, first "make f2c.h" --f2c.h: f2ch.add -- cat /usr/include/f2c.h f2ch.add >f2c.h -+SRCS=${OBJ:.o=.c} + # To compile with C++, first "make f2c.h" + f2c.h: f2ch.add + cat /usr/include/f2c.h f2ch.add >f2c.h -install: libF77.a - mv libF77.a $(LIBDIR)/libF77.a - ranlib $(LIBDIR)/libF77.a || true -+LIB=F77 ++install: libF77.la ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libF77.la ${LIBDIR} --clean: -- rm -f libF77.a *.o + clean: + rm -f libF77.a *.o -check: - xsum F77_aloc.c Notice README Version.c abort_.c c_abs.c c_cos.c \ @@ -95,4 +98,3 @@ use a bsd style makefile for building shared libs - s_paus.c s_rnge.c s_stop.c sig_die.c signal1.h0 signal_.c system_.c \ - z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c >zap - cmp zap libF77.xsum && rm zap || diff libF77.xsum zap -+.include <bsd.lib.mk> diff --git a/lang/f2c/patches/patch-ag b/lang/f2c/patches/patch-ag index 5c91fc6aa71..97498700516 100644 --- a/lang/f2c/patches/patch-ag +++ b/lang/f2c/patches/patch-ag @@ -1,10 +1,8 @@ -$NetBSD: patch-ag,v 1.8 2002/03/14 22:09:35 dmcmahill Exp $ +$NetBSD: patch-ag,v 1.9 2004/09/14 22:09:40 dmcmahill Exp $ -use a BSD style makefile for building shared libs - ---- libI77/makefile.orig Fri Apr 6 22:20:23 2001 -+++ libI77/makefile Fri Apr 6 22:20:42 2001 -@@ -1,16 +1,5 @@ +--- libI77/makefile.orig Tue Sep 14 17:11:44 2004 ++++ libI77/makefile +@@ -1,13 +1,11 @@ -.SUFFIXES: .c .o -CC = cc -CFLAGS = -O @@ -15,96 +13,47 @@ use a BSD style makefile for building shared libs - $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c - ld -r -x -o $*.xxx $*.o - mv $*.xxx $*.o --## Under Solaris (and other systems that do not understand ld -x), --## omit -x in the ld line above. --## If your system does not have the ld command, comment out --## or remove both the ld and mv lines above. -+CPPFLAGS+= -Wcast-align -DSkip_f2c_Undefs -+NOGCCERROR= #defined -+MKLINT= no - - OBJ = Version.o backspace.o close.o dfe.o dolio.o due.o endfile.o err.o \ -@@ -18,87 +6,7 @@ ++all: libI77.la ++ ++.SUFFIXES: .c .lo ++ ++# compile ++.c.lo: ++ ${LIBTOOL} --mode=compile $(CC) -c -DSkip_f2c_Undefs $(CFLAGS) $*.c ++ + ## Under Solaris (and other systems that do not understand ld -x), + ## omit -x in the ld line above. + ## If your system does not have the ld command, comment out +@@ -17,18 +15,18 @@ OBJ = Version.o backspace.o close.o dfe. + fmt.o fmtlib.o ftell_.o iio.o ilnw.o inquire.o lread.o lwrite.o \ open.o rdfmt.o rewind.o rsfe.o rsli.o rsne.o sfe.o sue.o typesize.o \ uio.o util.o wref.o wrtfmt.o wsfe.o wsle.o wsne.o xwsne.o -libI77.a: $(OBJ) - ar r libI77.a $? - ranlib libI77.a || true -- --### If your system lacks ranlib, you don't need it; see README. -- ++LTOBJ= ${OBJ:.o=.lo} ++ ++libI77.la: $(LTOBJ) ++ ${LIBTOOL} --mode=link ${CC} ${CFLAGS} -o $@ ${LTOBJ} ${LDFLAGS} -rpath ${LIBDIR} -version-info ${F2CMAJOR}:${F2CMINOR} + + ### If your system lacks ranlib, you don't need it; see README. + -install: libI77.a - cp libI77.a $(LIBDIR)/libI77.a - ranlib $(LIBDIR)/libI77.a || true -- ++install: libI77.la ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libI77.la ${LIBDIR} + -Version.o: Version.c - $(CC) -c Version.c -- --# To compile with C++, first "make f2c.h" --f2c.h: f2ch.add -- cat /usr/include/f2c.h f2ch.add >f2c.h -- -- --clean: -- rm -f $(OBJ) libI77.a -- --clobber: clean -- rm -f libI77.a ++Version.lo: Version.c ++ ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c Version.c --backspace.o: fio.h --close.o: fio.h --dfe.o: fio.h --dfe.o: fmt.h --due.o: fio.h --endfile.o: fio.h rawio.h --err.o: fio.h rawio.h --fmt.o: fio.h --fmt.o: fmt.h --ftell_.o: fio.h --iio.o: fio.h --iio.o: fmt.h --ilnw.o: fio.h --ilnw.o: lio.h --inquire.o: fio.h --lread.o: fio.h --lread.o: fmt.h --lread.o: lio.h --lread.o: fp.h --lwrite.o: fio.h --lwrite.o: fmt.h --lwrite.o: lio.h --open.o: fio.h rawio.h --rdfmt.o: fio.h --rdfmt.o: fmt.h --rdfmt.o: fp.h --rewind.o: fio.h --rsfe.o: fio.h --rsfe.o: fmt.h --rsli.o: fio.h --rsli.o: lio.h --rsne.o: fio.h --rsne.o: lio.h --sfe.o: fio.h --sue.o: fio.h --uio.o: fio.h --util.o: fio.h --wref.o: fio.h --wref.o: fmt.h --wref.o: fp.h --wrtfmt.o: fio.h --wrtfmt.o: fmt.h --wsfe.o: fio.h --wsfe.o: fmt.h --wsle.o: fio.h --wsle.o: fmt.h --wsle.o: lio.h --wsne.o: fio.h --wsne.o: lio.h --xwsne.o: fio.h --xwsne.o: lio.h --xwsne.o: fmt.h -+SRCS= ${OBJ:.o=.c} -+LIB= I77 + # To compile with C++, first "make f2c.h" + f2c.h: f2ch.add +@@ -94,11 +92,3 @@ xwsne.o: fio.h + xwsne.o: lio.h + xwsne.o: fmt.h -check: - xsum Notice README Version.c backspace.c close.c dfe.c dolio.c \ @@ -114,4 +63,3 @@ use a BSD style makefile for building shared libs - typesize.c uio.c util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c \ - xwsne.c >zap - cmp zap libI77.xsum && rm zap || diff libI77.xsum zap -+.include <bsd.lib.mk> |