pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/libdes Follow template builtin.mk file in bsd...
details: https://anonhg.NetBSD.org/pkgsrc/rev/26c14e0aa8ea
branches: trunk
changeset: 485187:26c14e0aa8ea
user: jlam <jlam%pkgsrc.org@localhost>
date: Sun Dec 05 05:35:28 2004 +0000
description:
Follow template builtin.mk file in bsd.builtin.mk.
diffstat:
security/libdes/builtin.mk | 31 ++++++++++++++++++++-----------
1 files changed, 20 insertions(+), 11 deletions(-)
diffs (42 lines):
diff -r 6118ce84c5f5 -r 26c14e0aa8ea security/libdes/builtin.mk
--- a/security/libdes/builtin.mk Sun Dec 05 03:43:18 2004 +0000
+++ b/security/libdes/builtin.mk Sun Dec 05 05:35:28 2004 +0000
@@ -1,18 +1,27 @@
-# $NetBSD: builtin.mk,v 1.1 2004/07/31 05:31:57 tv Exp $
+# $NetBSD: builtin.mk,v 1.2 2004/12/05 05:35:28 jlam 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)
-
+. if exists(/usr/include/libdes.h) || 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}
+USE_BUILTIN.libdes?= ${IS_BUILTIN.libdes}
+
+CHECK_BUILTIN.libdes?= no
+.if !empty(CHECK_BUILTIN.libdes:M[nN][oO])
+. if !empty(USE_BUILTIN.libdes:M[yY][eE][sS])
+BUILDLINK_TARGETS+= buildlink-libdes-libdes-h
+. if !target(buildlink-libdes-libdes-h)
+.PHONY: buildlink-libdes-libdes-h
+buildlink-libdes-libdes-h:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ dest="${BUILDLINK_DIR}/include/libdes.h"; \
+ src="/usr/include/des.h"; \
+ if ${TEST} ! -f "$$dest" -a -f "$$src"; then \
+ ${LN} -fs $$src $$dest; \
+ fi
+. endif
+. endif # USE_BUILTIN.libdes == yes
+.endif # CHECK_BUILTIN.libdes
Home |
Main Index |
Thread Index |
Old Index