[BACK]Return to convenience.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / libltdl

File: [cvs.NetBSD.org] / pkgsrc / devel / libltdl / convenience.mk (download)

Revision 1.10, Sat May 16 07:22:02 2009 UTC (11 years ago) by rillig
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, HEAD
Changes since 1.9: +3 -3 lines

cleanup: replaced _PKG_SILENT and _PKG_DEBUG with RUN.

# $NetBSD: convenience.mk,v 1.10 2009/05/16 07:22:02 rillig 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".

.include "../../mk/bsd.prefs.mk"

post-patch: fix-libltdlc
.PHONY: fix-libltdlc
	@${STEP_MSG} 'Fixing libltdl convenience library linkage.'
	${RUN}								\
	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"
	${RUN}								\
	cd ${WRKSRC}/${sd} &&						\
	${LN} -s ${BUILDLINK_DIR}/lib/libltdl.dylib libltdlc.dylib
.  endif

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