summaryrefslogtreecommitdiff
path: root/devel/pth
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-06-15 07:54:41 +0000
committerjlam <jlam@pkgsrc.org>2001-06-15 07:54:41 +0000
commit32abf493aba4c75b7c68c8bfaae3ba68cae88adf (patch)
tree280b7a4881c782cf10454b03645654477442b984 /devel/pth
parent73823d7723543ce6ca9a917d6f2b21a7fd895692 (diff)
downloadpkgsrc-32abf493aba4c75b7c68c8bfaae3ba68cae88adf.tar.gz
buildlink.mk file for pth for use by other packages
Diffstat (limited to 'devel/pth')
-rw-r--r--devel/pth/buildlink.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/devel/pth/buildlink.mk b/devel/pth/buildlink.mk
new file mode 100644
index 00000000000..793be894a65
--- /dev/null
+++ b/devel/pth/buildlink.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/15 07:54:41 jlam Exp $
+#
+# This Makefile fragment is included by packages that use pth.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define PTH_REQD to the version of pth 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(PTH_BUILDLINK_MK)
+PTH_BUILDLINK_MK= # defined
+
+PTH_REQD?= 1.3.2
+DEPENDS+= pth>=${PTH_REQD}:../../devel/pth
+
+BUILDLINK_PREFIX.pth= ${LOCALBASE}
+BUILDLINK_FILES.pth= include/pth.h
+BUILDLINK_FILES.pth+= include/pthread.h
+BUILDLINK_FILES.pth+= lib/libpth.*
+
+BUILDLINK_TARGETS.pth= pth-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.pth}
+
+pre-configure: ${BUILDLINK_TARGETS.pth}
+pth-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # PTH_BUILDLINK_MK