summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorjlam <jlam>2002-09-30 22:16:48 +0000
committerjlam <jlam>2002-09-30 22:16:48 +0000
commit8fd5ff3441aa28ad3fe3ba5fcfeb0a2703c59d9a (patch)
tree50c5568006c988064f6a9028ce00c78472e5441e /cross
parent07793cfbfd3fef841671fe3dc5450b73edfeac5c (diff)
downloadpkgsrc-8fd5ff3441aa28ad3fe3ba5fcfeb0a2703c59d9a.tar.gz
Add a buildlink2.mk file for other packages to use.
Diffstat (limited to 'cross')
-rw-r--r--cross/binutils/buildlink2.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/cross/binutils/buildlink2.mk b/cross/binutils/buildlink2.mk
new file mode 100644
index 00000000000..2e644cf9adf
--- /dev/null
+++ b/cross/binutils/buildlink2.mk
@@ -0,0 +1,30 @@
+# $NetBSD: buildlink2.mk,v 1.1 2002/09/30 22:16:48 jlam Exp $
+
+.if !defined(CROSS_BINUTILS_BUILDLINK2_MK)
+CROSS_BINUTILS_BUILDLINK2_MK= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILDLINK_DEPENDS.cross-binutils?= cross-binutils>=2.9.1.1
+BUILDLINK_PKGSRCDIR.cross-binutils?= ../../cross/binutils
+BUILDLINK_DEPMETHOD.cross-binutils?= build
+
+BUILDLINK_PACKAGES+= cross-binutils
+BUILDLINK_PREFIX.cross-binutils= ${LOCALBASE}
+
+CROSS= ${CROSSBASE:S/${BUILDLINK_PREFIX.cross-binutils}\///}
+
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/include/ansidecl.h
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/include/bfd.h
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/include/bfdlink.h
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/lib/libbfd.*
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/lib/libbfd-*.*
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/lib/libiberty.*
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/lib/libopcodes.*
+BUILDLINK_FILES.cross-binutils+= ${CROSS}/lib/libopcodes-*.*
+
+BUILDLINK_TARGETS+= cross-binutils-buildlink
+
+cross-binutils-buildlink: _BUILDLINK_USE
+
+.endif # CROSS_BINUTILS_BUILDLINK2_MK