summaryrefslogtreecommitdiff
path: root/devel/libltdl/convenience.mk
blob: 644f0744df8a34a8afb3ab0cc6769854edfda176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $NetBSD: convenience.mk,v 1.6 2006/02/07 19:07:24 drochner Exp $
#
# Override "libltdlc.la" -- the libltdl "convenience" library embedded into
# programs that ship with libltdl.  Also override packages attempting to
# build and install the full "libltdl.la".

LIBLTDL_CONVENIENCE_SUBDIR?=	libltdl

post-patch: fix-libltdlc
fix-libltdlc:
	@${ECHO} 'Fixing libltdl convenience library linkage.'
.for sd in ${LIBLTDL_CONVENIENCE_SUBDIR}
	@cd ${WRKSRC}/${sd} && \
		${ECHO} 'all install clean:' >Makefile.in && \
		${ECHO} 'all install clean:' >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
.endfor

.include "../../devel/libltdl/buildlink3.mk"