aboutsummaryrefslogtreecommitdiff
path: root/audio/ogg2mp3/Makefile
blob: 45f48dfacf0621a7c5817ef26c09c6c485b66651 (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
# Created by: Aleksander Fafula <alex@bsdguru.org>

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

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>