From 5bc9f2a78005f5766853ca24c37a7561b094fda5 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 23 Oct 2013 21:16:13 +0000 Subject: [PATCH] Support staging. Strip library unless WITH_DEBUG is set (if it is, STRIP_CMD is a no-op), and bump PORTREVISION. --- archivers/lzo2/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/archivers/lzo2/Makefile b/archivers/lzo2/Makefile index c9626552608e..30d9ec9d0db3 100644 --- a/archivers/lzo2/Makefile +++ b/archivers/lzo2/Makefile @@ -3,6 +3,7 @@ PORTNAME= lzo2 PORTVERSION= 2.06 +PORTREVISION= 1 CATEGORIES= archivers devel MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/ \ LOCAL/mandree @@ -13,7 +14,6 @@ COMMENT= Portable speedy, lossless data compression library LICENSE= GPLv2 -NO_STAGE= yes USE_AUTOTOOLS= libtool GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-shared --docdir=${DOCSDIR} @@ -33,17 +33,18 @@ post-build: .endif post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblzo2.so.2 .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README .for i in AUTHORS BUGS COPYING NEWS README THANKS - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ .endfor - ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}/ .endif .if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/ + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${STAGEDIR}${EXAMPLESDIR}/ .endif .include