summaryrefslogtreecommitdiff
path: root/devel/libf2c
diff options
context:
space:
mode:
authorasau <asau@pkgsrc.org>2009-12-29 18:12:44 +0000
committerasau <asau@pkgsrc.org>2009-12-29 18:12:44 +0000
commit71bc049180c87d1e7d0397829aa27640460e9580 (patch)
tree571d32c41d63f41e4cdc28676d3740b2e13f6462 /devel/libf2c
parenteb2bcee3a0864ea30d369082f1c6511910c2c680 (diff)
downloadpkgsrc-71bc049180c87d1e7d0397829aa27640460e9580.tar.gz
Make MAIN__ weak in order to allow non-Fortran programs to use the library.
Proposed by Matthias Drochner.
Diffstat (limited to 'devel/libf2c')
-rw-r--r--devel/libf2c/Makefile4
-rw-r--r--devel/libf2c/buildlink3.mk4
-rw-r--r--devel/libf2c/distinfo3
-rw-r--r--devel/libf2c/patches/patch-ak14
4 files changed, 20 insertions, 5 deletions
diff --git a/devel/libf2c/Makefile b/devel/libf2c/Makefile
index f3c2b7a0922..b61042d3fbe 100644
--- a/devel/libf2c/Makefile
+++ b/devel/libf2c/Makefile
@@ -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 --git a/devel/libf2c/buildlink3.mk b/devel/libf2c/buildlink3.mk
index 6ad72b8c0ab..8cce0480a34 100644
--- a/devel/libf2c/buildlink3.mk
+++ b/devel/libf2c/buildlink3.mk
@@ -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 --git a/devel/libf2c/distinfo b/devel/libf2c/distinfo
index c6866232cb0..6947f114270 100644
--- a/devel/libf2c/distinfo
+++ b/devel/libf2c/distinfo
@@ -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 --git a/devel/libf2c/patches/patch-ak b/devel/libf2c/patches/patch-ak
new file mode 100644
index 00000000000..2f2e2375ad3
--- /dev/null
+++ b/devel/libf2c/patches/patch-ak
@@ -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