diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2002-03-17 14:53:57 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2002-03-17 14:53:57 +0000 |
commit | e94f4691acf63ab1a35dd75437049ea50bfcde9e (patch) | |
tree | 67a8a8e55103b83a03242d8893b2175d5e822360 /security/gpgme | |
parent | 64caae7c22caf9fd1be064cb1e309122e12c939f (diff) | |
download | pkgsrc-e94f4691acf63ab1a35dd75437049ea50bfcde9e.tar.gz |
Add buildlink.mk (which is shamelessly copied from another one).
Diffstat (limited to 'security/gpgme')
-rw-r--r-- | security/gpgme/buildlink.mk | 47 |
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 |