mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
6f6fbe4bdf
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# 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= 8
|
|
CATEGORIES= audio
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
|
COMMENT= A free command-line mp3 player, compatible with mpg123
|
|
|
|
LIB_DEPENDS= ao.4:${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_ARGS= --disable-mpg123-symlink
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
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>
|