aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-09 19:01:36 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-09 19:01:36 +0800
commita97ca4af3076158b83c5bbe7803c7e4fa442484d (patch)
treedfb2031df58d7b7036aa0f8a5d990323ecd69e89 /audio
parent5b3791d2a262cb819fe6b18a15f0e232b728b355 (diff)
downloadfreebsd-ports-gnome-a97ca4af3076158b83c5bbe7803c7e4fa442484d.tar.gz
freebsd-ports-gnome-a97ca4af3076158b83c5bbe7803c7e4fa442484d.tar.zst
freebsd-ports-gnome-a97ca4af3076158b83c5bbe7803c7e4fa442484d.zip
- Support staging
- Strip binaries - Use shebangfix
Diffstat (limited to 'audio')
-rw-r--r--audio/p5-Shout/Makefile19
-rw-r--r--audio/p5-Shout/pkg-plist1
2 files changed, 12 insertions, 8 deletions
diff --git a/audio/p5-Shout/Makefile b/audio/p5-Shout/Makefile
index d8b01f0fe836..2c22c9f8d01a 100644
--- a/audio/p5-Shout/Makefile
+++ b/audio/p5-Shout/Makefile
@@ -12,13 +12,13 @@ COMMENT= Perl glue for libshout MP3 streaming source library
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>
diff --git a/audio/p5-Shout/pkg-plist b/audio/p5-Shout/pkg-plist
index 5f842ede2d8c..7fd40da2f704 100644
--- a/audio/p5-Shout/pkg-plist
+++ b/audio/p5-Shout/pkg-plist
@@ -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%%