summaryrefslogtreecommitdiff
path: root/x11/xforms
diff options
context:
space:
mode:
authorzuntum <zuntum>2001-07-03 21:29:56 +0000
committerzuntum <zuntum>2001-07-03 21:29:56 +0000
commit6b6e99ae35e0bfbcbde6056e0649fbfcf6a4d369 (patch)
tree310e74585e190d947cfd699ed32aaeb1ddf755f5 /x11/xforms
parentb6138f63b39748f0fa793985a66940f77ddc6ee7 (diff)
downloadpkgsrc-6b6e99ae35e0bfbcbde6056e0649fbfcf6a4d369.tar.gz
Add buildlink.mk file for use by other packages
Diffstat (limited to 'x11/xforms')
-rw-r--r--x11/xforms/buildlink.mk36
1 files changed, 36 insertions, 0 deletions
diff --git a/x11/xforms/buildlink.mk b/x11/xforms/buildlink.mk
new file mode 100644
index 00000000000..4cc9577a3c7
--- /dev/null
+++ b/x11/xforms/buildlink.mk
@@ -0,0 +1,36 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/07/03 21:29:56 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use xforms.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.xforms to the dependency pattern
+# for the version of xforms 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(XFORMS_BUILDLINK_MK)
+XFORMS_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.xforms?= xforms>=0.88nb1
+DEPENDS+= ${BUILDLINK_DEPENDS.xforms}:../../x11/xforms
+
+BUILDLINK_PREFIX.xforms= ${X11PREFIX}
+BUILDLINK_FILES.xforms= include/X11/forms.h
+BUILDLINK_FILES.xforms+= lib/libforms.*
+BUILDLINK_FILES.xforms+= lib/libxforms.*
+
+.include "../../graphics/xpm/buildlink.mk"
+
+BUILDLINK_TARGETS.xforms= xforms-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.xforms}
+
+pre-configure: ${BUILDLINK_TARGETS.xforms}
+xforms-buildlink: _BUILDLINK_USE
+
+.endif # XFORMS_BUILDLINK_MK