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