2009-05-16 09:22:01 +02:00
|
|
|
# $NetBSD: convenience.mk,v 1.10 2009/05/16 07:22:02 rillig Exp $
|
2004-11-04 05:27:35 +01:00
|
|
|
#
|
2004-10-17 17:34:27 +02:00
|
|
|
# Override "libltdlc.la" -- the libltdl "convenience" library embedded into
|
2004-11-04 05:27:35 +01:00
|
|
|
# programs that ship with libltdl. Also override packages attempting to
|
|
|
|
# build and install the full "libltdl.la".
|
2004-10-17 17:34:27 +02:00
|
|
|
|
2004-12-25 00:44:30 +01:00
|
|
|
LIBLTDL_CONVENIENCE_SUBDIR?= libltdl
|
2006-05-19 11:12:29 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2004-12-25 00:44:30 +01:00
|
|
|
|
2004-10-17 17:34:27 +02:00
|
|
|
post-patch: fix-libltdlc
|
2006-10-05 14:41:24 +02:00
|
|
|
.PHONY: fix-libltdlc
|
2004-10-17 17:34:27 +02:00
|
|
|
fix-libltdlc:
|
2006-10-05 14:41:24 +02:00
|
|
|
@${STEP_MSG} 'Fixing libltdl convenience library linkage.'
|
2006-02-07 20:07:24 +01:00
|
|
|
.for sd in ${LIBLTDL_CONVENIENCE_SUBDIR}
|
2009-05-16 09:22:01 +02:00
|
|
|
${RUN} \
|
2006-10-05 14:41:24 +02:00
|
|
|
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
|
2006-05-19 11:12:29 +02:00
|
|
|
. if ${OPSYS} == "Darwin"
|
2009-05-16 09:22:01 +02:00
|
|
|
${RUN} \
|
2006-10-05 14:41:24 +02:00
|
|
|
cd ${WRKSRC}/${sd} && \
|
|
|
|
${LN} -s ${BUILDLINK_DIR}/lib/libltdl.dylib libltdlc.dylib
|
2006-05-19 11:12:29 +02:00
|
|
|
. endif
|
2006-02-07 20:07:24 +01:00
|
|
|
.endfor
|
2004-10-17 17:34:27 +02:00
|
|
|
|
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|