pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libltdl Fixed pkglint warnings, reindented the c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7613a752d194
branches:  trunk
changeset: 519565:7613a752d194
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Oct 05 12:41:24 2006 +0000

description:
Fixed pkglint warnings, reindented the code.

Added a comment to the generated Makefile saying who has generated it,
so I don't have to look for that again.

diffstat:

 devel/libltdl/convenience.mk |  27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diffs (44 lines):

diff -r c034bd2b6041 -r 7613a752d194 devel/libltdl/convenience.mk
--- a/devel/libltdl/convenience.mk      Thu Oct 05 12:30:30 2006 +0000
+++ b/devel/libltdl/convenience.mk      Thu Oct 05 12:41:24 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: convenience.mk,v 1.8 2006/10/05 12:07:00 rillig Exp $
+# $NetBSD: convenience.mk,v 1.9 2006/10/05 12:41:24 rillig Exp $
 #
 # Override "libltdlc.la" -- the libltdl "convenience" library embedded into
 # programs that ship with libltdl.  Also override packages attempting to
@@ -8,19 +8,24 @@
 .include "../../mk/bsd.prefs.mk"
 
 post-patch: fix-libltdlc
+.PHONY: fix-libltdlc
 fix-libltdlc:
-       @${ECHO} 'Fixing libltdl convenience library linkage.'
+       @${STEP_MSG} 'Fixing libltdl convenience library linkage.'
 .for sd in ${LIBLTDL_CONVENIENCE_SUBDIR}
-       @cd ${WRKSRC}/${sd} && \
-               ${ECHO} 'all install clean check:' >Makefile.in && \
-               ${ECHO} 'all install clean check:' >Makefile && \
-               ${RM} -f Makefile.am configure* ltdl.h *.la && \
-               ${LN} -s ${BUILDLINK_DIR}/include/ltdl.h ltdl.h && \
-               ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la libltdl.la && \
-               ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la libltdlc.la
+       ${_PKG_SILENT}${_PKG_DEBUG} set -e;                             \
+       cd ${WRKSRC}/${sd};                                             \
+       rm -f Makefile Makefile.in Makefile.am configure* ltdl.h *.la;  \
+       { ${ECHO} "# Generated by devel/libltdl/convenience.mk";        \
+         ${ECHO} "all install clean check:";                           \
+       } > Makefile.in;                                                \
+       cp Makefile.in Makefile;                                        \
+       ${LN} -s ${BUILDLINK_DIR}/include/ltdl.h ltdl.h;                \
+       ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la libltdl.la;            \
+       ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.la libltdlc.la
 .  if ${OPSYS} == "Darwin"
-       @cd ${WRKSRC}/${sd} && \
-               ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.dylib libltdlc.dylib
+       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       cd ${WRKSRC}/${sd} &&                                           \
+       ${LN} -s ${BUILDLINK_DIR}/lib/libltdl.dylib libltdlc.dylib
 .  endif
 .endfor
 



Home | Main Index | Thread Index | Old Index