summaryrefslogtreecommitdiff
path: root/devel/cvsync/Makefile
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-08-15 04:20:59 +0000
committerminskim <minskim@pkgsrc.org>2004-08-15 04:20:59 +0000
commitd4bf017ca5cd378faf7b79263c071e3a82253142 (patch)
tree3c49c22922d04b188d979777e4e1c088611d125a /devel/cvsync/Makefile
parentd5515a6153d0f75aa3c85e3889025cf1411cb556 (diff)
downloadpkgsrc-d4bf017ca5cd378faf7b79263c071e3a82253142.tar.gz
The hash function type can be selected among native, openssl,
libgcrypt, and mhash. Suggested by gehenna@.
Diffstat (limited to 'devel/cvsync/Makefile')
-rw-r--r--devel/cvsync/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/devel/cvsync/Makefile b/devel/cvsync/Makefile
index 79969c771e2..a1a1dc87163 100644
--- a/devel/cvsync/Makefile
+++ b/devel/cvsync/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.67 2004/08/12 20:46:21 minskim Exp $
+# $NetBSD: Makefile,v 1.68 2004/08/15 04:20:59 minskim Exp $
#
DISTNAME= cvsync-0.24.16
@@ -27,8 +27,29 @@ CONF_FILES+= ${EGDIR}/cvsync.conf ${PKG_SYSCONFDIR}/cvsync.conf
.include "../../mk/bsd.prefs.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.cvsync
.ifdef ${OPSYS} == "AIX" || ${OPSYS} == "BSDOS" || ${OPSYS} == "Darwin" || \
${OPSYS} == "Linux" || ${OPSYS} == "SunOS"
+PKG_OPTIONS.cvsync?= openssl
+PKG_SUPPORTED_OPTIONS= libgcrypt mhash openssl
+.else
+PKG_OPTIONS.cvsync?= native
+PKG_SUPPORTED_OPTIONS= libgcrypt mhash native openssl
+.endif
+.include "../../mk/bsd.options.mk"
+
+###
+### Hash type
+###
+.if !empty(PKG_OPTIONS:Mlibgcrypt)
+MAKE_ENV+= HASH_TYPE="libgcyprt"
+.include "../../security/libgcrypt/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mmhash)
+MAKE_ENV+= HASH_TYPE="mhash"
+.include "../../security/mhash/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Mnative)
+MAKE_ENV+= HASH_TYPE="native"
+.elif !empty(PKG_OPTIONS:Mopenssl)
MAKE_ENV+= HASH_TYPE="openssl"
.include "../../security/openssl/buildlink3.mk"
.endif