summaryrefslogtreecommitdiff
path: root/security/libdes/builtin.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-07-31 05:31:57 +0000
committertv <tv@pkgsrc.org>2004-07-31 05:31:57 +0000
commit58e7b116fdfa04b7eefca14842f8dae70d70d9a0 (patch)
treef847f7ced467f6d82771ad0f69ce5c01a96e60cf /security/libdes/builtin.mk
parentb322ab57692858bcbf2d063d02f80441fd41d8ea (diff)
downloadpkgsrc-58e7b116fdfa04b7eefca14842f8dae70d70d9a0.tar.gz
Detect builtin libdes. (NetBSD 2.0, for instance, has one.)
Diffstat (limited to 'security/libdes/builtin.mk')
-rw-r--r--security/libdes/builtin.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/security/libdes/builtin.mk b/security/libdes/builtin.mk
new file mode 100644
index 00000000000..b8468f41bde
--- /dev/null
+++ b/security/libdes/builtin.mk
@@ -0,0 +1,18 @@
+# $NetBSD: builtin.mk,v 1.1 2004/07/31 05:31:57 tv Exp $
+
+.if !defined(IS_BUILTIN.libdes)
+IS_BUILTIN.libdes= no
+. if exists(/usr/include/libdes.h)
+IS_BUILTIN.libdes= yes
+. elif exists(/usr/include/des.h)
+
+IS_BUILTIN.libdes= yes
+BUILDLINK_TARGETS+= buildlink-libdes-libdes-h
+
+buildlink-libdes-libdes-h:
+ ${LN} -s -f /usr/include/des.h ${BUILDLINK_DIR}/include/libdes.h
+
+. endif
+.endif # IS_BUILTIN.libdes
+
+USE_BUILTIN.libdes?= ${IS_BUILTIN.libdes}