summaryrefslogtreecommitdiff
path: root/lang/gcc3-f77/buildlink2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc3-f77/buildlink2.mk')
-rw-r--r--lang/gcc3-f77/buildlink2.mk35
1 files changed, 35 insertions, 0 deletions
diff --git a/lang/gcc3-f77/buildlink2.mk b/lang/gcc3-f77/buildlink2.mk
new file mode 100644
index 00000000000..73555caa244
--- /dev/null
+++ b/lang/gcc3-f77/buildlink2.mk
@@ -0,0 +1,35 @@
+# $NetBSD: buildlink2.mk,v 1.1 2004/02/01 14:05:47 jlam Exp $
+
+.if !defined(GCC3F77_BUILDLINK2_MK)
+GCC3F77_BUILDLINK2_MK= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(GCC3_INSTALLTO_SUBPREFIX)
+GCC3_PKGMODIF= _${GCC3_INSTALLTO_SUBPREFIX}
+.endif
+BUILDLINK_PACKAGES+= gcc3f77
+BUILDLINK_DEPENDS.gcc3f77?= gcc3${GCC3_PKGMODIF}-f77>=${_GCC_REQD}
+BUILDLINK_PKGSRCDIR.gcc3f77?= ../../lang/gcc3-f77
+
+# Packages that link against gcc shared libraries need a full
+# dependency.
+#
+.if defined(USE_GCC_SHLIB)
+BUILDLINK_DEPMETHOD.gcc3f77+= full
+.else
+BUILDLINK_DEPMETHOD.gcc3f77?= build
+.endif
+
+BUILDLINK_PREFIX.gcc3f77= ${LOCALBASE}
+BUILDLINK_WRAPPER_ENV+= \
+ COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
+
+BUILDLINK_FILES.gcc3f77= ${_GCC_SUBPREFIX}lib/gcc-lib/*/*/include/g2c.h
+BUILDLINK_FILES.gcc3f77+= ${_GCC_SUBPREFIX}lib/libg2c.*
+
+BUILDLINK_TARGETS+= gcc3f77-buildlink
+
+gcc3f77-buildlink: _BUILDLINK_USE
+
+.endif # GCC3F77_BUILDLINK2_MK