diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-29 18:00:05 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-29 18:00:05 +0000 |
commit | 7e12d8528bef0446a595ba1b2e8de1f037835f37 (patch) | |
tree | 360c14432953ab20d3716a4064ee250bb3dd62bb /devel | |
parent | 46a5b3b8581ba13f60c15de3e373b3e3274bf32a (diff) | |
download | pkgsrc-7e12d8528bef0446a595ba1b2e8de1f037835f37.tar.gz |
Add a target to generate a libtool archive file for libedit.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/readline/buildlink.mk | 27 |
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 |