blob: 82a3ea4401080ceae6d76f83d9739344b5fd2239 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Created by: leo
# $FreeBSD$
PORTNAME= Shout
PORTVERSION= 2.1
PORTREVISION= 2
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: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 '$$_ .= " -lpthread" if /^LDDLFLAGS/;' \
${WRKSRC}/Makefile
OPTIONS_DEFINE= DOCS
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Shout/Shout.so
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_SCRIPT} ${WRKSRC}/example*.pl ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|