diff options
author | roam <roam@FreeBSD.org> | 2006-02-20 04:46:56 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2006-02-20 04:46:56 +0800 |
commit | dbc7ed17405824170d309548b8377061638eaa73 (patch) | |
tree | f55671a282000b32a4fe6c921c5cf090221c5a50 /audio | |
parent | 582bca929e903ce51ffa79ca19bd105572c007c6 (diff) | |
download | freebsd-ports-gnome-dbc7ed17405824170d309548b8377061638eaa73.tar.gz freebsd-ports-gnome-dbc7ed17405824170d309548b8377061638eaa73.tar.zst freebsd-ports-gnome-dbc7ed17405824170d309548b8377061638eaa73.zip |
Add a WITH_MPG321_SCROBBLER_PATCH knob to support an unofficial
patch that adds the -S command-line option to report the currently
played file to Last.fm's AudioScrobbler service.
Approved by: naddy (maintainer)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mpg321/Makefile | 17 | ||||
-rw-r--r-- | audio/mpg321/distinfo | 3 |
2 files changed, 20 insertions, 0 deletions
diff --git a/audio/mpg321/Makefile b/audio/mpg321/Makefile index 656c5324e8ae..c5e1a7bd3e38 100644 --- a/audio/mpg321/Makefile +++ b/audio/mpg321/Makefile @@ -19,6 +19,18 @@ 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 + +USE_REINPLACE= true + +MPG321_SCROBBLER_PLUGIN_NAME?= 321 +.endif + GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ARGS= --disable-mpg123-symlink @@ -29,4 +41,9 @@ 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> diff --git a/audio/mpg321/distinfo b/audio/mpg321/distinfo index cf4b501c8437..ab97a567bb12 100644 --- a/audio/mpg321/distinfo +++ b/audio/mpg321/distinfo @@ -1,3 +1,6 @@ MD5 (mpg321-0.2.10.tar.gz) = bb403b35c2d25655d55f0f616b8f47bb SHA256 (mpg321-0.2.10.tar.gz) = db0c299592b8f1f704f41bd3fc3a2bf138658108588d51af61638c551af1b0d4 SIZE (mpg321-0.2.10.tar.gz) = 113449 +MD5 (mpg321-0.2.10-scrobbler-01.patch) = f2171e1c878768011ce12ec9e5a0c1ae +SHA256 (mpg321-0.2.10-scrobbler-01.patch) = bc3cc20e7002bb18ce3e4b2623568cb01b99ccc23cec1fb2c1cd0e6b196db0d6 +SIZE (mpg321-0.2.10-scrobbler-01.patch) = 15406 |