diff options
author | rillig <rillig> | 2006-10-05 12:41:24 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-10-05 12:41:24 +0000 |
commit | a78b1d07cda82a98c7bf36ee489df5ec30edc3a2 (patch) | |
tree | ddc5210f10c727a536fee6446a6d7e4da232001f /devel/libltdl | |
parent | 6fa9a4babc5dda1252eab53dcc35c473287edcaf (diff) | |
download | pkgsrc-a78b1d07cda82a98c7bf36ee489df5ec30edc3a2.tar.gz |
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 (limited to 'devel/libltdl')
-rw-r--r-- | devel/libltdl/convenience.mk | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/devel/libltdl/convenience.mk b/devel/libltdl/convenience.mk index 7b7f3f76dde..9c8415cba04 100644 --- a/devel/libltdl/convenience.mk +++ b/devel/libltdl/convenience.mk @@ -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 @@ LIBLTDL_CONVENIENCE_SUBDIR?= libltdl .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 |