summaryrefslogtreecommitdiff
path: root/lang/f2c
diff options
context:
space:
mode:
authorjlam <jlam>2001-07-18 22:11:33 +0000
committerjlam <jlam>2001-07-18 22:11:33 +0000
commit2eb0cc110be5722a471056e0c495b4d8819dac22 (patch)
treee2566756b8f5d24a4f2def2e4cd54de4bcd09128 /lang/f2c
parentc6c04709e57d51fbd8012c5baf09507c0e41b1ed (diff)
downloadpkgsrc-2eb0cc110be5722a471056e0c495b4d8819dac22.tar.gz
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'lang/f2c')
-rw-r--r--lang/f2c/buildlink.mk41
1 files changed, 41 insertions, 0 deletions
diff --git a/lang/f2c/buildlink.mk b/lang/f2c/buildlink.mk
new file mode 100644
index 00000000000..a89e9c8f5fd
--- /dev/null
+++ b/lang/f2c/buildlink.mk
@@ -0,0 +1,41 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/18 22:11:33 jlam Exp $
+#
+# This Makefile fragment is included by packages that use f2c.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.f2c to the dependency pattern
+# for the version of f2c desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(F2C_BUILDLINK_MK)
+F2C_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.f2c?= f2c>=20001205nb3
+DEPENDS+= ${BUILDLINK_DEPENDS.f2c}:../../lang/f2c
+
+BUILDLINK_PREFIX.f2c= ${LOCALBASE}
+BUILDLINK_FILES.f2c= include/f2c.h
+BUILDLINK_FILES.f2c+= lib/libf2c.*
+BUILDLINK_FILES.f2c+= lib/libf2c_p.a
+BUILDLINK_FILES.f2c+= lib/libf2c_pic.a
+BUILDLINK_FILES.f2c+= lib/libF77.*
+BUILDLINK_FILES.f2c+= lib/libF77_p.a
+BUILDLINK_FILES.f2c+= lib/libF77_pic.a
+BUILDLINK_FILES.f2c+= lib/libI77.*
+BUILDLINK_FILES.f2c+= lib/libI77_p.a
+BUILDLINK_FILES.f2c+= lib/libI77_pic.a
+
+BUILDLINK_TARGETS.f2c= f2c-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.f2c}
+
+pre-configure: ${BUILDLINK_TARGETS.f2c}
+f2c-buildlink: _BUILDLINK_USE
+
+.endif # F2C_BUILDLINK_MK