mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
a26a7c64e7
- Use USES=libtool - Strip shared library - Bump PORTREVISION for audio/libshout shlib change and dependency change from audio/libshout2 to audio/libshout [1] Approved by: portmgr (bapt) [1]
38 lines
906 B
Makefile
38 lines
906 B
Makefile
# Created by: leo
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Shout
|
|
PORTVERSION= 2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio perl5
|
|
MASTER_SITES= http://downloads.us.xiph.org/releases/libshout/
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Perl glue for libshout MP3 streaming source library
|
|
|
|
LIB_DEPENDS= libshout.so:${PORTSDIR}/audio/libshout
|
|
|
|
USES= perl5 pkgconfig shebangfix
|
|
USE_PERL5= configure
|
|
|
|
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
|
|
|
|
post-configure:
|
|
@${PERL} -i -pe '$$_ .= " ${PTHREAD_LIBS}" if /^LDDLFLAGS/;' ${WRKSRC}/Makefile
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install:
|
|
${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>
|