aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mpg321/Makefile
blob: 432887efce82716295a52dda10138ae897946c8a (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
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    mpg321
# Date created:         Mar 17, 2001
# Whom:             Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mpg321
PORTVERSION=    0.2.10
PORTREVISION=   6
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mpg321

MAINTAINER= naddy@FreeBSD.org
COMMENT=    A free command-line mp3 player, compatible with mpg123

LIB_DEPENDS=    ao.3:${PORTSDIR}/audio/libao \
        id3tag.0:${PORTSDIR}/audio/libid3tag \
        mad.2:${PORTSDIR}/audio/libmad

.if defined(WITH_MPG321_SCROBBLER_PATCH)
RUN_DEPENDS=    scrobbler-helper:${PORTSDIR}/audio/p5-Audio-Scrobbler

PATCHFILES+=    mpg321-0.2.10-scrobbler-01.patch:scrobbler
PATCH_SITES+=   http://people.FreeBSD.org/~roam/ports/audio/:scrobbler \
        http://devel.ringlet.net/audio/mpg321-scrobbler/:scrobbler


MPG321_SCROBBLER_PLUGIN_NAME?=  321
.endif

GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --disable-mpg123-symlink
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       mpg321.1

PLIST_FILES=    bin/mpg321

.if defined(WITH_MPG321_SCROBBLER_PATCH)
post-patch:
        ${REINPLACE_CMD} "s/\"mpg321\"/\"${MPG321_SCROBBLER_PLUGIN_NAME}\"/" ${WRKSRC}/scrobbler.c
.endif

.include <bsd.port.mk>