summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoruebayasi <uebayasi>2002-03-17 14:53:57 +0000
committeruebayasi <uebayasi>2002-03-17 14:53:57 +0000
commitc42c81fa42b2eecb18c3c93f5de3ef2c6cec9ca5 (patch)
tree67a8a8e55103b83a03242d8893b2175d5e822360 /security
parentee22d696c2be524efad74b86ecc3d9306b984b0a (diff)
downloadpkgsrc-c42c81fa42b2eecb18c3c93f5de3ef2c6cec9ca5.tar.gz
Add buildlink.mk (which is shamelessly copied from another one).
Diffstat (limited to 'security')
-rw-r--r--security/gpgme/buildlink.mk47
1 files changed, 47 insertions, 0 deletions
diff --git a/security/gpgme/buildlink.mk b/security/gpgme/buildlink.mk
new file mode 100644
index 00000000000..1e398f99fce
--- /dev/null
+++ b/security/gpgme/buildlink.mk
@@ -0,0 +1,47 @@
+# $NetBSD: buildlink.mk,v 1.1 2002/03/17 14:53:57 uebayasi Exp $
+#
+# This Makefile fragment is included by packages that use GPGME.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.gpgme to the dependency pattern
+# for the version of GPGME 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(GPGME_BUILDLINK_MK)
+GPGME_BUILDLINK_MK= # defined
+
+.include "../../mk/bsd.buildlink.mk"
+
+BUILDLINK_DEPENDS.gpgme?= gpgme>=0.3.0
+DEPENDS+= ${BUILDLINK_DEPENDS.gpgme}:../../security/gpgme
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.gpgme=gpgme
+BUILDLINK_PREFIX.gpgme_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.gpgme+= include/gpgme.h
+BUILDLINK_FILES.gpgme+= lib/libgpgme.*
+
+BUILDLINK_TARGETS.gpgme= gpgme-buildlink
+BUILDLINK_TARGETS.gpgme+= gpgme-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gpgme}
+
+BUILDLINK_CONFIG.gpgme= ${BUILDLINK_PREFIX.gpgme}/bin/gpgme-config
+BUILDLINK_CONFIG_WRAPPER.gpgme= ${BUILDLINK_DIR}/bin/gpgme-config
+REPLACE_BUILDLINK_SED+= \
+ -e "s|${BUILDLINK_CONFIG_WRAPPER.gpgme}|${BUILDLINK_CONFIG.gpgme}|g"
+
+.if defined(USE_CONFIG_WRAPPER)
+GPGME_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.gpgme}
+CONFIGURE_ENV+= GPGME_CONFIG="${GPGME_CONFIG}"
+MAKE_ENV+= GPGME_CONFIG="${GPGME_CONFIG}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.gpgme}
+gpgme-buildlink: _BUILDLINK_USE
+gpgme-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.endif # GPGME_BUILDLINK_MK