summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2001-05-29 18:00:05 +0000
committerjlam <jlam>2001-05-29 18:00:05 +0000
commit3c36d25c1ee3ec566777c6ebedc1132d3c58fb09 (patch)
tree360c14432953ab20d3716a4064ee250bb3dd62bb
parent53bfc7eff3711dbcd71be4b6e16a38a1bdb2e5c7 (diff)
downloadpkgsrc-3c36d25c1ee3ec566777c6ebedc1132d3c58fb09.tar.gz
Add a target to generate a libtool archive file for libedit.
-rw-r--r--devel/readline/buildlink.mk27
1 files changed, 26 insertions, 1 deletions
diff --git a/devel/readline/buildlink.mk b/devel/readline/buildlink.mk
index 370607c5ba6..4bea87380c7 100644
--- a/devel/readline/buildlink.mk
+++ b/devel/readline/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.5 2001/05/26 07:33:57 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.6 2001/05/29 18:00:05 jlam Exp $
#
# This Makefile fragment is included by packages that use readline().
#
@@ -56,6 +56,9 @@ BUILDLINK_LIBDIR?= ${WRKDIR}/lib
BUILDLINK_TARGETS+= link-readline-headers
BUILDLINK_TARGETS+= link-readline-libs
+.if defined(HAVE_LIBEDIT_READLINE)
+BUILDLINK_TARGETS+= libedit-libtool-archive
+.endif
# This target links the headers into ${BUILDLINK_INCDIR}, which should
# be searched first by the C preprocessor.
@@ -95,4 +98,26 @@ link-readline-libs:
fi; \
done
+LIBREADLINE_LA= ${BUILDLINK_LIBDIR}/libreadline.la
+
+libedit-libtool-archive:
+ @${MKDIR} ${BUILDLINK_LIBDIR}
+ @${RM} -f ${LIBREADLINE_LA}
+ @${ECHO} "# libedit.la - a libtool library file" >> ${LIBREADLINE_LA}
+ @${ECHO} "# Generated by libtool (not!)" >> ${LIBREADLINE_LA}
+ @${ECHO} "installed=yes" >> ${LIBREADLINE_LA}
+ @${ECHO} "libdir='/usr/lib'" >> ${LIBREADLINE_LA}
+ @${ECHO} "old_library='libedit.a'" >> ${LIBREADLINE_LA}
+ @${ECHO} "library_names=''" >> ${LIBREADLINE_LA}
+ @(cd /usr/lib; for lib in libedit.so*; do \
+ ${ECHO} "library_names=\"\$$library_names $$lib\""; \
+ done) >> ${LIBREADLINE_LA}
+ @cd /usr/lib; for lib in libedit.so.*.*; do \
+ current=`echo $$lib | sed "s,.*\.so\.,,;s,\..*,,"`; \
+ age=`echo $$lib | sed "s,.*\.,,"`; \
+ ${ECHO} "current=$$current" >> ${LIBREADLINE_LA}; \
+ ${ECHO} "age=$$age" >> ${LIBREADLINE_LA}; \
+ done
+ @${ECHO} "revision=1" >> ${LIBREADLINE_LA}
+
.endif # READLINE_BUILDLINK_MK