aboutsummaryrefslogtreecommitdiff
path: root/audio/ogg2mp3/Makefile
blob: 369744d69452f71398eda0235eb58642f16c206d (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
PORTNAME=	ogg2mp3
PORTVERSION=	0.6.1
PORTREVISION?=	3
CATEGORIES=	audio

MAINTAINER=	tobias.rehbein@web.de
COMMENT=	Perl script that converts Ogg Vorbis files to MP3 format
WWW=		https://github.com/fithp/ogg2mp3

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/doc/LICENSE

RUN_DEPENDS=	lame:audio/lame \
		p5-String-ShellQuote>=0:textproc/p5-String-ShellQuote \
		ogginfo:audio/vorbis-tools

USES=		perl5 shebangfix tar:tgz
USE_GITHUB=	yes
GH_ACCOUNT=	fithp
GH_TAGNAME=	f3bee47c3bce01a33b5bce88fa70bd9ecadca0ad

SHEBANG_FILES=	ogg2mp3

NO_BUILD=	yes
NO_ARCH=	yes

PLIST_FILES=	bin/ogg2mp3

post-patch:
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/ogg2mp3

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/ogg2mp3 ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>