summaryrefslogtreecommitdiff
path: root/security/mhash
diff options
context:
space:
mode:
Diffstat (limited to 'security/mhash')
-rw-r--r--security/mhash/Makefile8
-rw-r--r--security/mhash/buildlink2.mk19
2 files changed, 24 insertions, 3 deletions
diff --git a/security/mhash/Makefile b/security/mhash/Makefile
index f2ea033ddc1..0955f9dbc77 100644
--- a/security/mhash/Makefile
+++ b/security/mhash/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/10/09 19:20:33 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2002/08/25 18:39:55 jlam Exp $
DISTNAME= mhash-0.8.9
CATEGORIES= security devel
@@ -8,8 +8,10 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://mhash.sourceforge.net/
COMMENT= hash algorithms library
-USE_BUILDLINK_ONLY= YES
-USE_LIBTOOL= YES
+USE_BUILDLINK2= YES
GNU_CONFIGURE= YES
+USE_LIBTOOL= YES
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
.include "../../mk/bsd.pkg.mk"
diff --git a/security/mhash/buildlink2.mk b/security/mhash/buildlink2.mk
new file mode 100644
index 00000000000..c126b491292
--- /dev/null
+++ b/security/mhash/buildlink2.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 18:39:56 jlam Exp $
+
+.if !defined(MHASH_BUILDLINK2_MK)
+MHASH_BUILDLINK2_MK= # defined
+
+BUILDLINK_PACKAGES+= mhash
+BUILDLINK_DEPENDS.mhash?= mhash>=0.8.3
+BUILDLINK_PKGSRCDIR.mhash?= ../../security/mhash
+
+EVAL_PREFIX+= BUILDLINK_PREFIX.mhash=mhash
+BUILDLINK_PREFIX.mhash_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.mhash= include/mhash.h
+BUILDLINK_FILES.mhash+= lib/libmhash.*
+
+BUILDLINK_TARGETS+= mhash-buildlink
+
+mhash-buildlink: _BUILDLINK_USE
+
+.endif # MHASH_BUILDLINK2_MK