summaryrefslogtreecommitdiff
path: root/devel/pth
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-15 07:54:41 +0000
committerjlam <jlam>2001-06-15 07:54:41 +0000
commit7581773c6c92a317e331a5bea1fab51438baf224 (patch)
tree280b7a4881c782cf10454b03645654477442b984 /devel/pth
parentf72d8144b95c6e3b5de09cdfcf49a780412600d3 (diff)
downloadpkgsrc-7581773c6c92a317e331a5bea1fab51438baf224.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