PORTNAME=	mp3mover
PORTVERSION=	2.1.1
PORTREVISION=	1
CATEGORIES=	audio perl5
MASTER_SITES=	SF/mediamover/${PORTNAME}/${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Rename mp3s and manipulate them
WWW=		https://sourceforge.net/projects/mediamover/

RUN_DEPENDS=	p5-tagged>=0:audio/p5-tagged

USES=		perl5 shebangfix
SHEBANG_FILES=	mp3mover.pl
NO_BUILD=	yes
NO_ARCH=	yes

PLIST_FILES=	bin/mp3mover
PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/mp3mover.pl ${STAGEDIR}${PREFIX}/bin/mp3mover
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/sample-.mp3moverrc ${STAGEDIR}${DATADIR}/
	${INSTALL_DATA} ${WRKSRC}/shellperfect-.mp3moverrc ${STAGEDIR}${DATADIR}/

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/readme ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>
