Merge branch 'staged'
[dports.git] / audio / rebot3 / Makefile
1 PORTNAME=       rebot3
2 PORTVERSION=    1.0.2
3 CATEGORIES=     audio
4 MASTER_SITES=   http://www.headmqa.com/${PORTNAME}/ \
5                 http://www.bayofrum.net/dist/${PORTNAME}/
6
7 MAINTAINER=     crees@FreeBSD.org
8 COMMENT=        Renames mp3 files using freedb or local CDDB
9 WWW=            http://www.headmqa.com/rebot3/
10
11 LICENSE=        GPLv2
12
13 RUN_DEPENDS=    p5-CDDB>=0:audio/p5-CDDB \
14                 p5-MP3-ID3v1Tag>=0:audio/p5-MP3-ID3v1Tag
15
16 USES=           perl5
17 NO_BUILD=       yes
18
19 PLIST_FILES=    bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
20
21 post-patch:
22 # Yes, we know it's perl, but we don't want to type '.pl' the whole time.
23         @${REINPLACE_CMD} -e 's#\(${PORTNAME}\).pl#\1#' \
24                 -e '1s#/usr/bin/perl#${PERL}#' \
25                 -e 's#defined (\(@.*\))#\1#' \
26                 ${WRKSRC}/${PORTNAME}.pl ${WRKSRC}/${PORTNAME}.pl.1
27
28 do-install:
29         @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
30                 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
31         @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.pl.1 \
32                 ${STAGEDIR}${PREFIX}/man/man1/${PORTNAME}.1
33
34 .include <bsd.port.mk>