pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libf2c Make MAIN__ weak in order to allow non-Fo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/00afed4f7887
branches:  trunk
changeset: 568945:00afed4f7887
user:      asau <asau%pkgsrc.org@localhost>
date:      Tue Dec 29 18:12:44 2009 +0000

description:
Make MAIN__ weak in order to allow non-Fortran programs to use the library.
Proposed by Matthias Drochner.

diffstat:

 devel/libf2c/Makefile         |   4 ++--
 devel/libf2c/buildlink3.mk    |   4 ++--
 devel/libf2c/distinfo         |   3 ++-
 devel/libf2c/patches/patch-ak |  14 ++++++++++++++
 4 files changed, 20 insertions(+), 5 deletions(-)

diffs (61 lines):

diff -r 4ec51121f3a0 -r 00afed4f7887 devel/libf2c/Makefile
--- a/devel/libf2c/Makefile     Tue Dec 29 14:08:33 2009 +0000
+++ b/devel/libf2c/Makefile     Tue Dec 29 18:12:44 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2009/12/07 13:00:56 tnn Exp $
+# $NetBSD: Makefile,v 1.4 2009/12/29 18:12:44 asau Exp $
 
 DISTNAME=      libf2c-20090201
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_LOCAL}    # see notes below
 
diff -r 4ec51121f3a0 -r 00afed4f7887 devel/libf2c/buildlink3.mk
--- a/devel/libf2c/buildlink3.mk        Tue Dec 29 14:08:33 2009 +0000
+++ b/devel/libf2c/buildlink3.mk        Tue Dec 29 18:12:44 2009 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.3 2009/12/07 13:00:56 tnn Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2009/12/29 18:12:44 asau Exp $
 
 BUILDLINK_TREE+=       libf2c
 
 .if !defined(LIBF2C_BUILDLINK3_MK)
 LIBF2C_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.libf2c+= libf2c>=20090201nb2
+BUILDLINK_API_DEPENDS.libf2c+= libf2c>=20090201nb3
 BUILDLINK_PKGSRCDIR.libf2c?=   ../../devel/libf2c
 .endif # LIBF2C_BUILDLINK3_MK
 
diff -r 4ec51121f3a0 -r 00afed4f7887 devel/libf2c/distinfo
--- a/devel/libf2c/distinfo     Tue Dec 29 14:08:33 2009 +0000
+++ b/devel/libf2c/distinfo     Tue Dec 29 18:12:44 2009 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2009/12/07 13:00:56 tnn Exp $
+$NetBSD: distinfo,v 1.4 2009/12/29 18:12:44 asau Exp $
 
 SHA1 (libf2c-20090201.tar.gz) = 85bd1602dce67a4d784fa9815c993202b1da3216
 RMD160 (libf2c-20090201.tar.gz) = 27fe1476eef9431042b67660120285395850d6a7
 Size (libf2c-20090201.tar.gz) = 81983 bytes
 SHA1 (patch-ai) = 3213ead493c570eb70bbd43e47f6bbc4bb762796
 SHA1 (patch-aj) = 78ff4ad86970e1a32eb65ca4364dda0004959cf3
+SHA1 (patch-ak) = 0369faf3d5a09a308915452afd58850c6e6a1731
diff -r 4ec51121f3a0 -r 00afed4f7887 devel/libf2c/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libf2c/patches/patch-ak     Tue Dec 29 18:12:44 2009 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ak,v 1.1 2009/12/29 18:12:44 asau Exp $
+
+Make MAIN__ weak in order to allow non-Fortran programs to use the library.
+
+--- main.c.orig        2008-04-06 06:42:46.000000000 +0400
++++ main.c     2009-12-29 18:18:21.000000000 +0300
+@@ -49,6 +49,7 @@
+ #define Int /* int */
+ #else
+ extern void f_init(void), sig_die(const char*, int);
++#pragma weak MAIN__
+ extern int MAIN__(void);
+ #define Int int
+ #endif



Home | Main Index | Thread Index | Old Index