svn commit: r343457 - head/audio/p5-Shout

Emanuel Haupt ehaupt at FreeBSD.org
Sun Feb 9 11:01:37 UTC 2014


Author: ehaupt
Date: Sun Feb  9 11:01:36 2014
New Revision: 343457
URL: http://svnweb.freebsd.org/changeset/ports/343457
QAT: https://qat.redports.org/buildarchive/r343457/

Log:
  - Support staging
  - Strip binaries
  - Use shebangfix

Modified:
  head/audio/p5-Shout/Makefile
  head/audio/p5-Shout/pkg-plist

Modified: head/audio/p5-Shout/Makefile
==============================================================================
--- head/audio/p5-Shout/Makefile	Sun Feb  9 10:57:25 2014	(r343456)
+++ head/audio/p5-Shout/Makefile	Sun Feb  9 11:01:36 2014	(r343457)
@@ -12,13 +12,13 @@ COMMENT=	Perl glue for libshout MP3 stre
 
 LIB_DEPENDS=	libshout.so:${PORTSDIR}/audio/libshout2
 
-USES=		perl5 pkgconfig
-NO_STAGE=	yes
+USES=		perl5 pkgconfig shebangfix
 USE_PERL5=	configure
 
-MAN3=		Shout.3
-
 DOCSDIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
+SHEBANG_FILES=	*.pl
+
+MAKE_ENV+=	DESTDIR="${STAGEDIR}"
 
 post-patch:
 	${REINPLACE_CMD} -i '' -e 's/CCFLAGS/INC/' ${WRKSRC}/Makefile.PL
@@ -26,10 +26,13 @@ post-patch:
 post-configure:
 	@${PERL} -i -pe '$$_ .= " ${PTHREAD_LIBS}" if /^LDDLFLAGS/;' ${WRKSRC}/Makefile
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 post-install:
-.ifndef(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/example*.pl ${DOCSDIR}
-.endif
+	${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Shout/Shout.so
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/example*.pl ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/audio/p5-Shout/pkg-plist
==============================================================================
--- head/audio/p5-Shout/pkg-plist	Sun Feb  9 10:57:25 2014	(r343456)
+++ head/audio/p5-Shout/pkg-plist	Sun Feb  9 11:01:36 2014	(r343457)
@@ -5,6 +5,7 @@
 %%SITE_PERL%%/%%PERL_ARCH%%/auto/Shout/autosplit.ix
 %%SITE_PERL%%/%%PERL_ARCH%%/example.pl
 %%SITE_PERL%%/%%PERL_ARCH%%/example2.pl
+%%PERL5_MAN3%%/Shout.3.gz
 %%PORTDOCS%%%%DOCSDIR%%/example.pl
 %%PORTDOCS%%%%DOCSDIR%%/example2.pl
 %%PORTDOCS%%@dirrm %%DOCSDIR%%


More information about the svn-ports-all mailing list