summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-06-30 10:34:42 +0000
committerzuntum <zuntum@pkgsrc.org>2001-06-30 10:34:42 +0000
commita95f52ee25734fc155edc36cf4d7f5c7d44895cd (patch)
treea51301c0842dfe1fac7208aa4fbdfb88c0cc805b /www
parente0ec2bde3978002cae4d7ac699b1a4fc4799da36 (diff)
downloadpkgsrc-a95f52ee25734fc155edc36cf4d7f5c7d44895cd.tar.gz
Add buildlink.mk file for use by other packages
Diffstat (limited to 'www')
-rw-r--r--www/libghttp/buildlink.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/www/libghttp/buildlink.mk b/www/libghttp/buildlink.mk
new file mode 100644
index 00000000000..190ce6b40ec
--- /dev/null
+++ b/www/libghttp/buildlink.mk
@@ -0,0 +1,33 @@
+# $NetBSD: buildlink.mk,v 1.1 2001/06/30 10:34:42 zuntum Exp $
+#
+# This Makefile fragment is included by packages that use libghttp.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libghttp to the dependency pattern
+# for the version of libghttp 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(LIBGHTTP_BUILDLINK_MK)
+LIBGHTTP_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.libghttp?= libghttp>=1.0.9
+DEPENDS+= ${BUILDLINK_DEPENDS.libghttp}:../../www/libghttp
+
+BUILDLINK_PREFIX.libghttp= ${LOCALBASE}
+BUILDLINK_FILES.libghttp= include/ghttp*
+BUILDLINK_FILES.libghttp+= lib/libghttp.*
+
+BUILDLINK_TARGETS.libghttp= libghttp-buildlink
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libghttp}
+
+pre-configure: ${BUILDLINK_TARGETS.libghttp}
+libghttp-buildlink: _BUILDLINK_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LIBGHTTP_BUILDLINK_MK