From 50f3be126cc34d501f10d22d6340b57edc510552 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Thu, 6 Feb 2014 12:14:42 +0000 Subject: [PATCH] - Stage support --- net-p2p/libbt/Makefile | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/net-p2p/libbt/Makefile b/net-p2p/libbt/Makefile index 02cd2b633d84..5432dedc1ea9 100644 --- a/net-p2p/libbt/Makefile +++ b/net-p2p/libbt/Makefile @@ -19,29 +19,26 @@ LDFLAGS+= -L${LOCALBASE}/lib PORTDOCS= protocol-ext.txt protocol.txt -NO_STAGE= yes -.include +.include post-patch: @${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|\(CFLAGS:=\)|\1\@CFLAGS\@ \@CPPFLAGS\@ |' ${WRKSRC}/src/Makefile.in do-install: - ${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${PREFIX}/lib - ${MKDIR} ${PREFIX}/include/libbt + ${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${STAGEDIR}${PREFIX}/lib + ${MKDIR} ${STAGEDIR}${PREFIX}/include/libbt .for i in btcheck btget btlist - ${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${STAGEDIR}${PREFIX}/bin .endfor .for i in benc.h bitset.h bterror.h btmessage.h bts.h context.h peer.h random.h segmenter.h strbuf.h stream.h types.h util.h - ${INSTALL_DATA} ${WRKSRC}/include/${i} ${PREFIX}/include/libbt + ${INSTALL_DATA} ${WRKSRC}/include/${i} ${STAGEDIR}${PREFIX}/include/libbt .endfor post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - ${INSTALL_MAN} ${WRKSRC}/docs/${i} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} .endfor -.endif -.include +.include