diff options
author | jlam <jlam@pkgsrc.org> | 2001-10-09 06:43:58 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-10-09 06:43:58 +0000 |
commit | 0091769cc37d9fa658ee661a72c25b3842cb1a36 (patch) | |
tree | e964524b09304ccd93f1d760dbbd0a76ffb671a8 /security/libmcrypt/buildlink.mk | |
parent | 820ae6f73e976def82c26a371685f1ea006e5a0f (diff) | |
download | pkgsrc-0091769cc37d9fa658ee661a72c25b3842cb1a36.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'security/libmcrypt/buildlink.mk')
-rw-r--r-- | security/libmcrypt/buildlink.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/security/libmcrypt/buildlink.mk b/security/libmcrypt/buildlink.mk new file mode 100644 index 00000000000..873b11ffebf --- /dev/null +++ b/security/libmcrypt/buildlink.mk @@ -0,0 +1,34 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/10/09 06:43:58 jlam Exp $ +# +# This Makefile fragment is included by packages that use libmcrypt. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define BUILDLINK_DEPENDS.libmcrypt to the dependency pattern +# for the version of libmcrypt 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(LIBMCRYPT_BUILDLINK_MK) +LIBMCRYPT_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.libmcrypt?= libmcrypt>=2.2 +DEPENDS+= ${BUILDLINK_DEPENDS.libmcrypt}:../../security/libmcrypt + +EVAL_PREFIX+= BUILDLINK_PREFIX.libmcrypt=libmcrypt +BUILDLINK_PREFIX.libmcrypt_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.libmcrypt= include/mcrypt.h +BUILDLINK_FILES.libmcrypt+= lib/libmcrypt.* + +BUILDLINK_TARGETS.libmcrypt= libmcrypt-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libmcrypt} + +pre-configure: ${BUILDLINK_TARGETS.libmcrypt} +libmcrypt-buildlink: _BUILDLINK_USE + +.endif # LIBMCRYPT_BUILDLINK_MK |