aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp32ogg/Makefile
blob: d722ecb6adc890a109f63f7270281090ff404aec (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
37
38
# ex:ts=8
# New ports collection makefile for:    mp32ogg
# Date created:         Nov 4, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   mp32ogg
PORTVERSION=    0.11
PORTREVISION=   1
CATEGORIES= audio perl5
MASTER_SITES=   ftp://ftp.faceprint.com/pub/software/scripts/
EXTRACT_SUFX=   # empty

MAINTAINER= ports@FreeBSD.org
COMMENT=    Convert MP3 files to Ogg Vorbis files

RUN_DEPENDS=    mpg123:${PORTSDIR}/audio/mpg123 \
        oggenc:${PORTSDIR}/audio/vorbis-tools \
        ${SITE_PERL}/MP3/Info.pm:${PORTSDIR}/audio/p5-MP3-Info \
        ${SITE_PERL}/String/ShellQuote.pm:${PORTSDIR}/textproc/p5-String-ShellQuote

USE_PERL5=  yes
NO_WRKSUBDIR=   yes
EXTRACT_CMD=    ${CP}
EXTRACT_BEFORE_ARGS=    #
EXTRACT_AFTER_ARGS= ${WRKSRC}/${PORTNAME}
NO_BUILD=   yes
PLIST_FILES=    bin/mp32ogg

post-patch:
    @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/mp32ogg

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

.include <bsd.port.mk>