summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/libltdl/convenience.mk27
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